17 #include <linux/perf_event.h>
19 #include <asm/stacktrace.h>
31 unsigned long *
sp = (
unsigned long *)reg29;
34 while (!kstack_end(sp)) {
37 perf_callchain_store(entry, addr);
47 unsigned long sp = regs->
regs[29];
48 #ifdef CONFIG_KALLSYMS
49 unsigned long ra = regs->
regs[31];
53 unsigned long stack_page =
55 if (stack_page && sp >= stack_page &&
57 save_raw_perf_callchain(entry, sp);
61 perf_callchain_store(entry, pc);
67 save_raw_perf_callchain(entry, sp);