|
NAMEpmc_set —
set the reload count of a sampling PMC
LIBRARYPerformance Counters Library (libpmc, -lpmc)SYNOPSIS#include <pmc.h>
int
DESCRIPTIONFunctionpmc_set () is used to set the reload value of
sampling PMCs. Argument pmc specified the handle a
previously allocate sampling mode PMC. Argument value
specifies the reload count.
Sampling PMCs will interrupt the CPU after the number of hardware events specified by the reload count are seen. After the sampling interrupt is processed the underlying hardware will be reloaded with the specified count and the hardware automatically restarted by hwpmc(4). Function RETURN VALUESThepmc_set () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
ERRORSA call topmc_set () may fail with the following errors:
SEE ALSOpmc(3), hwpmc(4)
Visit the GSP FreeBSD Man Page Interface. |