diff options
| author | Lin Ming <[email protected]> | 2010-03-18 18:33:07 +0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-03-18 17:03:51 +0100 |
| commit | f34edbc1cdb0f8f83d94e1d668dd6e41abf0defb (patch) | |
| tree | d57803bcc891a748551429d2feafec2df8007367 /include/linux/debugobjects.h | |
| parent | 55632770d7298835645489828af87f854c47749c (diff) | |
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 <[email protected]>
Reviewed-by: Cyrill Gorcunov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions