diff options
Diffstat (limited to 'arch/sh/kernel/ptrace_32.c')
-rw-r--r-- | arch/sh/kernel/ptrace_32.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index f4f58e438a26..9be35f348093 100644 --- a/arch/sh/kernel/ptrace_32.c +++ b/arch/sh/kernel/ptrace_32.c | |||
@@ -34,7 +34,8 @@ | |||
34 | #include <asm/syscalls.h> | 34 | #include <asm/syscalls.h> |
35 | #include <asm/fpu.h> | 35 | #include <asm/fpu.h> |
36 | 36 | ||
37 | #include <trace/syscall.h> | 37 | #define CREATE_TRACE_POINTS |
38 | #include <trace/events/syscalls.h> | ||
38 | 39 | ||
39 | /* | 40 | /* |
40 | * This routine will get a word off of the process kernel stack. | 41 | * This routine will get a word off of the process kernel stack. |
@@ -461,10 +462,8 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) | |||
461 | */ | 462 | */ |
462 | ret = -1L; | 463 | ret = -1L; |
463 | 464 | ||
464 | #ifdef CONFIG_FTRACE_SYSCALLS | 465 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) |
465 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 466 | trace_sys_enter(regs, regs->regs[0]); |
466 | ftrace_syscall_enter(regs); | ||
467 | #endif | ||
468 | 467 | ||
469 | if (unlikely(current->audit_context)) | 468 | if (unlikely(current->audit_context)) |
470 | audit_syscall_entry(audit_arch(), regs->regs[3], | 469 | audit_syscall_entry(audit_arch(), regs->regs[3], |
@@ -482,10 +481,8 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) | |||
482 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[0]), | 481 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[0]), |
483 | regs->regs[0]); | 482 | regs->regs[0]); |
484 | 483 | ||
485 | #ifdef CONFIG_FTRACE_SYSCALLS | 484 | if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT))) |
486 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 485 | trace_sys_exit(regs, regs->regs[0]); |
487 | ftrace_syscall_exit(regs); | ||
488 | #endif | ||
489 | 486 | ||
490 | step = test_thread_flag(TIF_SINGLESTEP); | 487 | step = test_thread_flag(TIF_SINGLESTEP); |
491 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) | 488 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) |