perf/x86/intel: Update event constraints when HT is off
authorStephane Eranian <eranian@google.com>
Fri, 1 Jul 2016 22:22:22 +0000 (15:22 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 3 Jul 2016 08:39:53 +0000 (10:39 +0200)
commit9010ae4a8dee29e5886e86682799dde0eee7f447
tree5bad22037af54937d9450f1a2bc80609bd45b7be
parent4f302921c1458d790ae21147f7043f4e6b6a1085
perf/x86/intel: Update event constraints when HT is off

This patch updates the event constraints for non-PEBS mode for
Intel Broadwell and Skylake processors. When HT is off, each
CPU gets 8 generic counters. However, not all events can be
programmed on any of the 8 counters.  This patch adds the
constraints for the MEM_* events which can only be measured on the
bottom 4 counters. The constraints are also valid when HT is off
because, then, there are only 4 generic counters and they are the
bottom counters.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: kan.liang@intel.com
Link: http://lkml.kernel.org/r/1467411742-13245-1-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c