]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 13 Aug 2013 20:27:12 +0000 (16:27 -0400)
commit2b5693920761383cb981f4dd09ee8320a628b342
tree1c81a2c0c8380a282761d690fd482c86d67a45f2
parentfb82e3438a15db16ca61384222dcf511146ba76d
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