linux/drivers/perf
James Clark 7c3b63386c perf: arm_pmuv3: Zero initialize hw_id branch stack field
PERF_SAMPLE_BRANCH_HW_INDEX is supported by BRBE so hw_id is passed to
userspace, but it's never set by the BRBE driver. Zero initialize it as
it should be according to the docs:

   * For the architectures whose raw branch records are
   * already stored in age order, the hw_idx should be 0.

It's probably too risky to remove PERF_SAMPLE_BRANCH_HW_INDEX from BRBE
now in case anyone is setting it and reading the value, but zero
initializing the whole struct also protects against the same issue with
new fields that are added in the future.

Fixes: 58074a0fce ("perf: arm_pmuv3: Add support for the Branch Record Buffer Extension (BRBE)")
Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
2026-08-07 11:55:16 +00:00
..
amlogic perf/amlogic: Replace smp_processor_id() with raw_smp_processor_id() in meson_ddr_pmu_create() 2025-05-09 12:16:31 +01:00
arm_cspmu perf/arm_cspmu: Support 64-bit programmers' model 2026-08-06 11:43:08 +00:00
hisilicon drivers/perf: hisi: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
alibaba_uncore_drw_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
apple_m1_cpu_pmu.c perf/apple_m1: Remove driver-specific throttle support 2025-05-21 13:57:44 +02:00
arm_brbe.c perf: arm_pmuv3: Add support for the Branch Record Buffer Extension (BRBE) 2025-07-08 17:58:49 +01:00
arm_brbe.h perf: arm_pmuv3: Add support for the Branch Record Buffer Extension (BRBE) 2025-07-08 17:58:49 +01:00
arm_dmc620_pmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
arm_dsu_pmu.c perf/arm_dsu: Allow standard cycles events 2026-01-06 21:27:40 +00:00
arm_pmu_acpi.c perf: arm_pmu_acpi: Get rid of the edge-triggered interrupt oddity 2026-08-02 11:16:22 +00:00
arm_pmu_platform.c perf: arm_pmu: Request specific affinities for per CPU NMIs/interrupts 2025-10-27 17:16:35 +01:00
arm_pmu.c perf/arm_pmu: Skip PMCCNTR_EL0 on NVIDIA Olympus 2026-07-21 21:40:35 +00:00
arm_pmuv3.c perf: arm_pmuv3: Zero initialize hw_id branch stack field 2026-08-07 11:55:16 +00:00
arm_smmuv3_pmu.c perf/arm-smmuv3: Fix lockdep assert in ->event_init() 2024-11-25 18:52:46 +00:00
arm_spe_pmu.c perf: arm_spe: Make wakeup range check overflow safe 2026-07-31 13:56:58 +00:00
arm_v6_pmu.c perf/arm: Remove driver-specific throttle support 2025-05-21 13:57:44 +02:00
arm_v7_pmu.c perf/arm: Remove driver-specific throttle support 2025-05-21 13:57:44 +02:00
arm_xscale_pmu.c perf/arm: Remove driver-specific throttle support 2025-05-21 13:57:44 +02:00
arm-cci.c perf: Switch back to struct platform_driver::remove() 2024-11-06 14:16:20 +00:00
arm-ccn.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
arm-cmn.c perf/arm-cmn: Support CMN S3 r2 2026-08-06 13:23:11 +00:00
arm-ni.c perf/arm-ni: Fix and optimise register offset calculation 2025-11-07 13:42:46 +00:00
cxl_pmu.c perf/cxlpmu: Support Channel/Rank/Bank filter 2026-08-02 10:56:45 +00:00
dwc_pcie_pmu.c perf/dwc_pcie: Support narrowed time-based counter for long time monitoring 2026-07-31 16:32:06 +00:00
fsl_imx8_ddr_perf.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
fsl_imx9_ddr_perf.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
fujitsu_uncore_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
Kconfig perf: qcom: Unify user-visible "Qualcomm" name 2026-05-19 11:33:26 +01:00
Makefile perf: add NVIDIA Tegra410 C2C PMU 2026-03-24 12:37:33 +00:00
marvell_cn10k_ddr_pmu.c perf: marvell: Cancel CN10K DDR PMU hrtimer on device remove 2026-07-31 15:18:03 +00:00
marvell_cn10k_tad_pmu.c perf/marvell: Odyssey LLC-TAD performance monitor support 2024-12-09 15:57:49 +00:00
marvell_pem_pmu.c perf/marvell: Marvell PEM performance monitor support 2024-10-28 17:35:35 +00:00
nvidia_t410_c2c_pmu.c perf: add NVIDIA Tegra410 C2C PMU 2026-03-24 12:37:33 +00:00
nvidia_t410_cmem_latency_pmu.c perf: add NVIDIA Tegra410 CPU Memory Latency PMU 2026-03-24 12:37:32 +00:00
qcom_l2_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
qcom_l3_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
riscv_pmu_legacy.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
riscv_pmu_sbi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
riscv_pmu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
starfive_starlink_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00
thunderx2_pmu.c drivers: perf: Switch to use hrtimer_setup() 2025-02-18 11:19:04 +01:00
xgene_pmu.c perf: Remove redundant dev_err()/dev_err_probe() 2026-08-04 13:30:03 +00:00