perf_regs.c 820 B

1234567891011121314151617181920212223242526272829
  1. #include "../../perf.h"
  2. #include "../../util/perf_regs.h"
  3. const struct sample_reg sample_reg_masks[] = {
  4. SMPL_REG(AX, PERF_REG_X86_AX),
  5. SMPL_REG(BX, PERF_REG_X86_BX),
  6. SMPL_REG(CX, PERF_REG_X86_CX),
  7. SMPL_REG(DX, PERF_REG_X86_DX),
  8. SMPL_REG(SI, PERF_REG_X86_SI),
  9. SMPL_REG(DI, PERF_REG_X86_DI),
  10. SMPL_REG(BP, PERF_REG_X86_BP),
  11. SMPL_REG(SP, PERF_REG_X86_SP),
  12. SMPL_REG(IP, PERF_REG_X86_IP),
  13. SMPL_REG(FLAGS, PERF_REG_X86_FLAGS),
  14. SMPL_REG(CS, PERF_REG_X86_CS),
  15. SMPL_REG(SS, PERF_REG_X86_SS),
  16. #ifdef HAVE_ARCH_X86_64_SUPPORT
  17. SMPL_REG(R8, PERF_REG_X86_R8),
  18. SMPL_REG(R9, PERF_REG_X86_R9),
  19. SMPL_REG(R10, PERF_REG_X86_R10),
  20. SMPL_REG(R11, PERF_REG_X86_R11),
  21. SMPL_REG(R12, PERF_REG_X86_R12),
  22. SMPL_REG(R13, PERF_REG_X86_R13),
  23. SMPL_REG(R14, PERF_REG_X86_R14),
  24. SMPL_REG(R15, PERF_REG_X86_R15),
  25. #endif
  26. SMPL_REG_END
  27. };