mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 05:06:41 +07:00
2ee0d7fd36
This patch implements the functions required for the perf registers API, allowing the perf tool to interface kernel register dumps with libunwind in order to provide userspace backtracing. Compat mode is also supported. Only the general purpose user space registers are exported, i.e.: PERF_REG_ARM_X0, ... PERF_REG_ARM_X28, PERF_REG_ARM_FP, PERF_REG_ARM_LR, PERF_REG_ARM_SP, PERF_REG_ARM_PC and not the PERF_REG_ARM_V* registers. Signed-off-by: Jean Pihet <jean.pihet@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
41 lines
830 B
C
41 lines
830 B
C
#ifndef _ASM_ARM64_PERF_REGS_H
|
|
#define _ASM_ARM64_PERF_REGS_H
|
|
|
|
enum perf_event_arm_regs {
|
|
PERF_REG_ARM64_X0,
|
|
PERF_REG_ARM64_X1,
|
|
PERF_REG_ARM64_X2,
|
|
PERF_REG_ARM64_X3,
|
|
PERF_REG_ARM64_X4,
|
|
PERF_REG_ARM64_X5,
|
|
PERF_REG_ARM64_X6,
|
|
PERF_REG_ARM64_X7,
|
|
PERF_REG_ARM64_X8,
|
|
PERF_REG_ARM64_X9,
|
|
PERF_REG_ARM64_X10,
|
|
PERF_REG_ARM64_X11,
|
|
PERF_REG_ARM64_X12,
|
|
PERF_REG_ARM64_X13,
|
|
PERF_REG_ARM64_X14,
|
|
PERF_REG_ARM64_X15,
|
|
PERF_REG_ARM64_X16,
|
|
PERF_REG_ARM64_X17,
|
|
PERF_REG_ARM64_X18,
|
|
PERF_REG_ARM64_X19,
|
|
PERF_REG_ARM64_X20,
|
|
PERF_REG_ARM64_X21,
|
|
PERF_REG_ARM64_X22,
|
|
PERF_REG_ARM64_X23,
|
|
PERF_REG_ARM64_X24,
|
|
PERF_REG_ARM64_X25,
|
|
PERF_REG_ARM64_X26,
|
|
PERF_REG_ARM64_X27,
|
|
PERF_REG_ARM64_X28,
|
|
PERF_REG_ARM64_X29,
|
|
PERF_REG_ARM64_LR,
|
|
PERF_REG_ARM64_SP,
|
|
PERF_REG_ARM64_PC,
|
|
PERF_REG_ARM64_MAX,
|
|
};
|
|
#endif /* _ASM_ARM64_PERF_REGS_H */
|