]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
tracing/ftrace: fix the check of ftrace_trace_task
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 4 Dec 2008 22:49:47 +0000 (23:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Dec 2008 13:47:43 +0000 (14:47 +0100)
commit77d683f3e0258d522c5506e7b5fd05c9411184d9
treedefa7451b5218e7cfdd3a92117fca96368791425
parentff32504fdc56407654584ef187b20022c94a3486
tracing/ftrace: fix the check of ftrace_trace_task

Impact: fix default empty traces on function-graph-tracer

The actual ftrace_trace_task() checks if ftrace_pid_trace is allocated
and return 1 if it is true.
If it is NULL, it will check the bit of pid tracing flag for the current
task (which are not set by default).
So by default, a task is not traced.
Actually all tasks should be traced by default and filter_by_pid when
ftrace_pid_trace is allocated.

The appropriate condition should be to return 1 if filter_by_pid is
set.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acke-dby: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.h