[PATCH v2] perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled
Will Deacon
will at kernel.org
Mon Sep 9 09:15:45 PDT 2024
On Fri, 06 Sep 2024 12:15:39 -0700, Ilkka Koskinen wrote:
> The PMU driver attempts to use PC_WRITE_RETIRED for the HW branch event,
> if enabled. However, PC_WRITE_RETIRED counts only taken branches,
> whereas BR_RETIRED counts also non-taken ones.
>
> Furthermore, perf uses HW branch event to calculate branch misses ratio,
> implying BR_RETIRED is the correct event to count.
>
> [...]
Applied to will (for-next/perf), thanks!
[1/1] perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled
https://git.kernel.org/will/c/5967a19f1c2f
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list