diff options
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 8712ce3c6a0e..233f3483ac83 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -2,7 +2,7 @@ | |||
2 | #include <trace/events/syscalls.h> | 2 | #include <trace/events/syscalls.h> |
3 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
4 | #include <linux/ftrace.h> | 4 | #include <linux/ftrace.h> |
5 | #include <linux/perf_counter.h> | 5 | #include <linux/perf_event.h> |
6 | #include <asm/syscall.h> | 6 | #include <asm/syscall.h> |
7 | 7 | ||
8 | #include "trace_output.h" | 8 | #include "trace_output.h" |
@@ -414,7 +414,7 @@ static void prof_syscall_enter(struct pt_regs *regs, long id) | |||
414 | rec->nr = syscall_nr; | 414 | rec->nr = syscall_nr; |
415 | syscall_get_arguments(current, regs, 0, sys_data->nb_args, | 415 | syscall_get_arguments(current, regs, 0, sys_data->nb_args, |
416 | (unsigned long *)&rec->args); | 416 | (unsigned long *)&rec->args); |
417 | perf_tpcounter_event(sys_data->enter_id, 0, 1, rec, size); | 417 | perf_tp_event(sys_data->enter_id, 0, 1, rec, size); |
418 | } while(0); | 418 | } while(0); |
419 | } | 419 | } |
420 | 420 | ||
@@ -476,7 +476,7 @@ static void prof_syscall_exit(struct pt_regs *regs, long ret) | |||
476 | rec.nr = syscall_nr; | 476 | rec.nr = syscall_nr; |
477 | rec.ret = syscall_get_return_value(current, regs); | 477 | rec.ret = syscall_get_return_value(current, regs); |
478 | 478 | ||
479 | perf_tpcounter_event(sys_data->exit_id, 0, 1, &rec, sizeof(rec)); | 479 | perf_tp_event(sys_data->exit_id, 0, 1, &rec, sizeof(rec)); |
480 | } | 480 | } |
481 | 481 | ||
482 | int reg_prof_syscall_exit(char *name) | 482 | int reg_prof_syscall_exit(char *name) |