diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-07 18:58:16 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-03 23:10:15 -0500 |
commit | 2b38f7753f2a1653c655bd874f6d2f18f99764fe (patch) | |
tree | b4f716580f1cb02af9a2e0319776fc65d87c1361 | |
parent | 0c74ea3bb257ee183c5356475d0518a8c1eb016c (diff) | |
download | signal-2b38f7753f2a1653c655bd874f6d2f18f99764fe.tar.gz |
tile: don't open-code ptrace_report_syscall()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/tile/kernel/ptrace.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c index 9835312d5a91e3..759b5817edb765 100644 --- a/arch/tile/kernel/ptrace.c +++ b/arch/tile/kernel/ptrace.c @@ -15,7 +15,7 @@ */ #include <linux/kernel.h> -#include <linux/ptrace.h> +#include <linux/tracehook.h> #include <linux/kprobes.h> #include <linux/compat.h> #include <linux/uaccess.h> @@ -251,24 +251,7 @@ void do_syscall_trace(void) if (!test_thread_flag(TIF_SYSCALL_TRACE)) return; - if (!(current->ptrace & PT_PTRACED)) - return; - - /* - * 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(current_pt_regs()); } void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code) |