perf/x86/intel: Disallow flags for most Core2/Atom/Nehalem/Westmere events
authorAndi Kleen <ak@linux.intel.com>
Wed, 24 Sep 2014 14:34:48 +0000 (07:34 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 10:41:56 +0000 (11:41 +0100)
commitaf4bdcf675cf768dc3558682fc178e0e3e70bb52
tree8b1728518b3576ed2b6eadfa9b3138d5b9bf5c7f
parent0dbc94796d8714f78446245ef0f080d2c0b7ff0e
perf/x86/intel: Disallow flags for most Core2/Atom/Nehalem/Westmere events

Disallow setting inv/cmask/etc. flags for all PEBS events
on these CPUs, except for the UOPS_RETIRED.* events on Nehalem/Westmere,
which are needed for cycles:p. This avoids an undefined situation
strongly discouraged by the Intle SDM. The PLD_* events were already
covered. This follows the earlier changes for Sandy Bridge and alter.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: http://lkml.kernel.org/r/1411569288-5627-3-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c