]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
perf pmu: Add helper function is_pmu_core to detect PMU CORE devices
authorGanapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Wed, 7 Feb 2018 00:07:00 +0000 (01:07 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:42:24 +0000 (11:42 +0100)
commit3c53dc43e194520b7f9a8a07b888c0ea1d913d36
tree81904c8032adc2e121f6e482220ffcd28430e623
parent4581cb39816ee6f34447459c6eab8a996758b96c
perf pmu: Add helper function is_pmu_core to detect PMU CORE devices

BugLink: https://bugs.launchpad.net/bugs/1747523
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 <ganapatrao.kulkarni@cavium.com>
Tested-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Tested-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Link: https://lkml.kernel.org/n/tip-y1woxt1k2pqqwpprhonnft2s@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
(cherry picked from commit 14b22ae028de56cca980171db625d1e9925c8fba)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/perf/util/pmu.c