]> git.baikalelectronics.ru Git - kernel.git/commit
perf event, x86: Use better stalled cycles metric
authorIngo Molnar <mingo@elte.hu>
Thu, 28 Apr 2011 09:16:44 +0000 (11:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 28 Apr 2011 06:39:33 +0000 (08:39 +0200)
commitcd5928f65577626dd195eaf913c31724849df2f4
tree9a5de0cd113edde3dad5d6970818d03ce37c2060
parente1e60d347f60998b3bbfc4f847b5f09107bc01a2
perf event, x86: Use better stalled cycles metric

Use the UOPS_EXECUTED.*,c=1,i=1 event on Intel CPUs - it is a rather
good indicator of CPU execution stalls, more sensitive and more inclusive
than the 0xa2 resource stalls event (which does not count nearly as many
stall types).

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-7y40wib8n1eqio7hjpn2dsrm@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel.c