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 #define PERF_REGS_MAX PERF_REG_MIPS_MAX
0010 #define PERF_REG_IP PERF_REG_MIPS_PC
0011 #define PERF_REG_SP PERF_REG_MIPS_R29
0012 
0013 #define PERF_REGS_MASK ((1ULL << PERF_REG_MIPS_MAX) - 1)
0014 
0015 #endif /* ARCH_PERF_REGS_H */