perf_event.h 359 B

1234567891011121314
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_PERF_EVENT_H
  3. #define __ASM_CSKY_PERF_EVENT_H
  4. #include <abi/regdef.h>
  5. #define perf_arch_fetch_caller_regs(regs, __ip) { \
  6. (regs)->pc = (__ip); \
  7. regs_fp(regs) = (unsigned long) __builtin_frame_address(0); \
  8. asm volatile("mov %0, sp\n":"=r"((regs)->usp)); \
  9. }
  10. #endif /* __ASM_PERF_EVENT_ELF_H */