OSDN Git Service

tile: correct r1 value during syscall tracing
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 9 Aug 2013 19:42:56 +0000 (15:42 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Aug 2013 15:56:20 +0000 (11:56 -0400)
commit9b5bbf729d2db27ecb477b42c0701c1c97eb5603
treee48fc575d4f11f9504ebfeb35301c695112195ab
parent8d8cf0674023da578e0539dc7cf4d824b2cf1f9e
tile: correct r1 value during syscall tracing

The r1 value is set based on the r0 value as we return to user space.
So tracing tools won't automatically see the right value.  Fix this by
generating the correct r1 value in do_syscall_trace_exit() rather
than trying to tamper with the hot path in syscall return.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/ptrace.c