aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKajol Jain <[email protected]>2022-06-10 19:10:39 +0530
committerMichael Ellerman <[email protected]>2022-06-28 23:56:37 +1000
commit42e0576eec75479fa7709c41e5c3b9ec556b8f4d (patch)
treed881f73fba854197c84ce60565482c2010efccdf /tools/perf/scripts/python
parent890005a7d98f7452cfe86dcfb2aeeb7df01132ce (diff)
selftests/powerpc/pmu: Add mask/shift bits for extracting threshold compare field
In power10, threshold compare field is not part of the raw event code and provided via event attribute config1. Hence add the mask and shift bits based on event attribute config1, to extract the threshold compare value for power10 Also add a new function called get_thresh_cmp_val to compute and return the threshold compare field for a given platform, since incase of power10, threshold compare value provided is decimal. Signed-off-by: Kajol Jain <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions