]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Mark MEM_LOAD_UOPS_MISS_RETIRED as precise on SNB
authorStephane Eranian <eranian@google.com>
Fri, 13 Sep 2013 20:16:46 +0000 (13:16 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Sep 2013 06:00:18 +0000 (08:00 +0200)
commit2a5ba2c4b09185ede60a434b1b1a4dcda8852355
treecccad9cdea756d476d39dc894a8dee7df7fc4aa6
parentf2a69573ffd8bd593bed53ea90050623b319fc7b
perf/x86/intel: Mark MEM_LOAD_UOPS_MISS_RETIRED as precise on SNB

On Intel SNB (SNB, SNB-EP), the event MEM_LOAD_UOPS_MISS_RETIRED
supports PEBS. It was missing for the SNB PEBS event constraint
table thereby preventing any measurement with PEBS for it.

This patch adds the event to the PEBS table for SNB.

WARNING: it should be noted that this event like a few others
are subject to the erratum BT241 for Xeon E5 (SNB-EP). As such,
the event may undercount when used with PEBS unless the
workaround is implemented. But without this patch and just the
workaround, the kernel would not allow precise sampling on this
event. BT241 is documented in:

  http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e5-family-spec-update.pdf

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: peterz@infradead.org
Cc: ak@linux.intel.com
Cc: zheng.z.yan@intel.com
Link: http://lkml.kernel.org/r/20130913201646.GA23981@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c