diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 5de9903645d5..91954eb6460f 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -5,6 +5,8 @@ | |||
5 | 5 | ||
6 | #include <linux/linkage.h> | 6 | #include <linux/linkage.h> |
7 | #include <linux/fs.h> | 7 | #include <linux/fs.h> |
8 | #include <linux/init.h> | ||
9 | #include <linux/types.h> | ||
8 | 10 | ||
9 | extern int ftrace_enabled; | 11 | extern int ftrace_enabled; |
10 | extern int | 12 | extern int |
@@ -209,4 +211,21 @@ ftrace_init_module(unsigned long *start, unsigned long *end) { } | |||
209 | #endif | 211 | #endif |
210 | 212 | ||
211 | 213 | ||
214 | struct boot_trace { | ||
215 | pid_t caller; | ||
216 | initcall_t func; | ||
217 | int result; | ||
218 | unsigned long long duration; | ||
219 | }; | ||
220 | |||
221 | #ifdef CONFIG_BOOT_TRACER | ||
222 | extern void trace_boot(struct boot_trace *it); | ||
223 | extern void start_boot_trace(void); | ||
224 | #else | ||
225 | static inline void trace_boot(struct boot_trace *it) { } | ||
226 | static inline void start_boot_trace(void) { } | ||
227 | #endif | ||
228 | |||
229 | |||
230 | |||
212 | #endif /* _LINUX_FTRACE_H */ | 231 | #endif /* _LINUX_FTRACE_H */ |