perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping
authorRoman Sudarikov <roman.sudarikov@linux.intel.com>
Mon, 1 Jun 2020 08:35:43 +0000 (11:35 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:09:51 +0000 (14:09 +0200)
commitbb42b3d39781d7fcd3be7f9f9bf11b6661b5fdf1
treed60d34c59b5021cd0dec5a61b5e59ec74fa4a713
parent36b533bc5e3ed1039406f3b27e746b4d18f2cac1
perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping

Current version supports a server line starting Intel® Xeon® Processor
Scalable Family and introduces mapping for IIO Uncore units only.
Other units can be added on demand.

IIO stack to PMON mapping is exposed through:
    /sys/devices/uncore_iio_<pmu_idx>/dieX
    where dieX is file which holds "Segment:Root Bus" for PCIe root port,
    which can be monitored by that IIO PMON block.

Details are explained in Documentation/ABI/testing/sysfs-devices-mapping

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Roman Sudarikov <roman.sudarikov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Reviewed-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lkml.kernel.org/r/20200601083543.30011-4-alexander.antonov@linux.intel.com
Documentation/ABI/testing/sysfs-devices-mapping [new file with mode: 0644]
arch/x86/events/intel/uncore.h
arch/x86/events/intel/uncore_snbep.c