diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
| -rw-r--r-- | kernel/trace/trace_events.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index c212a7f934ec..079a93ae8a9d 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
| @@ -147,7 +147,8 @@ int trace_event_raw_init(struct ftrace_event_call *call) | |||
| 147 | } | 147 | } |
| 148 | EXPORT_SYMBOL_GPL(trace_event_raw_init); | 148 | EXPORT_SYMBOL_GPL(trace_event_raw_init); |
| 149 | 149 | ||
| 150 | int ftrace_event_reg(struct ftrace_event_call *call, enum trace_reg type) | 150 | int ftrace_event_reg(struct ftrace_event_call *call, |
| 151 | enum trace_reg type, void *data) | ||
| 151 | { | 152 | { |
| 152 | switch (type) { | 153 | switch (type) { |
| 153 | case TRACE_REG_REGISTER: | 154 | case TRACE_REG_REGISTER: |
| @@ -170,6 +171,11 @@ int ftrace_event_reg(struct ftrace_event_call *call, enum trace_reg type) | |||
| 170 | call->class->perf_probe, | 171 | call->class->perf_probe, |
| 171 | call); | 172 | call); |
| 172 | return 0; | 173 | return 0; |
| 174 | case TRACE_REG_PERF_OPEN: | ||
| 175 | case TRACE_REG_PERF_CLOSE: | ||
| 176 | case TRACE_REG_PERF_ADD: | ||
| 177 | case TRACE_REG_PERF_DEL: | ||
| 178 | return 0; | ||
| 173 | #endif | 179 | #endif |
| 174 | } | 180 | } |
| 175 | return 0; | 181 | return 0; |
| @@ -209,7 +215,7 @@ static int ftrace_event_enable_disable(struct ftrace_event_call *call, | |||
| 209 | tracing_stop_cmdline_record(); | 215 | tracing_stop_cmdline_record(); |
| 210 | call->flags &= ~TRACE_EVENT_FL_RECORDED_CMD; | 216 | call->flags &= ~TRACE_EVENT_FL_RECORDED_CMD; |
| 211 | } | 217 | } |
| 212 | call->class->reg(call, TRACE_REG_UNREGISTER); | 218 | call->class->reg(call, TRACE_REG_UNREGISTER, NULL); |
| 213 | } | 219 | } |
| 214 | break; | 220 | break; |
| 215 | case 1: | 221 | case 1: |
| @@ -218,7 +224,7 @@ static int ftrace_event_enable_disable(struct ftrace_event_call *call, | |||
| 218 | tracing_start_cmdline_record(); | 224 | tracing_start_cmdline_record(); |
| 219 | call->flags |= TRACE_EVENT_FL_RECORDED_CMD; | 225 | call->flags |= TRACE_EVENT_FL_RECORDED_CMD; |
| 220 | } | 226 | } |
| 221 | ret = call->class->reg(call, TRACE_REG_REGISTER); | 227 | ret = call->class->reg(call, TRACE_REG_REGISTER, NULL); |
| 222 | if (ret) { | 228 | if (ret) { |
| 223 | tracing_stop_cmdline_record(); | 229 | tracing_stop_cmdline_record(); |
| 224 | pr_info("event trace: Could not enable event " | 230 | pr_info("event trace: Could not enable event " |
