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: NGanapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> Tested-by: NShaokun Zhang <zhangshaokun@hisilicon.com> Tested-by: NJin Yao <yao.jin@linux.intel.com> Acked-by: NWill Deacon <will.deacon@arm.com> Link: https://lkml.kernel.org/n/tip-y1woxt1k2pqqwpprhonnft2s@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Showing
想要评论请 注册 或 登录