Re: [PATCH v2] perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled
From: Will Deacon
Date: Mon Sep 09 2024 - 12:16:22 EST
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