mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
RISC-V perf driver does not yet support PERF_TYPE_BREAKPOINT. It would be more appropriate to return -EOPNOTSUPP or -ENOENT for this type in pmu_sbi_event_map. Considering that other implementations return -ENOENT for unsupported perf types, let's synchronize this behavior. Due to this reason, a riscv bpf testcases perf_skip fail. Meanwhile, align that behavior to the rest of proper place. Signed-off-by: Pu Lehui <[email protected]> Reviewed-by: Atish Patra <[email protected]> Fixes:9b3e150e31("RISC-V: Add a simple platform driver for RISC-V legacy perf") Fixes:16d3b1af09("perf: RISC-V: Check standard event availability") Fixes:e999143459("RISC-V: Add perf platform driver based on SBI PMU extension") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>