arch/tile: Fix syscall return value passed to tracepoint
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 17 Apr 2013 15:01:22 +0000 (11:01 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 24 Apr 2013 20:45:55 +0000 (16:45 -0400)
Currently the syscall number is passed, but it should be the return
value, which is kept in r0.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [using a raw 0 value]
arch/tile/kernel/ptrace.c

index 363b2dd20f996343a20facd2938502ed91d07023..0f83ed4602b2fb878bd8b110632b8b92bf49259c 100644 (file)
@@ -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)