aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2011-05-06 03:14:02 -0400
committerIngo Molnar <mingo@elte.hu>2011-05-06 03:37:03 -0400
commite04d1b23f9706186187dcb0be1a752e48dcc540b (patch)
treee26bc343707db5697528b510d8147cae8ac5b7ae /arch/x86/kernel/cpu
parente7e7ee2eab2080248084d71fe0a115ab745eb2aa (diff)
perf events, x86: Add SandyBridge stalled-cycles-frontend/backend events
Extend the Intel SandyBridge PMU driver with definitions for generic front-end and back-end stall events. ( As commit 3011203 "perf events, x86: Add Westmere stalled-cycles-frontend/backend events" says, these are only approximations. ) Signed-off-by: Lin Ming <ming.m.lin@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1304666042-17577-1-git-send-email-ming.m.lin@intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
index e61539b07d2c..7cf2ec59c813 100644
--- a/arch/x86/kernel/cpu/perf_event_intel.c
+++ b/arch/x86/kernel/cpu/perf_event_intel.c
@@ -1474,6 +1474,12 @@ static __init int intel_pmu_init(void)
1474 1474
1475 x86_pmu.event_constraints = intel_snb_event_constraints; 1475 x86_pmu.event_constraints = intel_snb_event_constraints;
1476 x86_pmu.pebs_constraints = intel_snb_pebs_events; 1476 x86_pmu.pebs_constraints = intel_snb_pebs_events;
1477
1478 /* UOPS_ISSUED.ANY,c=1,i=1 to count stall cycles */
1479 intel_perfmon_event_map[PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 0x180010e;
1480 /* UOPS_DISPATCHED.THREAD,c=1,i=1 to count stall cycles*/
1481 intel_perfmon_event_map[PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 0x18001b1;
1482
1477 pr_cont("SandyBridge events, "); 1483 pr_cont("SandyBridge events, ");
1478 break; 1484 break;
1479 1485