diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace_event.h | 5 | ||||
-rw-r--r-- | include/trace/ftrace.h | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index b1a007d6e8fd..0be028527633 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -149,14 +149,13 @@ struct ftrace_event_call { | |||
149 | char *name; | 149 | char *name; |
150 | struct dentry *dir; | 150 | struct dentry *dir; |
151 | struct trace_event event; | 151 | struct trace_event event; |
152 | int enabled; | ||
153 | int id; | ||
154 | const char *print_fmt; | 152 | const char *print_fmt; |
155 | int filter_active; | ||
156 | struct event_filter *filter; | 153 | struct event_filter *filter; |
157 | void *mod; | 154 | void *mod; |
158 | void *data; | 155 | void *data; |
159 | 156 | ||
157 | int enabled; | ||
158 | int filter_active; | ||
160 | int perf_refcount; | 159 | int perf_refcount; |
161 | }; | 160 | }; |
162 | 161 | ||
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 \ |