diff options
author | Madhavan Srinivasan <[email protected]> | 2020-12-15 03:56:18 -0500 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-12-15 22:50:04 +1100 |
commit | ef0e3b650f8ddc54bb70868852f50642ee3ae765 (patch) | |
tree | 892a0952d86faa63082d135b8b51d3891421128c /lib/test_overflow.c | |
parent | 2198d4934ee8b81341a84c9ec8bb25b4b0d02522 (diff) |
powerpc/perf: Fix Threshold Event Counter Multiplier width for P10
Threshold Event Counter Multiplier (TECM) is part of Monitor Mode
Control Register A (MMCRA). This field along with Threshold Event
Counter Exponent (TECE) is used to get threshould counter value.
In Power10, this is a 8bit field, so patch fixes the
current code to modify the MMCRA[TECM] extraction macro to
handle this change. ISA v3.1 says this is a 7 bit field but
POWER10 it's actually 8 bits which will hopefully be fixed
in ISA v3.1 update.
Fixes: 170a315f41c6 ("powerpc/perf: Support to export MMCRA[TEC*] field to userspace")
Signed-off-by: Madhavan Srinivasan <[email protected]>
Signed-off-by: Athira Rajeev <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions