diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2024-12-10 17:15:22 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-12-10 18:57:24 +0300 |
commit | 8688c01e313d542124fae82e82c8d6d5c073899f (patch) | |
tree | e7881422297b032b6a346730ce595a750b91375a /tools/perf/scripts/python/gecko.py | |
parent | 32528b165ea1266ee25afe6a29be0107b3c5e76a (diff) | |
download | linux-8688c01e313d542124fae82e82c8d6d5c073899f.tar.xz |
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 <Jonathan.Cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20241210141525.37788-8-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions