Commit 9fc1894c authored by Simon Marchi's avatar Simon Marchi Committed by Chris Metcalf

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: default avatarSimon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [using a raw 0 value]
parent ffae3d0e
...@@ -269,7 +269,7 @@ void do_syscall_trace_exit(struct pt_regs *regs) ...@@ -269,7 +269,7 @@ void do_syscall_trace_exit(struct pt_regs *regs)
tracehook_report_syscall_exit(regs, 0); tracehook_report_syscall_exit(regs, 0);
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) 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) void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment