[PATCH v2,RESEND 0/2] drivers: perf: fix crash with the legacy riscv driver

Vadim Shakirov vadim.shakirov at syntacore.com
Tue Feb 27 09:00:00 PST 2024


This series fix crash with the legacy riscv driver when configs:
CONFIG_RISCV_PMU_LEGACY=y and CONFIG_RISCV_PMU_SBI=n and you try
to perf record

Vadim Shakirov (2):
  drivers: perf: added capabilities for legacy PMU
  drivers: perf: ctr_get_width function for legacy is not defined

 drivers/perf/riscv_pmu.c        | 18 +++++-------------
 drivers/perf/riscv_pmu_legacy.c | 10 +++++++++-
 2 files changed, 14 insertions(+), 14 deletions(-)

-- 
2.34.1




More information about the linux-riscv mailing list