1
linux/drivers/perf
Pu Lehui c625154993
drivers/perf: riscv: Align errno for unsupported perf event
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 <pulehui@huawei.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
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: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240831071520.1630360-1-pulehui@huaweicloud.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-10-01 02:47:39 -07:00
..
amlogic perf/amlogic: Assign parents for event_source devices 2024-04-19 15:59:29 +01:00
arm_cspmu perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
hisilicon drivers/perf: hisi_pcie: Export supported Root Ports [bdf_min, bdf_max] 2024-08-30 11:43:10 +01:00
alibaba_uncore_drw_pmu.c drivers/perf: Fix ali_drw_pmu driver interrupt status clearing 2024-08-23 16:03:56 +01:00
apple_m1_cpu_pmu.c drivers/perf: apple_m1: add known PMU events 2024-08-23 15:52:48 +01:00
arm_dmc620_pmu.c perf/arm-dmc620: Fix lockdep assert in ->event_init() 2024-05-17 16:48:05 +01:00
arm_dsu_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
arm_pmu_acpi.c
arm_pmu_platform.c perf: arm_pmu: Use of_property_present() 2024-08-16 13:08:21 +01:00
arm_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_pmuv3.c perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled 2024-09-09 15:28:02 +01:00
arm_smmuv3_pmu.c perf/arm-smmuv3: Assign parents for event_source device 2024-04-19 15:59:31 +01:00
arm_spe_pmu.c drivers/perf: arm_spe: Use perf_allow_kernel() for permissions 2024-08-30 11:42:24 +01:00
arm_v6_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_v7_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_xscale_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm-cci.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
arm-ccn.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
arm-cmn.c perf/arm-cmn: Improve format attr printing 2024-09-06 12:58:06 +01:00
arm-ni.c perf: arm-ni: Fix an NULL vs IS_ERR() bug 2024-09-12 12:49:33 +01:00
cxl_pmu.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
dwc_pcie_pmu.c perf/dwc_pcie: Add support for QCOM vendor devices 2024-08-23 16:07:26 +01:00
fsl_imx8_ddr_perf.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
fsl_imx9_ddr_perf.c perf: imx_perf: add support for i.MX95 platform 2024-07-01 15:42:59 +01:00
Kconfig perf: Add driver for Arm NI-700 interconnect PMU 2024-09-06 12:58:28 +01:00
Makefile perf: Add driver for Arm NI-700 interconnect PMU 2024-09-06 12:58:28 +01:00
marvell_cn10k_ddr_pmu.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
marvell_cn10k_tad_pmu.c
qcom_l2_pmu.c perf/qcom: Assign parents for event_source devices 2024-04-19 15:59:30 +01:00
qcom_l3_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
riscv_pmu_legacy.c drivers/perf: riscv: Align errno for unsupported perf event 2024-10-01 02:47:39 -07:00
riscv_pmu_sbi.c drivers/perf: riscv: Align errno for unsupported perf event 2024-10-01 02:47:39 -07:00
riscv_pmu.c drivers/perf: riscv: Remove redundant macro check 2024-09-15 20:15:48 -07:00
starfive_starlink_pmu.c
thunderx2_pmu.c perf/thunderx2: Assign parents for event_source devices 2024-04-19 15:59:29 +01:00
xgene_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00