]> git.baikalelectronics.ru Git - kernel.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>
Fri, 30 Aug 2013 15:56:20 +0000 (11:56 -0400)
commitf386be577c6c62fdf0d70415a9601467644c0615
treee48fc575d4f11f9504ebfeb35301c695112195ab
parent1421a9bc20198fec9075c9d48814777b148a49e7
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