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

Table Of Contents
18-66 Vol. 3
DEBUGGING AND PERFORMANCE MONITORING
18.15.4 Precise Event Based Sampling (PEBS)
Processors based on Intel Core microarchitecture also support precise event based
sampling (PEBS). This feature was introduced by processors based on Intel NetBurst
microarchitecture.
PEBS uses a debug store mechanism and a performance monitoring interrupt to
store a set of architectural state information for the processor. The information
provides architectural state of the instruction executed after the instruction that
caused the event (See Section 18.15.4.2).
In cases where the same instruction causes BTS and PEBS to be activated, PEBS is
processed before BTS are processed. The PMI request is held until the processor
completes processing of PEBS and BTS.
For processors based on Intel Core microarchitecture, events that support precise
sampling are listed in Table 18-19. The procedure for detecting availability of PEBS is
the same as described in Section 18.18.8.1.
Table 18-18. At-Retirement Performance Events for Intel Core Microarchitecture
Event Name UMask Event Select
ITLB_MISS_RETIRED 00H C9H
MEM_LOAD_RETIRED.L1D_MISS 01H CBH
MEM_LOAD_RETIRED.L1D_LINE_MISS 02H CBH
MEM_LOAD_RETIRED.L2_MISS 04H CBH
MEM_LOAD_RETIRED.L2_LINE_MISS 08H CBH
MEM_LOAD_RETIRED.DTLB_MISS 10H CBH
Table 18-19. PEBS Performance Events for Intel Core Microarchitecture
Event Name UMask Event Select
INSTR_RETIRED.ANY_P 00H C0H
X87_OPS_RETIRED.ANY FEH C1H
BR_INST_RETIRED.MISPRED 00H C5H
SIMD_INST_RETIRED.ANY 1FH C7H
MEM_LOAD_RETIRED.L1D_MISS 01H CBH
MEM_LOAD_RETIRED.L1D_LINE_MISS 02H CBH
MEM_LOAD_RETIRED.L2_MISS 04H CBH
MEM_LOAD_RETIRED.L2_LINE_MISS 08H CBH
MEM_LOAD_RETIRED.DTLB_MISS 10H CBH