diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 41f026bfc9ed..95fff37ed970 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -541,6 +541,16 @@ print_graph_function(struct trace_iterator *iter) | |||
541 | } | 541 | } |
542 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ | 542 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ |
543 | 543 | ||
544 | extern int ftrace_pid_trace; | ||
545 | |||
546 | static inline int ftrace_trace_task(struct task_struct *task) | ||
547 | { | ||
548 | if (ftrace_pid_trace < 0) | ||
549 | return 1; | ||
550 | |||
551 | return test_tsk_trace_trace(task); | ||
552 | } | ||
553 | |||
544 | /* | 554 | /* |
545 | * trace_iterator_flags is an enumeration that defines bit | 555 | * trace_iterator_flags is an enumeration that defines bit |
546 | * positions into trace_flags that controls the output. | 556 | * positions into trace_flags that controls the output. |