mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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
This commit is contained in:
parent
a3db31ff6c
commit
370011a270
7 changed files with 11 additions and 4 deletions
|
@ -182,7 +182,7 @@ static int __save_stack_trace_tsk_reliable(struct task_struct *tsk,
|
|||
* FIXME: IMHO these tests do not belong in
|
||||
* arch-dependent code, they are generic.
|
||||
*/
|
||||
ip = ftrace_graph_ret_addr(tsk, &graph_idx, ip, NULL);
|
||||
ip = ftrace_graph_ret_addr(tsk, &graph_idx, ip, stack);
|
||||
#ifdef CONFIG_KPROBES
|
||||
/*
|
||||
* Mark stacktraces with kretprobed functions on them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue