1 #ifndef ARCH_PERF_REGS_H
2 #define ARCH_PERF_REGS_H
5 #include "../../util/types.h"
6 #include <asm/perf_regs.h>
8 #ifndef HAVE_ARCH_X86_64_SUPPORT
9 #define PERF_REGS_MASK ((1ULL << PERF_REG_X86_32_MAX) - 1)
11 #define REG_NOSUPPORT ((1ULL << PERF_REG_X86_DS) | \
12 (1ULL << PERF_REG_X86_ES) | \
13 (1ULL << PERF_REG_X86_FS) | \
14 (1ULL << PERF_REG_X86_GS))
15 #define PERF_REGS_MASK (((1ULL << PERF_REG_X86_64_MAX) - 1) & ~REG_NOSUPPORT)
17 #define PERF_REG_IP PERF_REG_X86_IP
18 #define PERF_REG_SP PERF_REG_X86_SP
20 static inline const char *perf_reg_name(int id)
41 case PERF_REG_X86_FLAGS:
55 #ifdef HAVE_ARCH_X86_64_SUPPORT
60 case PERF_REG_X86_R10:
62 case PERF_REG_X86_R11:
64 case PERF_REG_X86_R12:
66 case PERF_REG_X86_R13:
68 case PERF_REG_X86_R14:
70 case PERF_REG_X86_R15:
72 #endif /* HAVE_ARCH_X86_64_SUPPORT */
80 #endif /* ARCH_PERF_REGS_H */