xref: /linux/arch/parisc/include/asm/perf_event.h (revision 8a7c601e14576a22c2bbf7f67455ccf3f3d2737f)
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