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

Table Of Contents
Vol. 3 18-103
DEBUGGING AND PERFORMANCE MONITORING
18.18.6 Programming the Performance Counters
for Non-Retirement Events
The basic steps to program a performance counter and to count events include the
following:
1. Select the event or events to be counted.
2. For each event, select an ESCR that supports the event using the values in the
ESCR restrictions row in Table A-9, Appendix A.
Figure 18-42. 64-bit Branch Trace Record Format
Figure 18-43. 64-bit PEBS Record Format
Last Branch From
Last Branch To
Branch Predicted
0H
8H
10H
0
63
4
RFLAGS
0H
8H
10H
0
63
RIP
20H
30H
28H
38H
40H
48H
18H
RAX
RBX
RCX
RDX
RSI
RDI
RBP
RSP
R8
...
R15
50H
...
88H