diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 4455490d91bd..e672e51c40a9 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/fs.h> | 7 | #include <linux/fs.h> |
8 | #include <linux/init.h> | 8 | #include <linux/init.h> |
9 | #include <linux/types.h> | 9 | #include <linux/types.h> |
10 | #include <linux/kallsyms.h> | ||
10 | 11 | ||
11 | extern int ftrace_enabled; | 12 | extern int ftrace_enabled; |
12 | extern int | 13 | extern int |
@@ -213,7 +214,7 @@ ftrace_init_module(unsigned long *start, unsigned long *end) { } | |||
213 | 214 | ||
214 | struct boot_trace { | 215 | struct boot_trace { |
215 | pid_t caller; | 216 | pid_t caller; |
216 | initcall_t func; | 217 | char func[KSYM_NAME_LEN]; |
217 | int result; | 218 | int result; |
218 | unsigned long long duration; | 219 | unsigned long long duration; |
219 | ktime_t calltime; | 220 | ktime_t calltime; |
@@ -221,10 +222,10 @@ struct boot_trace { | |||
221 | }; | 222 | }; |
222 | 223 | ||
223 | #ifdef CONFIG_BOOT_TRACER | 224 | #ifdef CONFIG_BOOT_TRACER |
224 | extern void trace_boot(struct boot_trace *it); | 225 | extern void trace_boot(struct boot_trace *it, initcall_t fn); |
225 | extern void start_boot_trace(void); | 226 | extern void start_boot_trace(void); |
226 | #else | 227 | #else |
227 | static inline void trace_boot(struct boot_trace *it) { } | 228 | static inline void trace_boot(struct boot_trace *it, initcall_t fn) { } |
228 | static inline void start_boot_trace(void) { } | 229 | static inline void start_boot_trace(void) { } |
229 | #endif | 230 | #endif |
230 | 231 | ||