perf, x86: Add cache events for the Pentium-4 PMU
Move the HT bit setting code from p4_pmu_event_map to p4_hw_config. So the cache events can get HT bit set correctly. Tested on my P4 desktop, below 6 cache events work: L1-dcache-load-misses LLC-load-misses dTLB-load-misses dTLB-store-misses iTLB-loads iTLB-load-misses 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: <1268908392.13901.128.camel@minggr.sh.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -357,6 +357,8 @@
|
||||
#define MSR_P4_U2L_ESCR0 0x000003b0
|
||||
#define MSR_P4_U2L_ESCR1 0x000003b1
|
||||
|
||||
#define MSR_P4_PEBS_MATRIX_VERT 0x000003f2
|
||||
|
||||
/* Intel Core-based CPU performance counters */
|
||||
#define MSR_CORE_PERF_FIXED_CTR0 0x00000309
|
||||
#define MSR_CORE_PERF_FIXED_CTR1 0x0000030a
|
||||
|
||||
@@ -708,4 +708,14 @@ enum P4_EVENTS_ATTR {
|
||||
P4_MAKE_EVENT_ATTR(P4_INSTR_COMPLETED, BOGUS, 1),
|
||||
};
|
||||
|
||||
enum {
|
||||
KEY_P4_L1D_OP_READ_RESULT_MISS,
|
||||
KEY_P4_LL_OP_READ_RESULT_MISS,
|
||||
KEY_P4_DTLB_OP_READ_RESULT_MISS,
|
||||
KEY_P4_DTLB_OP_WRITE_RESULT_MISS,
|
||||
KEY_P4_ITLB_OP_READ_RESULT_ACCESS,
|
||||
KEY_P4_ITLB_OP_READ_RESULT_MISS,
|
||||
KEY_P4_UOP_TYPE,
|
||||
};
|
||||
|
||||
#endif /* PERF_EVENT_P4_H */
|
||||
|
||||
Reference in New Issue
Block a user