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)
committerIngo Molnar <mingo@kernel.org>
Fri, 17 Apr 2015 07:58:47 +0000 (09:58 +0200)
commit517e6341fa123ec3a2f9ea78ad547be910529881
tree5325aa3c9f26847fa9fa6aea805e4bdc084592c5
parentc857eb56e6e8e53dccd8d1e7ea90bcaf3311996d
perf/x86/intel: Fix Core2,Atom,NHM,WSM cycles:pp events

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>
arch/x86/kernel/cpu/perf_event_intel_ds.c