ARM: 8071/1: perf: Make perf use arm_get_current_stackframe
authorNikolay Borisov <Nikolay.Borisov@arm.com>
Tue, 3 Jun 2014 18:48:43 +0000 (19:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Jul 2014 11:29:12 +0000 (12:29 +0100)
Make the perf backend use the API so that it correctly references the FP
when in THUMB2 mode

Signed-off-by: Nikolay Borisov <Nikolay.Borisov@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c

index 4238bcb..ae3e216 100644 (file)
@@ -621,10 +621,7 @@ perf_callchain_kernel(struct perf_callchain_entry *entry, struct pt_regs *regs)
                return;
        }
 
-       fr.fp = regs->ARM_fp;
-       fr.sp = regs->ARM_sp;
-       fr.lr = regs->ARM_lr;
-       fr.pc = regs->ARM_pc;
+       arm_get_current_stackframe(regs, &fr);
        walk_stackframe(&fr, callchain_trace, entry);
 }