Main index | Section 3 | Options |
#include <pmc.h>
Intel fixed-function PMCs are documented in
IA-32 Intel(R) Architecture Software Developer's Manual, , Order Number 253669-027US, Volume 3: System Programming Guide, July 2008.
Capability | Support |
PMC_CAP_CASCADE | amp;No |
PMC_CAP_EDGE | amp;No |
PMC_CAP_INTERRUPT | Yes |
PMC_CAP_INVERT | amp;No |
PMC_CAP_READ | Yes |
PMC_CAP_PRECISE | amp;No |
PMC_CAP_SYSTEM | Yes |
PMC_CAP_TAGGING | amp;No |
PMC_CAP_THRESHOLD | amp;No |
PMC_CAP_USER | Yes |
PMC_CAP_WRITE | Yes |
os | Configure the PMC to count events occurring at ring level 0. |
usr | Configure the PMC to count events occurring at ring levels 1, 2 or 3. |
anythread | |
( Atom CPUs) Configure the PMC to count events on all logical processors sharing a processor core. The default is to count events on the current logical processor. | |
If neither of the "os" or "usr" qualifiers are specified, the default is to enable both.
INSTR_RETIRED.ANY | |
(Fixed Function Counter 0) The number of instructions retired. | |
CPU_CLK_UNHALTED.CORE | |
(Fixed Function Counter 1) The number of core cycles for which the core is not halted. | |
CPU_CLK_UNHALTED.REF | |
(Fixed Function Counter 2) The number of reference cycles for which the core is not halted. | |
To measure the number of user instructions retired use the event specifier "iaf-instr-retired.any,usr".
To measure the number of user instructions retired on all logical processors in an Atom CPU, use the event specifier "iaf-instr-retired.any,usr,anythread".
PMC.IAF (3) | November 14, 2008 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Not only is UNIX dead, it's starting to smell really bad. | ” |
— Rob Pike |