5 #include "../../util/unwind.h"
6 #include "../../util/debug.h"
8 int libunwind__arch_reg_id(int regnum
)
12 return PERF_REG_ARM64_X0
;
14 return PERF_REG_ARM64_X1
;
16 return PERF_REG_ARM64_X2
;
18 return PERF_REG_ARM64_X3
;
20 return PERF_REG_ARM64_X4
;
22 return PERF_REG_ARM64_X5
;
24 return PERF_REG_ARM64_X6
;
26 return PERF_REG_ARM64_X7
;
28 return PERF_REG_ARM64_X8
;
30 return PERF_REG_ARM64_X9
;
32 return PERF_REG_ARM64_X10
;
34 return PERF_REG_ARM64_X11
;
36 return PERF_REG_ARM64_X12
;
38 return PERF_REG_ARM64_X13
;
40 return PERF_REG_ARM64_X14
;
42 return PERF_REG_ARM64_X15
;
44 return PERF_REG_ARM64_X16
;
46 return PERF_REG_ARM64_X17
;
48 return PERF_REG_ARM64_X18
;
50 return PERF_REG_ARM64_X19
;
52 return PERF_REG_ARM64_X20
;
54 return PERF_REG_ARM64_X21
;
56 return PERF_REG_ARM64_X22
;
58 return PERF_REG_ARM64_X23
;
60 return PERF_REG_ARM64_X24
;
62 return PERF_REG_ARM64_X25
;
64 return PERF_REG_ARM64_X26
;
66 return PERF_REG_ARM64_X27
;
68 return PERF_REG_ARM64_X28
;
70 return PERF_REG_ARM64_X29
;
72 return PERF_REG_ARM64_LR
;
74 return PERF_REG_ARM64_SP
;
76 return PERF_REG_ARM64_PC
;
78 pr_err("unwind: invalid reg id %d\n", regnum
);