]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters
authorHarry Pan <harry.pan@intel.com>
Wed, 24 Apr 2019 14:50:33 +0000 (22:50 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 25 Apr 2019 06:59:31 +0000 (08:59 +0200)
commitc7e202f780d5fb5495ed191e75b8fe31f9c3c452
treee17021a401e3e6dc902f11bf20bde2c088e0a3b9
parent23a0ec40bd55cd232fce579278ed2a614e80da77
perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters

Kaby Lake (and Coffee Lake) has PC8/PC9/PC10 residency counters.

This patch updates the list of Kaby/Coffee Lake PMU event counters
from the snb_cstates[] list of events to the hswult_cstates[]
list of events, which keeps all previously supported events and
also adds the PKG_C8, PKG_C9 and PKG_C10 residency counters.

This allows user space tools to profile them through the perf interface.

Signed-off-by: Harry Pan <harry.pan@intel.com>
Cc: <stable@vger.kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: gs0622@gmail.com
Link: http://lkml.kernel.org/r/20190424145033.1924-1-harry.pan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/cstate.c