ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TEST
authorArd Biesheuvel <ardb@kernel.org>
Tue, 25 Jan 2022 10:20:49 +0000 (11:20 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 9 Feb 2022 08:12:33 +0000 (09:12 +0100)
commit953f534a7ed6b725d4f101d2949393acc9262880
tree7df80887659d9b3f7efb288b11bec86b8c7651c7
parent65aa7e342a988efee372e1e5fa8ed8b88fd4f949
ARM: ftrace: enable HAVE_FUNCTION_GRAPH_FP_TEST

Fix the frame pointer handling in the function graph tracer entry and
exit code so we can enable HAVE_FUNCTION_GRAPH_FP_TEST. Instead of using
FP directly (which will have different values between the entry and exit
pieces of the function graph tracer), use the value of SP at entry and
exit, as we can derive the former value from the frame pointer.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
arch/arm/include/asm/ftrace.h
arch/arm/kernel/entry-ftrace.S
arch/arm/kernel/ftrace.c