1 // SPDX-License-Identifier: GPL-2.0
3 #include "../perf_regs.h"
4 #include "../../../arch/arm64/include/uapi/asm/perf_regs.h"
6 const char *__perf_reg_name_arm64(int id
)
9 case PERF_REG_ARM64_X0
:
11 case PERF_REG_ARM64_X1
:
13 case PERF_REG_ARM64_X2
:
15 case PERF_REG_ARM64_X3
:
17 case PERF_REG_ARM64_X4
:
19 case PERF_REG_ARM64_X5
:
21 case PERF_REG_ARM64_X6
:
23 case PERF_REG_ARM64_X7
:
25 case PERF_REG_ARM64_X8
:
27 case PERF_REG_ARM64_X9
:
29 case PERF_REG_ARM64_X10
:
31 case PERF_REG_ARM64_X11
:
33 case PERF_REG_ARM64_X12
:
35 case PERF_REG_ARM64_X13
:
37 case PERF_REG_ARM64_X14
:
39 case PERF_REG_ARM64_X15
:
41 case PERF_REG_ARM64_X16
:
43 case PERF_REG_ARM64_X17
:
45 case PERF_REG_ARM64_X18
:
47 case PERF_REG_ARM64_X19
:
49 case PERF_REG_ARM64_X20
:
51 case PERF_REG_ARM64_X21
:
53 case PERF_REG_ARM64_X22
:
55 case PERF_REG_ARM64_X23
:
57 case PERF_REG_ARM64_X24
:
59 case PERF_REG_ARM64_X25
:
61 case PERF_REG_ARM64_X26
:
63 case PERF_REG_ARM64_X27
:
65 case PERF_REG_ARM64_X28
:
67 case PERF_REG_ARM64_X29
:
69 case PERF_REG_ARM64_SP
:
71 case PERF_REG_ARM64_LR
:
73 case PERF_REG_ARM64_PC
:
75 case PERF_REG_ARM64_VG
:
84 uint64_t __perf_reg_ip_arm64(void)
86 return PERF_REG_ARM64_PC
;
89 uint64_t __perf_reg_sp_arm64(void)
91 return PERF_REG_ARM64_SP
;