9 #include "arch-tests.h" 11 #define STACK_SIZE 8192 23 pr_debug(
"failed to allocate sample uregs data\n");
27 sp = (
unsigned long) regs[PERF_REG_POWERPC_R1];
31 pr_debug(
"failed to get stack map\n");
36 stack_size = map->
end - sp;
39 memcpy(buf, (
void *) sp, stack_size);
40 stack->
data = (
char *) buf;
41 stack->
size = stack_size;
53 pr_debug(
"failed to allocate sample uregs data\n");
static int sample_ustack(struct perf_sample *sample, struct thread *thread, u64 *regs)
void perf_regs_load(u64 *regs)
#define pr_debug(fmt,...)
#define PERF_SAMPLE_REGS_ABI
struct regs_dump user_regs
x86 movsq based memcpy() in arch/x86/lib/memcpy_64.S") MEMCPY_FN(memcpy_erms
static struct map * map_groups__find(struct map_groups *mg, u64 addr)
int test__arch_unwind_sample(struct perf_sample *sample, struct thread *thread)
struct stack_dump user_stack