diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index f7ba4ea5e128..7854d87b97b2 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -257,6 +257,7 @@ extern int ftrace_dump_on_oops; | |||
257 | 257 | ||
258 | extern void tracing_start(void); | 258 | extern void tracing_start(void); |
259 | extern void tracing_stop(void); | 259 | extern void tracing_stop(void); |
260 | extern void ftrace_off_permanent(void); | ||
260 | 261 | ||
261 | extern void | 262 | extern void |
262 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); | 263 | ftrace_special(unsigned long arg1, unsigned long arg2, unsigned long arg3); |
@@ -290,6 +291,7 @@ ftrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 0))); | |||
290 | 291 | ||
291 | static inline void tracing_start(void) { } | 292 | static inline void tracing_start(void) { } |
292 | static inline void tracing_stop(void) { } | 293 | static inline void tracing_stop(void) { } |
294 | static inline void ftrace_off_permanent(void) { } | ||
293 | static inline int | 295 | static inline int |
294 | ftrace_printk(const char *fmt, ...) | 296 | ftrace_printk(const char *fmt, ...) |
295 | { | 297 | { |
@@ -323,6 +325,8 @@ struct ftrace_retfunc { | |||
323 | }; | 325 | }; |
324 | 326 | ||
325 | #ifdef CONFIG_FUNCTION_RET_TRACER | 327 | #ifdef CONFIG_FUNCTION_RET_TRACER |
328 | #define FTRACE_RETFUNC_DEPTH 50 | ||
329 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 | ||
326 | /* Type of a callback handler of tracing return function */ | 330 | /* Type of a callback handler of tracing return function */ |
327 | typedef void (*trace_function_return_t)(struct ftrace_retfunc *); | 331 | typedef void (*trace_function_return_t)(struct ftrace_retfunc *); |
328 | 332 | ||
@@ -330,6 +334,12 @@ extern int register_ftrace_return(trace_function_return_t func); | |||
330 | /* The current handler in use */ | 334 | /* The current handler in use */ |
331 | extern trace_function_return_t ftrace_function_return; | 335 | extern trace_function_return_t ftrace_function_return; |
332 | extern void unregister_ftrace_return(void); | 336 | extern void unregister_ftrace_return(void); |
337 | |||
338 | extern void ftrace_retfunc_init_task(struct task_struct *t); | ||
339 | extern void ftrace_retfunc_exit_task(struct task_struct *t); | ||
340 | #else | ||
341 | static inline void ftrace_retfunc_init_task(struct task_struct *t) { } | ||
342 | static inline void ftrace_retfunc_exit_task(struct task_struct *t) { } | ||
333 | #endif | 343 | #endif |
334 | 344 | ||
335 | #endif /* _LINUX_FTRACE_H */ | 345 | #endif /* _LINUX_FTRACE_H */ |