]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/pebs: Add proper PEBS constraints for Broadwell
authorStephane Eranian <eranian@google.com>
Thu, 3 Mar 2016 19:50:42 +0000 (20:50 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Mar 2016 11:19:12 +0000 (12:19 +0100)
commit56275f1119c9a40fbe5443e46ed71a0480e956db
tree854679d55b8c468abc6854e3811e91708d8b7820
parent95e2dc3922832cc5d832cd087565f9a1e2e2d2d0
perf/x86/pebs: Add proper PEBS constraints for Broadwell

This patch adds a Broadwell specific PEBS event constraint table.

Broadwell has a fix for the HT corruption bug erratum HSD29 on
Haswell. Therefore, there is no need to mark events 0xd0, 0xd1, 0xd2,
0xd3 has requiring the exclusive mode across both sibling HT threads.
This holds true for regular counting and sampling (see core.c) and
PEBS (ds.c) which we fix in this patch.

In doing so, we relax evnt scheduling for these events, they can now
be programmed on any 4 counters without impacting what is measured on
the sibling thread.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@redhat.com
Cc: adrian.hunter@intel.com
Cc: jolsa@redhat.com
Cc: kan.liang@intel.com
Cc: namhyung@kernel.org
Link: http://lkml.kernel.org/r/1457034642-21837-4-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c
arch/x86/events/intel/ds.c
arch/x86/events/perf_event.h