diff options
author | Ilkka Koskinen <ilkka@os.amperecomputing.com> | 2024-09-06 12:15:39 -0700 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-09-09 15:28:02 +0100 |
commit | 5967a19f1c2ffb530f5d4589ddc4b4afbb6c7bd4 (patch) | |
tree | de72cb3e9e4afd3256290b28d0101174ec97b1a7 /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | 91df34ef2d88e4208c3ad53c439e9d6dbc36bb55 (diff) |
perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled
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.
We keep PC_WRITE_RETIRED still as an option in case BR_RETIRED isn't
implemented.
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20240906191539.4847-1-ilkka@os.amperecomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions