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

Table Of Contents
Vol. 3 18-123
DEBUGGING AND PERFORMANCE MONITORING
of the initial APIC ID. This allows for counting an event in any or all of the logical
processors. However, not all the events have this logic processor specificity, or thread
specificity.
Here, each event falls into one of two categories:
Thread specific (TS) The event can be qualified as occurring on a specific
logical processor.
Thread independent (TI) The event cannot be qualified as being associated
with a specific logical processor.
Table A-15 gives logical processor specific information (TS or TI) for each of the
events described in Tables A-9 and A-10. If for example, a TS event occurred in
logical processor T0, the counting of the event (as shown in Table 18-29) depends
only on the setting of the T0_USR and T0_OS flags in the ESCR being used to set up
the event counter. The T1_USR and T1_OS flags have no effect on the count.
When a bit in the event mask field is TI, the effect of specifying bit-0-3 of the associ-
ated ESCR are described in Table 15-6. For events that are marked as TI in Appendix
A, the effect of selectively specifying T0_USR, T0_OS, T1_USR, T1_OS bits is shown
in Table 18-30.
Table 18-29. Effect of Logical Processor and CPL Qualification
for Logical-Processor-Specific (TS) Events
T1_OS/T1_USR =
00
T1_OS/T1_USR =
01
T1_OS/T1_USR =
11
T1_OS/T1_USR =
10
T0_OS/T0_USR
= 00
Zero count Counts while T1
in USR
Counts while T1
in OS or USR
Counts while T1
in OS
T0_OS/T0_USR
= 01
Counts while T0
in USR
Counts while T0
in USR or T1 in
USR
Counts while (a)
T0 in USR or (b)
T1 in OS or (c) T1
in USR
Counts while (a)
T0 in OS or (b) T1
in OS
T0_OS/T0_USR
= 11
Counts while T0
in OS or USR
Counts while (a)
T0 in OS or (b) T0
in USR or (c) T1 in
USR
Counts
irrespective of
CPL, T0, T1
Counts while (a)
T0 in OS or (b) or
T0 in USR or (c)
T1 in OS
T0_OS/T0_USR
= 10
Counts T0 in OS Counts T0 in OS
or T1 in USR
Counts while
(a)T0 in Os or (b)
T1 in OS or (c) T1
in USR
Counts while (a)
T0 in OS or (b) T1
in OS