diff options
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
| -rw-r--r-- | arch/x86/kernel/ptrace.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index cabdabce3cb2..113b8927c822 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
| @@ -36,10 +36,11 @@ | |||
| 36 | #include <asm/ds.h> | 36 | #include <asm/ds.h> |
| 37 | #include <asm/hw_breakpoint.h> | 37 | #include <asm/hw_breakpoint.h> |
| 38 | 38 | ||
| 39 | #include <trace/syscall.h> | ||
| 40 | |||
| 41 | #include "tls.h" | 39 | #include "tls.h" |
| 42 | 40 | ||
| 41 | #define CREATE_TRACE_POINTS | ||
| 42 | #include <trace/events/syscalls.h> | ||
| 43 | |||
| 43 | enum x86_regset { | 44 | enum x86_regset { |
| 44 | REGSET_GENERAL, | 45 | REGSET_GENERAL, |
| 45 | REGSET_FP, | 46 | REGSET_FP, |
| @@ -1548,8 +1549,8 @@ asmregparm long syscall_trace_enter(struct pt_regs *regs) | |||
| 1548 | tracehook_report_syscall_entry(regs)) | 1549 | tracehook_report_syscall_entry(regs)) |
| 1549 | ret = -1L; | 1550 | ret = -1L; |
| 1550 | 1551 | ||
| 1551 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 1552 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) |
| 1552 | ftrace_syscall_enter(regs); | 1553 | trace_sys_enter(regs, regs->orig_ax); |
| 1553 | 1554 | ||
| 1554 | if (unlikely(current->audit_context)) { | 1555 | if (unlikely(current->audit_context)) { |
| 1555 | if (IS_IA32) | 1556 | if (IS_IA32) |
| @@ -1574,8 +1575,8 @@ asmregparm void syscall_trace_leave(struct pt_regs *regs) | |||
| 1574 | if (unlikely(current->audit_context)) | 1575 | if (unlikely(current->audit_context)) |
| 1575 | audit_syscall_exit(AUDITSC_RESULT(regs->ax), regs->ax); | 1576 | audit_syscall_exit(AUDITSC_RESULT(regs->ax), regs->ax); |
| 1576 | 1577 | ||
| 1577 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 1578 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) |
| 1578 | ftrace_syscall_exit(regs); | 1579 | trace_sys_exit(regs, regs->ax); |
| 1579 | 1580 | ||
| 1580 | if (test_thread_flag(TIF_SYSCALL_TRACE)) | 1581 | if (test_thread_flag(TIF_SYSCALL_TRACE)) |
| 1581 | tracehook_report_syscall_exit(regs, 0); | 1582 | tracehook_report_syscall_exit(regs, 0); |
