diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index f95f8470dd38..1d289e2d6693 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -86,14 +86,14 @@ static void ftrace_event_enable_disable(struct ftrace_event_call *call, | |||
86 | if (call->enabled) { | 86 | if (call->enabled) { |
87 | call->enabled = 0; | 87 | call->enabled = 0; |
88 | tracing_stop_cmdline_record(); | 88 | tracing_stop_cmdline_record(); |
89 | call->unregfunc(); | 89 | call->unregfunc(call->data); |
90 | } | 90 | } |
91 | break; | 91 | break; |
92 | case 1: | 92 | case 1: |
93 | if (!call->enabled) { | 93 | if (!call->enabled) { |
94 | call->enabled = 1; | 94 | call->enabled = 1; |
95 | tracing_start_cmdline_record(); | 95 | tracing_start_cmdline_record(); |
96 | call->regfunc(); | 96 | call->regfunc(call->data); |
97 | } | 97 | } |
98 | break; | 98 | break; |
99 | } | 99 | } |