Go to the documentation of this file. 1 #ifndef ARCH_PERF_REGS_H
2 #define ARCH_PERF_REGS_H
5 #include "../../util/types.h"
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)