tracing: Restore system filter behavior
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 1 Nov 2011 01:09:35 +0000 (09:09 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 2 Nov 2011 17:56:25 +0000 (13:56 -0400)
commited0449af5373abd766c79fbf83254bebc996bd23
treee72b0cde1827e4558c8748e7a410086ba124ef7f
parentd631097577f6fe027f4903f62eabced6445d19bf
tracing: Restore system filter behavior

Though not all events have field 'prev_pid', it was allowed to do this:

  # echo 'prev_pid == 100' > events/sched/filter

but commit 75b8e98263fdb0bfbdeba60d4db463259f1fe8a2 (tracing/filter: Swap
entire filter of events) broke it without any reason.

Link: http://lkml.kernel.org/r/4EAF46CF.8040408@cn.fujitsu.com
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
kernel/trace/trace_events_filter.c