powerpc/ftrace: Enable HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 5 Sep 2019 18:20:29 +0000 (23:50 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Sep 2019 02:24:55 +0000 (12:24 +1000)
commit370011a27028d6f05e598ed6211a0ca2dc0213f7
tree9795c67704e2d5d70595e4e61e5517393d40f644
parenta3db31ff6ce31f5a544a66b61613a098029031cc
powerpc/ftrace: Enable HAVE_FUNCTION_GRAPH_RET_ADDR_PTR

This associates entries in the ftrace_ret_stack with corresponding stack
frames, enabling more robust stack unwinding. Also update the only user
of ftrace_graph_ret_addr() to pass the stack pointer.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0224f2d0971b069c678e2ff678cfc2cd1e114cfe.1567707399.git.naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/include/asm/ftrace.h
arch/powerpc/kernel/stacktrace.c
arch/powerpc/kernel/trace/ftrace.c
arch/powerpc/kernel/trace/ftrace_32.S
arch/powerpc/kernel/trace/ftrace_64_mprofile.S
arch/powerpc/kernel/trace/ftrace_64_pg.S