diff options
Diffstat (limited to 'kernel/trace/trace_event_perf.c')
-rw-r--r-- | kernel/trace/trace_event_perf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c index 196fe9d26773..0a47e8d6b491 100644 --- a/kernel/trace/trace_event_perf.c +++ b/kernel/trace/trace_event_perf.c | |||
@@ -80,7 +80,7 @@ int perf_trace_enable(int event_id) | |||
80 | 80 | ||
81 | mutex_lock(&event_mutex); | 81 | mutex_lock(&event_mutex); |
82 | list_for_each_entry(event, &ftrace_events, list) { | 82 | list_for_each_entry(event, &ftrace_events, list) { |
83 | if (event->id == event_id && | 83 | if (event->event.type == event_id && |
84 | event->class && event->class->perf_probe && | 84 | event->class && event->class->perf_probe && |
85 | try_module_get(event->mod)) { | 85 | try_module_get(event->mod)) { |
86 | ret = perf_trace_event_enable(event); | 86 | ret = perf_trace_event_enable(event); |
@@ -128,7 +128,7 @@ void perf_trace_disable(int event_id) | |||
128 | 128 | ||
129 | mutex_lock(&event_mutex); | 129 | mutex_lock(&event_mutex); |
130 | list_for_each_entry(event, &ftrace_events, list) { | 130 | list_for_each_entry(event, &ftrace_events, list) { |
131 | if (event->id == event_id) { | 131 | if (event->event.type == event_id) { |
132 | perf_trace_event_disable(event); | 132 | perf_trace_event_disable(event); |
133 | module_put(event->mod); | 133 | module_put(event->mod); |
134 | break; | 134 | break; |