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 #include <asm/perf_regs.h>
0008 
0009 void perf_regs_load(u64 *regs);
0010 
0011 #define PERF_REGS_MASK  ((1ULL << PERF_REG_POWERPC_MAX) - 1)
0012 #define PERF_REGS_MAX   PERF_REG_POWERPC_MAX
0013 #ifdef __powerpc64__
0014     #define PERF_SAMPLE_REGS_ABI    PERF_SAMPLE_REGS_ABI_64
0015 #else
0016     #define PERF_SAMPLE_REGS_ABI    PERF_SAMPLE_REGS_ABI_32
0017 #endif
0018 
0019 #define PERF_REG_IP     PERF_REG_POWERPC_NIP
0020 #define PERF_REG_SP     PERF_REG_POWERPC_R1
0021 
0022 #endif /* ARCH_PERF_REGS_H */