diff options
author | Atish Patra <atishp@rivosinc.com> | 2025-09-09 00:03:23 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-09-16 11:49:31 +0530 |
commit | adffbd06d0036a1f2d8424ecc22d37ca38709012 (patch) | |
tree | fb6e1f4106c880a92801977eb49ce5f5ee519e00 /net/unix/af_unix.c | |
parent | 190b74154299d210de7937d7325571fc3fa37383 (diff) |
drivers/perf: riscv: Implement PMU event info function
With the new SBI PMU event info function, we can query the availability
of the all standard SBI PMU events at boot time with a single ecall.
This improves the bootime by avoiding making an SBI call for each
standard PMU event. Since this function is defined only in SBI v3.0,
invoke this only if the underlying SBI implementation is v3.0 or higher.
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-4-d8f80cacb884@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions