]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Fix Ice Lake event constraint table
authorKan Liang <kan.liang@linux.intel.com>
Mon, 28 Sep 2020 13:47:26 +0000 (06:47 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 29 Sep 2020 07:57:02 +0000 (09:57 +0200)
commit08906c31dd12d6277ae443c967bd77bd3d47c50c
tree0d92461d7780a5d60a2491ade9ac803c8bbf5605
parentf7233574ab1a66da328896136d70a213f7810f49
perf/x86/intel: Fix Ice Lake event constraint table

An error occues when sampling non-PEBS INST_RETIRED.PREC_DIST(0x01c0)
event.

  perf record -e cpu/event=0xc0,umask=0x01/ -- sleep 1
  Error:
  The sys_perf_event_open() syscall returned with 22 (Invalid argument)
  for event (cpu/event=0xc0,umask=0x01/).
  /bin/dmesg | grep -i perf may provide additional information.

The idxmsk64 of the event is set to 0. The event never be successfully
scheduled.

The event should be limit to the fixed counter 0.

Fixes: fa9d99eafe0b ("perf/x86/intel: Add Icelake support")
Reported-by: Yi, Ammy <ammy.yi@intel.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200928134726.13090-1-kan.liang@linux.intel.com
arch/x86/events/intel/core.c