perf/x86/intel: Fix SLOTS PEBS event constraint
authorKan Liang <kan.liang@linux.intel.com>
Tue, 23 Jul 2019 20:04:29 +0000 (13:04 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 25 Jul 2019 13:41:29 +0000 (15:41 +0200)
commit3d0c3953601d250175c7684ec0d9df612061dae5
tree18bf09e2d1ec0246b9fbb2de20b935f5609fbbd1
parent49902052fc6b9babf5b60fb5e31b821299f3f675
perf/x86/intel: Fix SLOTS PEBS event constraint

Sampling SLOTS event and ref-cycles event in a group on Icelake gives
EINVAL.

SLOTS event is the event stands for the fixed counter 3, not fixed
counter 2. Wrong mask was set to SLOTS event in
intel_icl_pebs_event_constraints[].

Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 6017608936c1 ("perf/x86/intel: Add Icelake support")
Link: https://lkml.kernel.org/r/20190723200429.8180-1-kan.liang@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/ds.c