aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h10
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
544extern int ftrace_pid_trace;
545
546static 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.