diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2013-04-17 11:01:22 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-04-24 16:45:55 -0400 |
commit | 9fc1894c9883439245b225d16100d6a55b25373a (patch) | |
tree | dc921b815267094b12ce854447c61f7878ed2aaa /arch/tile | |
parent | ffae3d0e3606b2e274c9ec1b969342d630b2ecae (diff) |
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 <simon.marchi@polymtl.ca>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [using a raw 0 value]
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
269 | tracehook_report_syscall_exit(regs, 0); | 269 | tracehook_report_syscall_exit(regs, 0); |
270 | 270 | ||
271 | if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) | 271 | if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) |
272 | trace_sys_exit(regs, regs->regs[TREG_SYSCALL_NR]); | 272 | trace_sys_exit(regs, regs->regs[0]); |
273 | } | 273 | } |
274 | 274 | ||
275 | void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code) | 275 | void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code) |