ftrace: Fix perf-tracepoint OOPS
authorPeter Zijlstra <peterz@infradead.org>
Wed, 5 Aug 2009 18:41:04 +0000 (20:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Aug 2009 04:26:09 +0000 (06:26 +0200)
commitaf6af30c0fcd77e621638e53ef8b176bca8bd3b4
treefde3faf7cc117e208dd033eee707dbd9de5f912e
parent386c0b702b1ea81c0f54f5c9832a3d4a52270f14
ftrace: Fix perf-tracepoint OOPS

Not all tracepoints are created equal, in specific the ftrace
tracepoints are created with TRACE_EVENT_FORMAT() which does
not generate the needed bits to tie them into perf counters.

For those events, don't create the 'id' file and fail
->profile_enable when their ID is specified through other
means.

Reported-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1249497664.5890.4.camel@laptop>
[ v2: fix build error in the !CONFIG_EVENT_PROFILE case ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace_event.h
kernel/trace/trace_event_profile.c
kernel/trace/trace_events.c