]> Gentwo Git Trees - linux/.git/commit
drivers/perf: riscv: Export PMU event info function
authorAtish Patra <atishp@rivosinc.com>
Tue, 9 Sep 2025 07:03:24 +0000 (00:03 -0700)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 06:19:31 +0000 (11:49 +0530)
commit880fcc329e2473ba02ffbc446fcd403972ab1fca
treeae5434d07774b7beae4a9966ade775eafafff0d6
parentadffbd06d0036a1f2d8424ecc22d37ca38709012
drivers/perf: riscv: Export PMU event info function

The event mapping function can be used in event info function to find out
the corresponding SBI PMU event encoding during the get_event_info function
as well. Refactor and export it so that it can be invoked from kvm and
internal driver.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Acked-by: Paul Walmsley <pjw@kernel.org>
Link: https://lore.kernel.org/r/20250909-pmu_event_info-v6-5-d8f80cacb884@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
drivers/perf/riscv_pmu_sbi.c
include/linux/perf/riscv_pmu.h