1 #ifndef ARCH_PERF_REGS_H
2 #define ARCH_PERF_REGS_H
5 #include <linux/types.h>
6 #include <asm/perf_regs.h>
8 void perf_regs_load(u64
*regs
);
10 #define PERF_REGS_MASK ((1ULL << PERF_REG_ARM64_MAX) - 1)
11 #define PERF_REGS_MAX PERF_REG_ARM64_MAX
12 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64
14 #define PERF_REG_IP PERF_REG_ARM64_PC
15 #define PERF_REG_SP PERF_REG_ARM64_SP
17 static inline const char *perf_reg_name(int id
)
20 case PERF_REG_ARM64_X0
:
22 case PERF_REG_ARM64_X1
:
24 case PERF_REG_ARM64_X2
:
26 case PERF_REG_ARM64_X3
:
28 case PERF_REG_ARM64_X4
:
30 case PERF_REG_ARM64_X5
:
32 case PERF_REG_ARM64_X6
:
34 case PERF_REG_ARM64_X7
:
36 case PERF_REG_ARM64_X8
:
38 case PERF_REG_ARM64_X9
:
40 case PERF_REG_ARM64_X10
:
42 case PERF_REG_ARM64_X11
:
44 case PERF_REG_ARM64_X12
:
46 case PERF_REG_ARM64_X13
:
48 case PERF_REG_ARM64_X14
:
50 case PERF_REG_ARM64_X15
:
52 case PERF_REG_ARM64_X16
:
54 case PERF_REG_ARM64_X17
:
56 case PERF_REG_ARM64_X18
:
58 case PERF_REG_ARM64_X19
:
60 case PERF_REG_ARM64_X20
:
62 case PERF_REG_ARM64_X21
:
64 case PERF_REG_ARM64_X22
:
66 case PERF_REG_ARM64_X23
:
68 case PERF_REG_ARM64_X24
:
70 case PERF_REG_ARM64_X25
:
72 case PERF_REG_ARM64_X26
:
74 case PERF_REG_ARM64_X27
:
76 case PERF_REG_ARM64_X28
:
78 case PERF_REG_ARM64_X29
:
80 case PERF_REG_ARM64_SP
:
82 case PERF_REG_ARM64_LR
:
84 case PERF_REG_ARM64_PC
:
93 #endif /* ARCH_PERF_REGS_H */