diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 5 |
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 */ |
327 | typedef void (*trace_function_return_t)(struct ftrace_retfunc *); | 329 | typedef 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 */ |
331 | extern trace_function_return_t ftrace_function_return; | 333 | extern trace_function_return_t ftrace_function_return; |
332 | extern void unregister_ftrace_return(void); | 334 | extern void unregister_ftrace_return(void); |
335 | |||
336 | extern void ftrace_retfunc_init_task(struct task_struct *t); | ||
337 | extern 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 */ |