perf/x86/rapl: Fix Haswell and Broadwell server RAPL event
authorKan Liang <kan.liang@linux.intel.com>
Thu, 11 Jan 2018 19:15:43 +0000 (11:15 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 12 Jan 2018 13:59:54 +0000 (14:59 +0100)
commit1289e0e29857e606a70a0200bf7849ae38d3493a
tree2e7205d5ed0b6e79d0181b8b78cb3e0a41ff562f
parent1545dec46db3858bbce84c2065b579e2925706ab
perf/x86/rapl: Fix Haswell and Broadwell server RAPL event

Perf-fuzzer triggers non-existent MSR access in RAPL driver on
Haswell-EX.

Haswell/Broadwell server and client have differnt RAPL events.
Since 'commit 7f2236d0bf9a ("perf/x86/rapl: Use Intel family macros for
RAPL")', it accidentally assign RAPL client events to server.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
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: Linux-kernel@vger.kernel.org
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/rapl.c