]> git.baikalelectronics.ru Git - kernel.git/commit
tile: ftrace: fix function_graph tracer issues
authorTony Lu <zlu@ezchip.com>
Fri, 27 Mar 2015 18:46:38 +0000 (14:46 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Fri, 17 Apr 2015 18:01:38 +0000 (14:01 -0400)
commitec3a306257d2059cc7100cd6051f82f93dac3aad
treeddc6e9491b9a14a09c6476d0543e9f4896dfd77d
parent3c8a6eb06ce2b6e883be50a98190ad26a3713ca1
tile: ftrace: fix function_graph tracer issues

- Add support for ARCH_SUPPORTS_FTRACE_OPS
- Replace the instruction in ftrace_call with the bundle {move r10, lr;
jal ftrace_stub}, so that the lr contains the right value after returning
from ftrace_stub.  An alternative fix might be to leave the instruction
in ftrace_call alone when it is being updated with ftrace_stub.

Signed-off-by: Tony Lu <zlu@ezchip.com>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/include/asm/ftrace.h
arch/tile/kernel/ftrace.c
arch/tile/kernel/mcount_64.S