aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h21
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
234extern int skip_trace(unsigned long ip); 234extern int skip_trace(unsigned long ip);
235 235
236extern void ftrace_release(void *start, unsigned long size);
237
238extern void ftrace_disable_daemon(void); 236extern void ftrace_disable_daemon(void);
239extern void ftrace_enable_daemon(void); 237extern 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
327extern void ftrace_init(void); 325extern void ftrace_init(void);
328extern void ftrace_init_module(struct module *mod,
329 unsigned long *start, unsigned long *end);
330#else 326#else
331static inline void ftrace_init(void) { } 327static inline void ftrace_init(void) { }
332static inline void
333ftrace_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 {
378extern void return_to_handler(void); 373extern void return_to_handler(void);
379 374
380extern int 375extern int
381ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth); 376ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth,
382extern void 377 unsigned long frame_pointer);
383ftrace_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
497extern int ftrace_dump_on_oops; 491extern 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