PMCCONTROL(8) MidnightBSD System Manager’s Manual PMCCONTROL(8)
pmccontrol — control hardware performance monitoring counters
−c cpu | −d pmc | −e pmc ] ...
The pmccontrol utility controls the operation of the system’s hardware performance monitoring counters.
The pmccontrol utility processes options in command line order, so later options modify the effect of earlier ones. The following options are available:
Subsequent enable and disable options affect the CPU denoted by cpu. The argument cpu is either a number denoting a CPU number in the system, or the string ‘‘*’’, denoting all CPUs in the system.
Disable PMC number pmc on the CPU specified by −c, preventing it from being used till subsequently re-enabled. The argument pmc is either a number denoting a specified PMC, or the string ‘‘*’’ denoting all the PMCs on the specified CPU.
Only idle PMCs may be disabled.
Enable PMC number pmc, on the CPU specified by −c, allowing it to be used in the future. The argument pmc is either a number denoting a specified PMC, or the string ‘‘*’’ denoting all the PMCs on the specified CPU. If PMC pmc is already enabled, this option has no effect.
List available hardware performance counters and their current disposition.
List available hardware performance counter classes and their supported event names.
Print driver statistics maintained by hwpmc(4).
To disable all PMCs on all CPUs, use the command:
To enable all PMCs on all CPUs, use:
To disable PMCs 0 and 1 on CPU 2, use:
pmccontrol -c2 -d0 -d1
To disable PMC 0 of CPU 0 only, and enable all other PMCS on all other CPUs, use:
pmccontrol -c* -e* -c0 -d0
The pmccontrol utility exits 0 on success, and >0 if an error occurs.
pmc(3), pmclog(3), hwpmc(4), pmcstat(8), sysctl(8)
The pmccontrol utility first appeared in FreeBSD 6.0.
Joseph Koshy 〈jkoshy@FreeBSD.org〉
MidnightBSD 0.3 December 15, 2003 MidnightBSD 0.3