diff options
-rw-r--r-- | arch/sh/kernel/ptrace_32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index c198eceaee94..f4f58e438a26 100644 --- a/arch/sh/kernel/ptrace_32.c +++ b/arch/sh/kernel/ptrace_32.c | |||
@@ -461,8 +461,10 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) | |||
461 | */ | 461 | */ |
462 | ret = -1L; | 462 | ret = -1L; |
463 | 463 | ||
464 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
464 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 465 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) |
465 | ftrace_syscall_enter(regs); | 466 | ftrace_syscall_enter(regs); |
467 | #endif | ||
466 | 468 | ||
467 | if (unlikely(current->audit_context)) | 469 | if (unlikely(current->audit_context)) |
468 | audit_syscall_entry(audit_arch(), regs->regs[3], | 470 | audit_syscall_entry(audit_arch(), regs->regs[3], |
@@ -480,8 +482,10 @@ asmlinkage void do_syscall_trace_leave(struct pt_regs *regs) | |||
480 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[0]), | 482 | audit_syscall_exit(AUDITSC_RESULT(regs->regs[0]), |
481 | regs->regs[0]); | 483 | regs->regs[0]); |
482 | 484 | ||
485 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
483 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) | 486 | if (unlikely(test_thread_flag(TIF_SYSCALL_FTRACE))) |
484 | ftrace_syscall_exit(regs); | 487 | ftrace_syscall_exit(regs); |
488 | #endif | ||
485 | 489 | ||
486 | step = test_thread_flag(TIF_SINGLESTEP); | 490 | step = test_thread_flag(TIF_SINGLESTEP); |
487 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) | 491 | if (step || test_thread_flag(TIF_SYSCALL_TRACE)) |