diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-12-04 00:26:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-04 09:09:37 +0100 |
commit | 978f3a45d9499c7a447ca7615455cefb63d44165 (patch) | |
tree | 13a59046c8fe7ae3a095444515cd50c0a57727b3 /kernel/trace/trace.h | |
parent | 5ef6476190d24419a9a537baa0b5641845136989 (diff) | |
download | linux-978f3a45d9499c7a447ca7615455cefb63d44165.tar.bz2 |
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.h | 4 |
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) } #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ -extern int ftrace_pid_trace; +extern struct pid *ftrace_pid_trace; static inline int ftrace_trace_task(struct task_struct *task) { - if (ftrace_pid_trace < 0) + if (ftrace_pid_trace) return 1; return test_tsk_trace_trace(task); |