|
NAMEpmc_disable , pmc_enable —
administrative control of hardware performance counters
LIBRARYPerformance Counters Library (libpmc, -lpmc)SYNOPSIS#include <pmc.h>
int
int
DESCRIPTIONThese 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
Function Function IMPLEMENTATION NOTESHardware PMCs that are currently in use by applications cannot be disabled. Allocation of a process scope software PMC marks all hardware PMCs in the system with the same pmc number as being in-use.RETURN VALUESUpon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSA call to these functions may fail with the following errors:SEE ALSOpmc(3), pmc_cpuinfo(3), pmc_pmcinfo(3), hwpmc(4), pmccontrol(8), priv_check(9)
Visit the GSP FreeBSD Man Page Interface. |