Files
ubports_kernel_google_msm/arch/x86/include/asm
Lin Ming f34edbc1cd perf, x86: Add a key to simplify template lookup in Pentium-4 PMU
Currently, we use opcode(Event and Event-Selector) + emask to
look up template in p4_templates.

But cache events (L1-dcache-load-misses, LLC-load-misses, etc)
use the same event(P4_REPLAY_EVENT) to do the counting, ie, they
have the same opcode and emask. So we can not use current lookup
mechanism to find the template for cache events.

This patch introduces a "key", which is the index into
p4_templates. The low 12 bits of CCCR are reserved, so we can
hide the "key" in the low 12 bits of hwc->config.

We extract the key from hwc->config and then quickly find the
template.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1268908387.13901.127.camel@minggr.sh.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-03-18 17:03:51 +01:00
..
2009-12-05 09:10:12 -08:00
2010-02-16 21:22:26 -08:00
2010-03-01 12:35:57 -03:00
2009-08-27 00:35:56 +02:00
2010-03-10 13:23:34 +01:00
2010-02-05 13:57:40 -08:00
2009-11-08 12:55:38 +01:00
2010-03-01 12:36:01 -03:00
2009-06-13 15:37:30 +02:00
2010-03-01 12:36:14 -03:00
2009-07-30 16:03:46 +09:30
2010-01-05 15:34:49 +09:00
2010-01-13 10:41:22 +01:00
2010-02-12 09:42:39 -08:00
2010-01-22 16:05:42 -08:00
2009-06-15 12:40:02 +02:00
2010-03-01 12:35:51 -03:00
2009-07-19 18:27:52 +02:00
2009-08-21 21:43:46 +02:00
2009-06-15 12:40:02 +02:00