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_S390_MAX) - 1)
11 #define PERF_REGS_MAX PERF_REG_S390_MAX
12 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64
14 #define PERF_REG_IP PERF_REG_S390_PC
15 #define PERF_REG_SP PERF_REG_S390_R15
17 static inline const char *perf_reg_name(int id
)
20 case PERF_REG_S390_R0
:
22 case PERF_REG_S390_R1
:
24 case PERF_REG_S390_R2
:
26 case PERF_REG_S390_R3
:
28 case PERF_REG_S390_R4
:
30 case PERF_REG_S390_R5
:
32 case PERF_REG_S390_R6
:
34 case PERF_REG_S390_R7
:
36 case PERF_REG_S390_R8
:
38 case PERF_REG_S390_R9
:
40 case PERF_REG_S390_R10
:
42 case PERF_REG_S390_R11
:
44 case PERF_REG_S390_R12
:
46 case PERF_REG_S390_R13
:
48 case PERF_REG_S390_R14
:
50 case PERF_REG_S390_R15
:
52 case PERF_REG_S390_FP0
:
54 case PERF_REG_S390_FP1
:
56 case PERF_REG_S390_FP2
:
58 case PERF_REG_S390_FP3
:
60 case PERF_REG_S390_FP4
:
62 case PERF_REG_S390_FP5
:
64 case PERF_REG_S390_FP6
:
66 case PERF_REG_S390_FP7
:
68 case PERF_REG_S390_FP8
:
70 case PERF_REG_S390_FP9
:
72 case PERF_REG_S390_FP10
:
74 case PERF_REG_S390_FP11
:
76 case PERF_REG_S390_FP12
:
78 case PERF_REG_S390_FP13
:
80 case PERF_REG_S390_FP14
:
82 case PERF_REG_S390_FP15
:
84 case PERF_REG_S390_MASK
:
86 case PERF_REG_S390_PC
:
95 #endif /* ARCH_PERF_REGS_H */