Intel 64 and IA-32 Architectures Software Developers Manual Volume 3B, System Programming Guide Part 2

Table Of Contents
18-60 Vol. 3
DEBUGGING AND PERFORMANCE MONITORING
Some performance events may (a) support none of the three event-specific qualifica-
tion encodings (b) may support core-specificity and agent specificity simultaneously
(c) or may support core-specificity and hardware prefetch qualification simulta-
neously. Agent-specificity and hardware prefetch qualification are mutually exclu-
sive.
In addition, some L2 events permit qualifications that distinguish cache coherent
states. The sub-field definition for cache coherency state qualification is shown in
Table 18-14. If no bits in the MESI qualification sub-field are set for an event that
requires setting MESI qualification bits, the event count will not increment.
18.15 PERFORMANCE MONITORING (PROCESSORS BASED
ON INTEL
®
CORE
MICROARCHITECTURE)
In addition to architectural performance monitoring, processors based on the Intel
Core microarchitecture support non-architectural performance monitoring events.
Architectural performance events can be collected using general-purpose perfor-
mance counters. Non-architectural performance events can be collected using
general-purpose performance counters (coupled with two IA32_PERFEVTSELx MSRs
for detailed event configurations), or fixed-function performance counters (see
Section 18.15.1). IA32_PERFEVTSELx MSRs are architectural; their layout is shown
in Figure 18-13. Starting with Intel Core 2 processor T 7700, fixed-function perfor-
Table 18-13. HW Prefetch Qualification Encoding within a Non-Architectural Umask
IA32_PERFEVTSELx MSRs
Bit 13:12 Encoding Description
11B All inclusive
10B Reserved
01B Hardware prefetch only
00B Exclude hardware prefetch
Table 18-14. MESI Qualification Definitions within a Non-Architectural Umask
IA32_PERFEVTSELx MSRs
Bit Position 11:8 Description
Bit 11 Counts modified state
Bit 10 Counts exclusive state
Bit 9 Counts shared state
Bit 8 Counts Invalid state