diff options
author | Peter Zijlstra <peterz@infradead.org> | 2009-08-05 14:41:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-06 00:26:09 -0400 |
commit | af6af30c0fcd77e621638e53ef8b176bca8bd3b4 (patch) | |
tree | fde3faf7cc117e208dd033eee707dbd9de5f912e /include/linux | |
parent | 386c0b702b1ea81c0f54f5c9832a3d4a52270f14 (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ftrace_event.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 5c093ffc655b..d7cd193c2277 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -119,11 +119,9 @@ struct ftrace_event_call { | |||
119 | void *filter; | 119 | void *filter; |
120 | void *mod; | 120 | void *mod; |
121 | 121 | ||
122 | #ifdef CONFIG_EVENT_PROFILE | 122 | atomic_t profile_count; |
123 | atomic_t profile_count; | 123 | int (*profile_enable)(struct ftrace_event_call *); |
124 | int (*profile_enable)(struct ftrace_event_call *); | 124 | void (*profile_disable)(struct ftrace_event_call *); |
125 | void (*profile_disable)(struct ftrace_event_call *); | ||
126 | #endif | ||
127 | }; | 125 | }; |
128 | 126 | ||
129 | #define MAX_FILTER_PRED 32 | 127 | #define MAX_FILTER_PRED 32 |