diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-12-16 16:30:31 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-12-21 07:19:03 -0500 |
commit | 85ae32ae019bc1c2cc22e5f51fe0c9f2812ef68c (patch) | |
tree | 38ce2528dd0af0190e61cbf1dcc9f6d0c4ac3cf6 /include/linux/ftrace.h | |
parent | a79008755497daff157f5294c02e3b940641cc11 (diff) |
ftrace: Replace record newlist with record page list
As new functions come in to be initalized from mcount to nop,
they are done by groups of pages. Whether it is the core kernel
or a module. There's no need to keep track of these on a per record
basis.
At startup, and as any module is loaded, the functions to be
traced are stored in a group of pages and added to the function
list at the end. We just need to keep a pointer to the first
page of the list that was added, and use that to know where to
start on the list for initializing functions.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 3f79bc458bff..31b9fd7aedcd 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -173,10 +173,7 @@ struct dyn_ftrace { | |||
173 | unsigned long ip; /* address of mcount call-site */ | 173 | unsigned long ip; /* address of mcount call-site */ |
174 | struct dyn_ftrace *freelist; | 174 | struct dyn_ftrace *freelist; |
175 | }; | 175 | }; |
176 | union { | 176 | unsigned long flags; |
177 | unsigned long flags; | ||
178 | struct dyn_ftrace *newlist; | ||
179 | }; | ||
180 | struct dyn_arch_ftrace arch; | 177 | struct dyn_arch_ftrace arch; |
181 | }; | 178 | }; |
182 | 179 | ||