diff options
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r-- | include/trace/ftrace.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 824141d5cf04..4866c109fa9a 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -150,7 +150,7 @@ | |||
150 | * | 150 | * |
151 | * entry = iter->ent; | 151 | * entry = iter->ent; |
152 | * | 152 | * |
153 | * if (entry->type != event_<call>.id) { | 153 | * if (entry->type != event_<call>->event.type) { |
154 | * WARN_ON_ONCE(1); | 154 | * WARN_ON_ONCE(1); |
155 | * return TRACE_TYPE_UNHANDLED; | 155 | * return TRACE_TYPE_UNHANDLED; |
156 | * } | 156 | * } |
@@ -221,7 +221,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | |||
221 | \ | 221 | \ |
222 | entry = iter->ent; \ | 222 | entry = iter->ent; \ |
223 | \ | 223 | \ |
224 | if (entry->type != event->id) { \ | 224 | if (entry->type != event->event.type) { \ |
225 | WARN_ON_ONCE(1); \ | 225 | WARN_ON_ONCE(1); \ |
226 | return TRACE_TYPE_UNHANDLED; \ | 226 | return TRACE_TYPE_UNHANDLED; \ |
227 | } \ | 227 | } \ |
@@ -257,7 +257,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags, \ | |||
257 | \ | 257 | \ |
258 | entry = iter->ent; \ | 258 | entry = iter->ent; \ |
259 | \ | 259 | \ |
260 | if (entry->type != event_##call.id) { \ | 260 | if (entry->type != event_##call.event.type) { \ |
261 | WARN_ON_ONCE(1); \ | 261 | WARN_ON_ONCE(1); \ |
262 | return TRACE_TYPE_UNHANDLED; \ | 262 | return TRACE_TYPE_UNHANDLED; \ |
263 | } \ | 263 | } \ |
@@ -409,7 +409,7 @@ static inline notrace int ftrace_get_offsets_##call( \ | |||
409 | * __data_size = ftrace_get_offsets_<call>(&__data_offsets, args); | 409 | * __data_size = ftrace_get_offsets_<call>(&__data_offsets, args); |
410 | * | 410 | * |
411 | * event = trace_current_buffer_lock_reserve(&buffer, | 411 | * event = trace_current_buffer_lock_reserve(&buffer, |
412 | * event_<call>.id, | 412 | * event_<call>->event.type, |
413 | * sizeof(*entry) + __data_size, | 413 | * sizeof(*entry) + __data_size, |
414 | * irq_flags, pc); | 414 | * irq_flags, pc); |
415 | * if (!event) | 415 | * if (!event) |
@@ -510,7 +510,7 @@ ftrace_raw_event_##call(void *__data, proto) \ | |||
510 | __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \ | 510 | __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \ |
511 | \ | 511 | \ |
512 | event = trace_current_buffer_lock_reserve(&buffer, \ | 512 | event = trace_current_buffer_lock_reserve(&buffer, \ |
513 | event_call->id, \ | 513 | event_call->event.type, \ |
514 | sizeof(*entry) + __data_size, \ | 514 | sizeof(*entry) + __data_size, \ |
515 | irq_flags, pc); \ | 515 | irq_flags, pc); \ |
516 | if (!event) \ | 516 | if (!event) \ |
@@ -711,7 +711,7 @@ perf_trace_##call(void *__data, proto) \ | |||
711 | "profile buffer not large enough")) \ | 711 | "profile buffer not large enough")) \ |
712 | return; \ | 712 | return; \ |
713 | entry = (struct ftrace_raw_##call *)perf_trace_buf_prepare( \ | 713 | entry = (struct ftrace_raw_##call *)perf_trace_buf_prepare( \ |
714 | __entry_size, event_call->id, &rctx, &irq_flags); \ | 714 | __entry_size, event_call->event.type, &rctx, &irq_flags); \ |
715 | if (!entry) \ | 715 | if (!entry) \ |
716 | return; \ | 716 | return; \ |
717 | tstruct \ | 717 | tstruct \ |