xref: /linux/arch/parisc/include/asm/perf_event.h (revision ec4d11fc4b2dd4a2fa8c9d801ee9753b74623554)
1 #ifndef __ASM_PARISC_PERF_EVENT_H
2 #define __ASM_PARISC_PERF_EVENT_H
3 
4 #include <asm/psw.h>
5 
6 #define perf_arch_fetch_caller_regs(regs, __ip) { \
7 	(regs)->gr[0] = KERNEL_PSW; \
8 	(regs)->iaoq[0] = (__ip); \
9 	asm volatile("copy %%sp, %0\n":"=r"((regs)->gr[30])); \
10 }
11 
12 #endif /* __ASM_PARISC_PERF_EVENT_H */
13