aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-12-04 00:26:40 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-04 03:09:37 -0500
commit978f3a45d9499c7a447ca7615455cefb63d44165 (patch)
tree13a59046c8fe7ae3a095444515cd50c0a57727b3 /kernel/trace/trace.h
parent5ef6476190d24419a9a537baa0b5641845136989 (diff)
ftrace: use struct pid
Impact: clean up, extend PID filtering to PID namespaces Eric Biederman suggested using the struct pid for filtering on pids in the kernel. This patch is based off of a demonstration of an implementation that Eric sent me in an email. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 95fff37ed970..8b81b4d727bd 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -541,11 +541,11 @@ 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; 544extern struct pid *ftrace_pid_trace;
545 545
546static inline int ftrace_trace_task(struct task_struct *task) 546static inline int ftrace_trace_task(struct task_struct *task)
547{ 547{
548 if (ftrace_pid_trace < 0) 548 if (ftrace_pid_trace)
549 return 1; 549 return 1;
550 550
551 return test_tsk_trace_trace(task); 551 return test_tsk_trace_trace(task);