aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorYicong Yang <[email protected]>2024-12-10 14:15:22 +0000
committerWill Deacon <[email protected]>2024-12-10 15:57:24 +0000
commit8688c01e313d542124fae82e82c8d6d5c073899f (patch)
treee7881422297b032b6a346730ce595a750b91375a /tools/testing/selftests/net/lib/py/utils.py
parentdrivers/perf: hisi: Add a common function to retrieve topology from firmware (diff)
downloadkernel-8688c01e313d542124fae82e82c8d6d5c073899f.tar.gz
kernel-8688c01e313d542124fae82e82c8d6d5c073899f.zip
drivers/perf: hisi: Provide a generic implementation of cpumask/identifier
Each type of HiSilicon Uncore PMU has the following sysfs attributes: - format: bitmask in perf_event_attr::config[012] of corresponding attribute - event: events name and corresponding event code - cpumask: range of CPUs the events can be opened on - identifier: the version of this PMU Different types of PMU have different implementations of the "format" and "event" but all share the same implementation of the "cpumask" and "identifier". Thus we can move cpumask and identifier to the hisi_uncore_pmu framework and drivers can use the generic implementation. Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Yicong Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions