arm: don't open-code ptrace_report_syscall()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 19 May 2012 18:27:27 +0000 (14:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 May 2012 18:40:44 +0000 (14:40 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm/kernel/ptrace.c

index d407ebf418015f18b9a840bdb2e03e08013d6375..688a0a970c71ba0668ec2f56af31fe4fdf77b38c 100644 (file)
@@ -932,20 +932,7 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
         */
        ip = regs->ARM_ip;
        regs->ARM_ip = why;
-
-       /* the 0x80 provides a way for the tracing parent to distinguish
-          between a syscall stop and SIGTRAP delivery */
-       ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)
-                                ? 0x80 : 0));
-       /*
-        * this isn't the same as continuing with a signal, but it will do
-        * for normal use.  strace only continues with a signal if the
-        * stopping signal is not SIGTRAP.  -brl
-        */
-       if (current->exit_code) {
-               send_sig(current->exit_code, current, 1);
-               current->exit_code = 0;
-       }
+       ptrace_report_syscall(regs);
        regs->ARM_ip = ip;
 
        return current_thread_info()->syscall;