diff options
Diffstat (limited to 'arch/alpha/include/asm/perf_event.h')
| -rw-r--r-- | arch/alpha/include/asm/perf_event.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/perf_event.h b/arch/alpha/include/asm/perf_event.h new file mode 100644 index 000000000..725365660 --- /dev/null +++ b/arch/alpha/include/asm/perf_event.h @@ -0,0 +1,11 @@ +#ifndef __ASM_ALPHA_PERF_EVENT_H +#define __ASM_ALPHA_PERF_EVENT_H + +/* + * Software events have no trap frame, so perf_fetch_caller_regs() fills + * in a zeroed pt_regs. A zero ps already means kernel mode; only pc is + * missing. + */ +#define perf_arch_fetch_caller_regs(regs, __ip) ((regs)->pc = (__ip)) + +#endif /* __ASM_ALPHA_PERF_EVENT_H */ |
