Lines Matching refs:buf
17 u64 stack_size, *buf; in sample_ustack() local
19 buf = malloc(STACK_SIZE); in sample_ustack()
20 if (!buf) { in sample_ustack()
30 free(buf); in sample_ustack()
37 memcpy(buf, (void *) sp, stack_size); in sample_ustack()
38 stack->data = (char *) buf; in sample_ustack()
47 u64 *buf; in test__arch_unwind_sample() local
49 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); in test__arch_unwind_sample()
50 if (!buf) { in test__arch_unwind_sample()
55 perf_regs_load(buf); in test__arch_unwind_sample()
57 regs->regs = buf; in test__arch_unwind_sample()
60 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()