10 #include <linux/module.h>
13 #include <asm/unwind.h>
24 asm volatile (
"copy %%r30, %0" :
"=r"(
sp));
26 r.iaoq[0] = (
unsigned long)&&HERE;
27 r.gr[2] = (
unsigned long)__builtin_return_address(0);
35 trace->nr_entries = 0;
36 while (trace->nr_entries < trace->max_entries) {
41 trace->entries[trace->nr_entries++] =
info.ip;
52 if (trace->nr_entries < trace->max_entries)
53 trace->entries[trace->nr_entries++] =
ULONG_MAX;
60 if (trace->nr_entries < trace->max_entries)
61 trace->entries[trace->nr_entries++] =
ULONG_MAX;