Skip to content

Commit

Permalink
arch/tile: Fix syscall return value passed to tracepoint
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Simon Marchi authored and Chris Metcalf committed Apr 24, 2013
1 parent ffae3d0 commit 9fc1894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9fc1894

Please sign in to comment.