OSDN Git Service

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)
commit82c99f7a81f28f8c1be5f701c8377d14c4075b10
treee17021a401e3e6dc902f11bf20bde2c088e0a3b9
parentcd8dead0c39457e58ec1d36db93aedca811d48f1
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