10 #include <linux/kernel.h>
11 #include <linux/sched.h>
12 #include <linux/perf_event.h>
15 #include <asm/ptrace.h>
17 static int callchain_stack(
void *
data,
char *
name)
22 static void callchain_address(
void *
data,
unsigned long addr,
int reliable)
27 perf_callchain_store(entry, addr);
31 .stack = callchain_stack,
32 .address = callchain_address,
38 perf_callchain_store(entry, regs->
pc);