PMCCONTROL(8)
π pmccontrol(8) β control hardware performance monitoring counters
β¨ NAME β¨
okay so bestie, welcome to the System Manager's Manual page for pmccontrol β control hardware performance monitoring counters. This utility controls the operation of the system's hardware performance monitoring counters. β¨
π SYNOPSIS π
pmccontrol [-c cpu | -d pmc | -e pmc] ...
pmccontrol -l
pmccontrol -L
pmccontrol -s
π DESCRIPTION π
The pmccontrol utility controls the operation of the system's hardware performance monitoring counters. That's the whole vibe: it's your remote control for the hardware performance monitoring counters. ποΈβ¨
πΈ OPTIONS πΈ
The pmccontrol utility processes options in command line order, so later options modify the effect of earlier ones. The following options are available:
-ccpu β Subsequent enable and disable options affect the CPU denoted by argument cpu. The argument cpu is a number denoting a CPU in the system, or*, denoting all unhalted CPUs in the system. π₯οΈ-dpmc β Disable PMC number pmc on the CPU specified by-c, preventing it from being used till subsequently re-enabled. The argument pmc is a number denoting a specific PMC, or*denoting all the PMCs on the specified CPU.
β οΈ Only idle PMCs may be disabled. No cap, that's the rule.
-epmc β Enable PMC number pmc, on the CPU specified by-c, allowing it to be used in the future. The argument pmc is a number denoting a specific PMC, or*denoting all the PMCs on the specified CPU. If PMC pmc is already enabled, this option has no effect. π-lβ List available hardware performance counters and their current disposition. π-Lβ List available hardware performance counter classes and their supported event names. ποΈ-sβ Print driver statistics maintained byhwpmc(4). π
π¦ EXAMPLES π¦
To disable all PMCs on all CPUs, use the command:
pmccontrol -d*
To enable all PMCs on all CPUs, use:
pmccontrol -e*
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
β DIAGNOSTICS β
The pmccontrol utility exits 0 on success, and >0 if an error occurs. So: 0 = slay, >0 = something went wrong, bestie. π
π SEE ALSO π
π§ HISTORY π§
The pmccontrol utility first appeared in FreeBSD 6.0. iconic behavior honestly. π
π AUTHORS π
Joseph Koshy <jkoshy@FreeBSD.org>
π source/version: Debian Β· date: November 9, 2008 Β· page: PMCCONTROL(8) β mwah, bye bestie! π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003,2008 Joseph Koshy. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms