perf/x86/intel/uncore: Generalize I/O stacks to PMON mapping procedure
authorAlexander Antonov <alexander.antonov@linux.intel.com>
Mon, 26 Apr 2021 13:16:12 +0000 (16:16 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 18 May 2021 10:53:56 +0000 (12:53 +0200)
commitf471fac77b41a2573c7b677ef790bf18a0e64195
tree01f022d35139a588ebb9611c878f13993f168a65
parent440e906702410f59ae5397ec9e3b639edb53f80e
perf/x86/intel/uncore: Generalize I/O stacks to PMON mapping procedure

Currently I/O stacks to IIO PMON mapping is available on Skylake servers
only and need to make code more general to easily enable further platforms.
So, introduce get_topology() callback in struct intel_uncore_type which
allows to move common code to separate function and make mapping procedure
more general.

Signed-off-by: Alexander Antonov <alexander.antonov@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lkml.kernel.org/r/20210426131614.16205-2-alexander.antonov@linux.intel.com
arch/x86/events/intel/uncore.h
arch/x86/events/intel/uncore_snbep.c