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