summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/perf_callchain.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware)2018-12-07 19:13:28 +0100
committerSteven Rostedt (VMware)2018-12-22 14:21:02 +0100
commita448276ce515c91cde4675be497364b91c764d95 (patch)
treee231786f2358f89a66ba958c97ee4e42c35fe259 /arch/arm64/kernel/perf_callchain.c
parentsh: ftrace: Use ftrace_graph_get_ret_stack() instead of curr_ret_stack (diff)
downloadkernel-qcow2-linux-a448276ce515c91cde4675be497364b91c764d95.tar.gz
kernel-qcow2-linux-a448276ce515c91cde4675be497364b91c764d95.tar.xz
kernel-qcow2-linux-a448276ce515c91cde4675be497364b91c764d95.zip
arm64: Use ftrace_graph_get_ret_stack() instead of curr_ret_stack
The structure of the ret_stack array on the task struct is going to change, and accessing it directly via the curr_ret_stack index will no longer give the ret_stack entry that holds the return address. To access that, architectures must now use ftrace_graph_get_ret_stack() to get the associated ret_stack that matches the saved return address. Cc: linux-arm-kernel@lists.infradead.org Cc: Will Deacon <will.deacon@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/arm64/kernel/perf_callchain.c')
-rw-r--r--arch/arm64/kernel/perf_callchain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/perf_callchain.c b/arch/arm64/kernel/perf_callchain.c
index bcafd7dcfe8b..1b792b46604e 100644
--- a/arch/arm64/kernel/perf_callchain.c
+++ b/arch/arm64/kernel/perf_callchain.c
@@ -164,7 +164,7 @@ void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry,
frame.fp = regs->regs[29];
frame.pc = regs->pc;
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
- frame.graph = current->curr_ret_stack;
+ frame.graph = 0;
#endif
walk_stackframe(current, &frame, callchain_trace, entry);