RISC-V: Add perf platform driver based on SBI PMU extension
RISC-V SBI specification added a PMU extension that allows to configure start/stop any pmu counter. The RISC-V perf can use most of the generic perf features except interrupt overflow and event filtering based on privilege mode which will be added in future. It also allows to monitor a handful of firmware counters that can provide insights into firmware activity during a performance analysis. Signed-off-by:Atish Patra <atish.patra@wdc.com> Signed-off-by:
Atish Patra <atishp@rivosinc.com> Signed-off-by:
Palmer Dabbelt <palmer@rivosinc.com>
Showing
- drivers/perf/Kconfig 10 additions, 0 deletionsdrivers/perf/Kconfig
- drivers/perf/Makefile 1 addition, 0 deletionsdrivers/perf/Makefile
- drivers/perf/riscv_pmu.c 2 additions, 0 deletionsdrivers/perf/riscv_pmu.c
- drivers/perf/riscv_pmu_sbi.c 578 additions, 0 deletionsdrivers/perf/riscv_pmu_sbi.c
- include/linux/cpuhotplug.h 1 addition, 0 deletionsinclude/linux/cpuhotplug.h
- include/linux/perf/riscv_pmu.h 4 additions, 2 deletionsinclude/linux/perf/riscv_pmu.h
Loading
Please register or sign in to comment