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.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 7854d87b97b2..b4ac734ad8d6 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -115,8 +115,8 @@ extern int ftrace_update_ftrace_func(ftrace_func_t func);
115extern void ftrace_caller(void); 115extern void ftrace_caller(void);
116extern void ftrace_call(void); 116extern void ftrace_call(void);
117extern void mcount_call(void); 117extern void mcount_call(void);
118#ifdef CONFIG_FUNCTION_RET_TRACER 118#ifdef CONFIG_FUNCTION_GRAPH_TRACER
119extern void ftrace_return_caller(void); 119extern void ftrace_graph_caller(void);
120#endif 120#endif
121 121
122/** 122/**
@@ -315,7 +315,7 @@ ftrace_init_module(struct module *mod,
315/* 315/*
316 * Structure that defines a return function trace. 316 * Structure that defines a return function trace.
317 */ 317 */
318struct ftrace_retfunc { 318struct ftrace_graph_ret {
319 unsigned long ret; /* Return address */ 319 unsigned long ret; /* Return address */
320 unsigned long func; /* Current function */ 320 unsigned long func; /* Current function */
321 unsigned long long calltime; 321 unsigned long long calltime;
@@ -324,22 +324,22 @@ struct ftrace_retfunc {
324 unsigned long overrun; 324 unsigned long overrun;
325}; 325};
326 326
327#ifdef CONFIG_FUNCTION_RET_TRACER 327#ifdef CONFIG_FUNCTION_GRAPH_TRACER
328#define FTRACE_RETFUNC_DEPTH 50 328#define FTRACE_RETFUNC_DEPTH 50
329#define FTRACE_RETSTACK_ALLOC_SIZE 32 329#define FTRACE_RETSTACK_ALLOC_SIZE 32
330/* Type of a callback handler of tracing return function */ 330/* Type of a callback handler of tracing return function */
331typedef void (*trace_function_return_t)(struct ftrace_retfunc *); 331typedef void (*trace_function_graph_t)(struct ftrace_graph_ret *);
332 332
333extern int register_ftrace_return(trace_function_return_t func); 333extern int register_ftrace_graph(trace_function_graph_t func);
334/* The current handler in use */ 334/* The current handler in use */
335extern trace_function_return_t ftrace_function_return; 335extern trace_function_graph_t ftrace_graph_function;
336extern void unregister_ftrace_return(void); 336extern void unregister_ftrace_graph(void);
337 337
338extern void ftrace_retfunc_init_task(struct task_struct *t); 338extern void ftrace_graph_init_task(struct task_struct *t);
339extern void ftrace_retfunc_exit_task(struct task_struct *t); 339extern void ftrace_graph_exit_task(struct task_struct *t);
340#else 340#else
341static inline void ftrace_retfunc_init_task(struct task_struct *t) { } 341static inline void ftrace_graph_init_task(struct task_struct *t) { }
342static inline void ftrace_retfunc_exit_task(struct task_struct *t) { } 342static inline void ftrace_graph_exit_task(struct task_struct *t) { }
343#endif 343#endif
344 344
345#endif /* _LINUX_FTRACE_H */ 345#endif /* _LINUX_FTRACE_H */