| Capability Support
These PMCs are named using a class name prefix of "iaf-".
These PMCs support the following modifiers:
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.
The fixed function PMCs are selectable using the following event names:
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 core cycles for which the core was not halted use the event specifier "iaf-cpu-clk-unhalted.core".
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(3), pmc.atom(3), pmc.core(3), pmc.core2(3), pmc.k7(3), pmc.k8(3), pmc.p4(3), pmc.p5(3), pmc.p6(3), pmc.soft(3), pmc.tsc(3), pmc_cpuinfo(3), pmclog(3), hwpmc(4)
The pmc library first appeared in
.Fx 6.0 .
.Lb libpmc library was written by
.An Joseph Koshy <jkoshy@FreeBSD.org>.