]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 28 Apr 2016 15:35:46 +0000 (18:35 +0300)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 May 2016 08:16:28 +0000 (10:16 +0200)
commit97edaa42d7353bbd0f44f69f97da365b791cc6f6
treea74c2e0104acc52371857ced3723a956d222824e
parentde7fdeb5d5b3f8a63640c5bea980b75e14ccc859
perf/x86/intel/pt: Bypass PT vs. LBR exclusivity if the core supports it

Not all cores prevent using Intel PT and LBRs simultaneously, although
most of them still do as of today. This patch adds an opt-in flag for
such cores to disable mutual exclusivity between PT and LBR; also flip
it on for Goldmont.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
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: Mathieu Poirier <mathieu.poirier@linaro.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: vince@deater.net
Link: http://lkml.kernel.org/r/1461857746-31346-4-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c
arch/x86/events/intel/core.c
arch/x86/events/perf_event.h