Query: pmc_set
OS: freebsd
Section: 3
Links: freebsd man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PMC_SET(3) BSD Library Functions Manual PMC_SET(3)NAMEpmc_set -- set the reload count of a sampling PMCLIBRARYPerformance Counters Library (libpmc, -lpmc)SYNOPSIS#include <pmc.h> int pmc_set(pmc_id_t pmc, pmc_value_t value);DESCRIPTIONFunction pmc_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 inter- rupt is processed the underlying hardware will be reloaded with the specified count and the hardware automatically restarted by hwpmc(4). Function pmc_set() should be called on PMC in a quiescent state.RETURN VALUESThe pmc_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 to pmc_set() may fail with the following errors: [EINVAL] The current process did not own a PMC with the specified handle. [EBUSY] The specified PMC was already running.SEE ALSOpmc(3), hwpmc(4)BSDNovember 25, 2007 BSD
Related Man Pages |
---|
pmc_pmcinfo(3) - freebsd |
pmc_rw(3) - freebsd |
pmc_attach(3) - freebsd |
pmc_ncpu(3) - freebsd |
pmc_start(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Reload Servlet in Tomcat |
Automatic reload of Thunar |
Java PMC help |
Slow response from website |
Browser question |