perf/x86/intel: Don't disable "intel_bts" around "intel" event batching
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 15 Sep 2016 08:22:33 +0000 (11:22 +0300)
committerIngo Molnar <mingo@kernel.org>
Thu, 15 Sep 2016 09:25:26 +0000 (11:25 +0200)
commitcecf62352aee2b4fe114aafd1b8c5f265a4243ce
tree0000f4424e48eacc9e1386cd0fad97522e3ab4b2
parent4cea8776571b18db7485930cb422faa739580c8c
perf/x86/intel: Don't disable "intel_bts" around "intel" event batching

At the moment, intel_bts events get disabled from intel PMU's disable
callback, which includes event scheduling transactions of said PMU,
which have nothing to do with intel_bts events.

We do want to keep intel_bts events off inside the PMI handler to
avoid filling up their buffer too soon.

This patch moves intel_bts enabling/disabling directly to the PMI
handler.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: vince@deater.net
Link: http://lkml.kernel.org/r/20160915082233.11065-1-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c