summaryrefslogtreecommitdiff
path: root/drivers/gator
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2016-02-25 14:28:20 -0800
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:49:45 +0900
commitfbbfc4e7d8e6feb6d32bf75c4632a920356a8faf (patch)
tree979d4f4d26943097ed3c2fe33e8b4331bbb89451 /drivers/gator
parent9ea78736cdfaca4f68565d85c2e1f6086406b367 (diff)
gator: The walk_stackframe function has a new argument for arm64 only starting with Linux 4.5
Signed-off-by: Drew Richardson <drew.richardson@arm.com> [Ported from https://github.com/ARM-software/gator.git to kernel tree] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'drivers/gator')
-rw-r--r--drivers/gator/gator_backtrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gator/gator_backtrace.c b/drivers/gator/gator_backtrace.c
index 51fc0d850343..08e4f8bf2f0f 100644
--- a/drivers/gator/gator_backtrace.c
+++ b/drivers/gator/gator_backtrace.c
@@ -191,7 +191,11 @@ static void kernel_backtrace(int cpu, struct pt_regs *const regs)
frame.sp = regs->sp;
frame.pc = regs->pc;
#endif
+#if defined(__aarch64__) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
+ walk_stackframe(current, &frame, report_trace, &depth);
+#else
walk_stackframe(&frame, report_trace, &depth);
+#endif
#else
marshal_backtrace(PC_REG & ~1, NO_COOKIE, 1);
#endif