diff options
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 7c7cfe95a853..9d358301ae3e 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -117,7 +117,7 @@ print_syscall_enter(struct trace_iterator *iter, int flags, | |||
117 | if (!entry) | 117 | if (!entry) |
118 | goto end; | 118 | goto end; |
119 | 119 | ||
120 | if (entry->enter_event->id != ent->type) { | 120 | if (entry->enter_event->event.type != ent->type) { |
121 | WARN_ON_ONCE(1); | 121 | WARN_ON_ONCE(1); |
122 | goto end; | 122 | goto end; |
123 | } | 123 | } |
@@ -173,7 +173,7 @@ print_syscall_exit(struct trace_iterator *iter, int flags, | |||
173 | return TRACE_TYPE_HANDLED; | 173 | return TRACE_TYPE_HANDLED; |
174 | } | 174 | } |
175 | 175 | ||
176 | if (entry->exit_event->id != ent->type) { | 176 | if (entry->exit_event->event.type != ent->type) { |
177 | WARN_ON_ONCE(1); | 177 | WARN_ON_ONCE(1); |
178 | return TRACE_TYPE_UNHANDLED; | 178 | return TRACE_TYPE_UNHANDLED; |
179 | } | 179 | } |
@@ -315,7 +315,7 @@ void ftrace_syscall_enter(void *ignore, struct pt_regs *regs, long id) | |||
315 | size = sizeof(*entry) + sizeof(unsigned long) * sys_data->nb_args; | 315 | size = sizeof(*entry) + sizeof(unsigned long) * sys_data->nb_args; |
316 | 316 | ||
317 | event = trace_current_buffer_lock_reserve(&buffer, | 317 | event = trace_current_buffer_lock_reserve(&buffer, |
318 | sys_data->enter_event->id, size, 0, 0); | 318 | sys_data->enter_event->event.type, size, 0, 0); |
319 | if (!event) | 319 | if (!event) |
320 | return; | 320 | return; |
321 | 321 | ||
@@ -347,7 +347,7 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret) | |||
347 | return; | 347 | return; |
348 | 348 | ||
349 | event = trace_current_buffer_lock_reserve(&buffer, | 349 | event = trace_current_buffer_lock_reserve(&buffer, |
350 | sys_data->exit_event->id, sizeof(*entry), 0, 0); | 350 | sys_data->exit_event->event.type, sizeof(*entry), 0, 0); |
351 | if (!event) | 351 | if (!event) |
352 | return; | 352 | return; |
353 | 353 | ||
@@ -511,7 +511,8 @@ static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) | |||
511 | return; | 511 | return; |
512 | 512 | ||
513 | rec = (struct syscall_trace_enter *)perf_trace_buf_prepare(size, | 513 | rec = (struct syscall_trace_enter *)perf_trace_buf_prepare(size, |
514 | sys_data->enter_event->id, &rctx, &flags); | 514 | sys_data->enter_event->event.type, |
515 | &rctx, &flags); | ||
515 | if (!rec) | 516 | if (!rec) |
516 | return; | 517 | return; |
517 | 518 | ||
@@ -586,7 +587,8 @@ static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) | |||
586 | return; | 587 | return; |
587 | 588 | ||
588 | rec = (struct syscall_trace_exit *)perf_trace_buf_prepare(size, | 589 | rec = (struct syscall_trace_exit *)perf_trace_buf_prepare(size, |
589 | sys_data->exit_event->id, &rctx, &flags); | 590 | sys_data->exit_event->event.type, |
591 | &rctx, &flags); | ||
590 | if (!rec) | 592 | if (!rec) |
591 | return; | 593 | return; |
592 | 594 | ||