diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-08-13 02:29:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-08-16 11:55:50 -0400 |
commit | 77b339bce3e21f7a069447fc25a414b18e36fa2e (patch) | |
tree | 31253f9df2326d2e4e7f377ea7f3ce412b175c5c /arch | |
parent | fd1ec259ba814f0ef35dc8ae2cbd0844541b917d (diff) |
perf/x86/intel/uncore: Enable EV_SEL_EXT bit for PCU
This patch adds support for the SNB-EP PCU uncore PMU extra_sel_bit
(bit 21) which is missing from the documentation in Table-2.75 of
Intel Xeon Processor E5-2600 Product Family Uncore Performance
Monitoring Guide. It is referred to later in Table-2.81. Without
this selection bit explicitly enabled by the kernel, some events
such as COREx_TRANSITION_CYCLES do not count correctly.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1376375382-21350-4-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_uncore.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_uncore.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index 6b8b9c951aad..e9696d8269ba 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c | |||
@@ -301,7 +301,7 @@ static struct attribute *snbep_uncore_cbox_formats_attr[] = { | |||
301 | }; | 301 | }; |
302 | 302 | ||
303 | static struct attribute *snbep_uncore_pcu_formats_attr[] = { | 303 | static struct attribute *snbep_uncore_pcu_formats_attr[] = { |
304 | &format_attr_event.attr, | 304 | &format_attr_event_ext.attr, |
305 | &format_attr_occ_sel.attr, | 305 | &format_attr_occ_sel.attr, |
306 | &format_attr_edge.attr, | 306 | &format_attr_edge.attr, |
307 | &format_attr_inv.attr, | 307 | &format_attr_inv.attr, |
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.h b/arch/x86/kernel/cpu/perf_event_intel_uncore.h index 628500e65d0b..a80ab71a883d 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.h +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.h | |||
@@ -117,6 +117,7 @@ | |||
117 | (SNBEP_PMON_CTL_EV_SEL_MASK | \ | 117 | (SNBEP_PMON_CTL_EV_SEL_MASK | \ |
118 | SNBEP_PCU_MSR_PMON_CTL_OCC_SEL_MASK | \ | 118 | SNBEP_PCU_MSR_PMON_CTL_OCC_SEL_MASK | \ |
119 | SNBEP_PMON_CTL_EDGE_DET | \ | 119 | SNBEP_PMON_CTL_EDGE_DET | \ |
120 | SNBEP_PMON_CTL_EV_SEL_EXT | \ | ||
120 | SNBEP_PMON_CTL_INVERT | \ | 121 | SNBEP_PMON_CTL_INVERT | \ |
121 | SNBEP_PCU_MSR_PMON_CTL_TRESH_MASK | \ | 122 | SNBEP_PCU_MSR_PMON_CTL_TRESH_MASK | \ |
122 | SNBEP_PCU_MSR_PMON_CTL_OCC_INVERT | \ | 123 | SNBEP_PCU_MSR_PMON_CTL_OCC_INVERT | \ |