From 9fc1894c9883439245b225d16100d6a55b25373a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 17 Apr 2013 11:01:22 -0400 Subject: [PATCH] arch/tile: Fix syscall return value passed to tracepoint Currently the syscall number is passed, but it should be the return value, which is kept in r0. Signed-off-by: Simon Marchi Signed-off-by: Chris Metcalf [using a raw 0 value] --- arch/tile/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/kernel/ptrace.c b/arch/tile/kernel/ptrace.c index 363b2dd20f99..0f83ed4602b2 100644 --- a/arch/tile/kernel/ptrace.c +++ b/arch/tile/kernel/ptrace.c @@ -269,7 +269,7 @@ void do_syscall_trace_exit(struct pt_regs *regs) tracehook_report_syscall_exit(regs, 0); if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) - trace_sys_exit(regs, regs->regs[TREG_SYSCALL_NR]); + trace_sys_exit(regs, regs->regs[0]); } void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code) -- GitLab