diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 8a0c2f221e6b..dc3b1328aaeb 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -233,8 +233,6 @@ extern int ftrace_arch_read_dyn_info(char *buf, int size); | |||
233 | 233 | ||
234 | extern int skip_trace(unsigned long ip); | 234 | extern int skip_trace(unsigned long ip); |
235 | 235 | ||
236 | extern void ftrace_release(void *start, unsigned long size); | ||
237 | |||
238 | extern void ftrace_disable_daemon(void); | 236 | extern void ftrace_disable_daemon(void); |
239 | extern void ftrace_enable_daemon(void); | 237 | extern void ftrace_enable_daemon(void); |
240 | #else | 238 | #else |
@@ -325,13 +323,8 @@ static inline void __ftrace_enabled_restore(int enabled) | |||
325 | 323 | ||
326 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 324 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
327 | extern void ftrace_init(void); | 325 | extern void ftrace_init(void); |
328 | extern void ftrace_init_module(struct module *mod, | ||
329 | unsigned long *start, unsigned long *end); | ||
330 | #else | 326 | #else |
331 | static inline void ftrace_init(void) { } | 327 | static inline void ftrace_init(void) { } |
332 | static inline void | ||
333 | ftrace_init_module(struct module *mod, | ||
334 | unsigned long *start, unsigned long *end) { } | ||
335 | #endif | 328 | #endif |
336 | 329 | ||
337 | /* | 330 | /* |
@@ -368,6 +361,8 @@ struct ftrace_ret_stack { | |||
368 | unsigned long ret; | 361 | unsigned long ret; |
369 | unsigned long func; | 362 | unsigned long func; |
370 | unsigned long long calltime; | 363 | unsigned long long calltime; |
364 | unsigned long long subtime; | ||
365 | unsigned long fp; | ||
371 | }; | 366 | }; |
372 | 367 | ||
373 | /* | 368 | /* |
@@ -378,9 +373,8 @@ struct ftrace_ret_stack { | |||
378 | extern void return_to_handler(void); | 373 | extern void return_to_handler(void); |
379 | 374 | ||
380 | extern int | 375 | extern int |
381 | ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth); | 376 | ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth, |
382 | extern void | 377 | unsigned long frame_pointer); |
383 | ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret); | ||
384 | 378 | ||
385 | /* | 379 | /* |
386 | * Sometimes we don't want to trace a function with the function | 380 | * Sometimes we don't want to trace a function with the function |
@@ -496,8 +490,15 @@ static inline int test_tsk_trace_graph(struct task_struct *tsk) | |||
496 | 490 | ||
497 | extern int ftrace_dump_on_oops; | 491 | extern int ftrace_dump_on_oops; |
498 | 492 | ||
493 | #ifdef CONFIG_PREEMPT | ||
494 | #define INIT_TRACE_RECURSION .trace_recursion = 0, | ||
495 | #endif | ||
496 | |||
499 | #endif /* CONFIG_TRACING */ | 497 | #endif /* CONFIG_TRACING */ |
500 | 498 | ||
499 | #ifndef INIT_TRACE_RECURSION | ||
500 | #define INIT_TRACE_RECURSION | ||
501 | #endif | ||
501 | 502 | ||
502 | #ifdef CONFIG_HW_BRANCH_TRACER | 503 | #ifdef CONFIG_HW_BRANCH_TRACER |
503 | 504 | ||