PERF_REG_RISCV_MAX 13 arch/riscv/kernel/perf_regs.c if (WARN_ON_ONCE((u32)idx >= PERF_REG_RISCV_MAX)) PERF_REG_RISCV_MAX 19 arch/riscv/kernel/perf_regs.c #define REG_RESERVED (~((1ULL << PERF_REG_RISCV_MAX) - 1)) PERF_REG_RISCV_MAX 11 tools/perf/arch/riscv/include/perf_regs.h #define PERF_REGS_MASK ((1ULL << PERF_REG_RISCV_MAX) - 1) PERF_REG_RISCV_MAX 12 tools/perf/arch/riscv/include/perf_regs.h #define PERF_REGS_MAX PERF_REG_RISCV_MAX PERF_REG_RISCV_MAX 55 tools/perf/arch/riscv/util/unwind-libdw.c return dwfl_thread_state_registers(thread, 0, PERF_REG_RISCV_MAX,