]> Git Repo - linux.git/commit
perf pmu: Add helper function is_pmu_core to detect PMU CORE devices
authorGanapatrao Kulkarni <[email protected]>
Thu, 24 Aug 2017 11:00:58 +0000 (16:30 +0530)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 5 Dec 2017 18:43:51 +0000 (15:43 -0300)
commit14b22ae028de56cca980171db625d1e9925c8fba
tree6aa92f0be5eb0935f84c5ded01699c3fa6746044
parentb57df28893543db3466172088786fae39b7fc3ad
perf pmu: Add helper function is_pmu_core to detect PMU CORE devices

On some platforms, PMU core devices sysfs name is not cpu.
Adding function is_pmu_core to detect PMU core devices using
core device specific hints in sysfs.

For arm64 platforms, all core devices have file "cpus" in sysfs.

Signed-off-by: Ganapatrao Kulkarni <[email protected]>
Tested-by: Shaokun Zhang <[email protected]>
Tested-by: Jin Yao <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/pmu.c
This page took 0.053688 seconds and 4 git commands to generate.