diff options
author | Drew Richardson <drew.richardson@arm.com> | 2016-02-25 14:28:20 -0800 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:49:45 +0900 |
commit | fbbfc4e7d8e6feb6d32bf75c4632a920356a8faf (patch) | |
tree | 979d4f4d26943097ed3c2fe33e8b4331bbb89451 | |
parent | 9ea78736cdfaca4f68565d85c2e1f6086406b367 (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>
-rw-r--r-- | drivers/gator/gator_backtrace.c | 4 |
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 |