]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e8ef21151f4b701053b7d75e628938b6272591c
tree18bf09e2d1ec0246b9fbb2de20b935f5609fbbd1
parent3bfd2bb987a159215bc28dc1f44b18e2c5713032
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: fa9d99eafe0b ("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