Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ARCH_PERF_REGS_H
0003 #define ARCH_PERF_REGS_H
0004 
0005 #include <stdlib.h>
0006 #include <linux/types.h>
0007 #define perf_event_arm_regs perf_event_arm64_regs
0008 #include <asm/perf_regs.h>
0009 #undef perf_event_arm_regs
0010 
0011 void perf_regs_load(u64 *regs);
0012 
0013 #define PERF_REGS_MASK  ((1ULL << PERF_REG_ARM64_MAX) - 1)
0014 #define PERF_REGS_MAX   PERF_REG_ARM64_MAX
0015 #define PERF_SAMPLE_REGS_ABI    PERF_SAMPLE_REGS_ABI_64
0016 
0017 #define PERF_REG_IP PERF_REG_ARM64_PC
0018 #define PERF_REG_SP PERF_REG_ARM64_SP
0019 
0020 #endif /* ARCH_PERF_REGS_H */