aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-06-28 16:33:13 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-06-28 16:33:24 -0400
commitf384c954c9fe3d3c6fce5ae66b67f2ddd947d098 (patch)
treea38541b8083a2304435e9a153d408bd7cd44116e /kernel/trace
parent9a15a07fe2175dc25cd928a354b3839f562ac8cc (diff)
parent5904b3b81d25166e5e39b9727645bb47937618e3 (diff)
Merge branch 'linus' into perf/core
Reason: Further changes conflict with upstream fixes Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_event_perf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c
index 4799d7047eb0..6053982dc302 100644
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -94,7 +94,9 @@ int perf_trace_init(struct perf_event *p_event)
94 mutex_lock(&event_mutex); 94 mutex_lock(&event_mutex);
95 list_for_each_entry(tp_event, &ftrace_events, list) { 95 list_for_each_entry(tp_event, &ftrace_events, list) {
96 if (tp_event->event.type == event_id && 96 if (tp_event->event.type == event_id &&
97 tp_event->class && tp_event->class->perf_probe && 97 tp_event->class &&
98 (tp_event->class->perf_probe ||
99 tp_event->class->reg) &&
98 try_module_get(tp_event->mod)) { 100 try_module_get(tp_event->mod)) {
99 ret = perf_trace_event_init(tp_event, p_event); 101 ret = perf_trace_event_init(tp_event, p_event);
100 break; 102 break;