perf_regs.h 525 B

123456789101112131415161718192021222324252627
  1. #ifndef __PERF_REGS_H
  2. #define __PERF_REGS_H
  3. #include "types.h"
  4. #include "event.h"
  5. #ifdef HAVE_PERF_REGS_SUPPORT
  6. #include <perf_regs.h>
  7. int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
  8. #else
  9. #define PERF_REGS_MASK 0
  10. static inline const char *perf_reg_name(int id __maybe_unused)
  11. {
  12. return NULL;
  13. }
  14. static inline int perf_reg_value(u64 *valp __maybe_unused,
  15. struct regs_dump *regs __maybe_unused,
  16. int id __maybe_unused)
  17. {
  18. return 0;
  19. }
  20. #endif /* HAVE_PERF_REGS_SUPPORT */
  21. #endif /* __PERF_REGS_H */