]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/x86/intel: Fix Core2,Atom,NHM,WSM cycles:pp events
authorPeter Zijlstra <peterz@infradead.org>
Sat, 11 Apr 2015 10:16:22 +0000 (12:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:40 +0000 (22:01 +0200)
commit0d2b51f3a9465ca51973a1aa561b5c2acda6394c
tree130e8886ad378224888eb7772d4d60f666464375
parenta166e4b13b1be95a8120f8f1b098facf8b61ade9
perf/x86/intel: Fix Core2,Atom,NHM,WSM cycles:pp events

commit 517e6341fa123ec3a2f9ea78ad547be910529881 upstream.

Ingo reported that cycles:pp didn't work for him on some machines.

It turns out that in this commit:

  af4bdcf675cf perf/x86/intel: Disallow flags for most Core2/Atom/Nehalem/Westmere events

Andi forgot to explicitly allow that event when he
disabled event flags for PEBS on those uarchs.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@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 <peterz@infradead.org>
Fixes: af4bdcf675cf ("perf/x86/intel: Disallow flags for most Core2/Atom/Nehalem/Westmere events")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c