tracing/profile: Add filter support
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 15 Oct 2009 03:21:42 +0000 (11:21 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 15 Oct 2009 09:35:23 +0000 (11:35 +0200)
commit6fb2915df7f0747d9044da9dbff5b46dc2e20830
treeb4c5d7d913362ae6161c2859a7a385263330e965
parentb0f1a59a98d7ac2102e7e4f22904c26d564a5628
tracing/profile: Add filter support

- Add an ioctl to allocate a filter for a perf event.

- Free the filter when the associated perf event is to be freed.

- Do the filtering in perf_swevent_match().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <4AD69546.8050401@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace_event.h
include/linux/perf_counter.h
include/linux/perf_event.h
kernel/perf_event.c
kernel/trace/trace.h
kernel/trace/trace_events_filter.c