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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index f7ba4ea5e128..2ba259b2defa 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -323,6 +323,8 @@ struct ftrace_retfunc {
323}; 323};
324 324
325#ifdef CONFIG_FUNCTION_RET_TRACER 325#ifdef CONFIG_FUNCTION_RET_TRACER
326#define FTRACE_RETFUNC_DEPTH 50
327#define FTRACE_RETSTACK_ALLOC_SIZE 32
326/* Type of a callback handler of tracing return function */ 328/* Type of a callback handler of tracing return function */
327typedef void (*trace_function_return_t)(struct ftrace_retfunc *); 329typedef void (*trace_function_return_t)(struct ftrace_retfunc *);
328 330
@@ -330,6 +332,9 @@ extern int register_ftrace_return(trace_function_return_t func);
330/* The current handler in use */ 332/* The current handler in use */
331extern trace_function_return_t ftrace_function_return; 333extern trace_function_return_t ftrace_function_return;
332extern void unregister_ftrace_return(void); 334extern void unregister_ftrace_return(void);
335
336extern void ftrace_retfunc_init_task(struct task_struct *t);
337extern void ftrace_retfunc_exit_task(struct task_struct *t);
333#endif 338#endif
334 339
335#endif /* _LINUX_FTRACE_H */ 340#endif /* _LINUX_FTRACE_H */