2 #ifndef ARCH_PERF_REGS_H 3 #define ARCH_PERF_REGS_H 6 #include <linux/types.h> 7 #include <asm/perf_regs.h> 11 #ifndef HAVE_ARCH_X86_64_SUPPORT 12 #define PERF_REGS_MASK ((1ULL << PERF_REG_X86_32_MAX) - 1) 13 #define PERF_REGS_MAX PERF_REG_X86_32_MAX 14 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 16 #define REG_NOSUPPORT ((1ULL << PERF_REG_X86_DS) | \ 17 (1ULL << PERF_REG_X86_ES) | \ 18 (1ULL << PERF_REG_X86_FS) | \ 19 (1ULL << PERF_REG_X86_GS)) 20 #define PERF_REGS_MASK (((1ULL << PERF_REG_X86_64_MAX) - 1) & ~REG_NOSUPPORT) 21 #define PERF_REGS_MAX PERF_REG_X86_64_MAX 22 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64 24 #define PERF_REG_IP PERF_REG_X86_IP 25 #define PERF_REG_SP PERF_REG_X86_SP 48 case PERF_REG_X86_FLAGS:
62 #ifdef HAVE_ARCH_X86_64_SUPPORT 67 case PERF_REG_X86_R10:
69 case PERF_REG_X86_R11:
71 case PERF_REG_X86_R12:
73 case PERF_REG_X86_R13:
75 case PERF_REG_X86_R14:
77 case PERF_REG_X86_R15:
static const char * perf_reg_name(int id)
void perf_regs_load(u64 *regs)