perf_event.h 302 B

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