These functions allow specific hardware performance monitoring
counters in a system to be disabled and enabled administratively.
The hardware performance counters available on each CPU are numbered
using small non-negative integers, in a system dependent manner.
Disabled counters will not be available to applications for use.
The invoking process needs to have the
PRIV_PMC_MANAGE
privilege to perform these operations.
Function
pmc_disable()
disables the hardware counter numbered by argument
pmc
on CPU number
cpu.
Function
pmc_enable()
enables the hardware counter numbered by argument
pmc
on CPU number
cpu.