diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ftrace.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index b9b4d0a22d10..449fa8e9e34f 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -369,6 +369,14 @@ struct ftrace_graph_ret { | |||
369 | }; | 369 | }; |
370 | 370 | ||
371 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 371 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
372 | |||
373 | /* | ||
374 | * Sometimes we don't want to trace a function with the function | ||
375 | * graph tracer but we want them to keep traced by the usual function | ||
376 | * tracer if the function graph tracer is not configured. | ||
377 | */ | ||
378 | #define __notrace_funcgraph notrace | ||
379 | |||
372 | #define FTRACE_RETFUNC_DEPTH 50 | 380 | #define FTRACE_RETFUNC_DEPTH 50 |
373 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 | 381 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 |
374 | /* Type of the callback handlers for tracing function graph*/ | 382 | /* Type of the callback handlers for tracing function graph*/ |
@@ -394,6 +402,9 @@ static inline int task_curr_ret_stack(struct task_struct *t) | |||
394 | return t->curr_ret_stack; | 402 | return t->curr_ret_stack; |
395 | } | 403 | } |
396 | #else | 404 | #else |
405 | |||
406 | #define __notrace_funcgraph | ||
407 | |||
397 | static inline void ftrace_graph_init_task(struct task_struct *t) { } | 408 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
398 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } | 409 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
399 | 410 | ||