*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: pmc_set | Section: 3 | Source: FreeBSD | File: pmc_set.3.gz
PMC_SET(3) FreeBSD Library Functions Manual PMC_SET(3) NAME pmc_set - set the reload count of a sampling PMC LIBRARY Performance Counters Library (libpmc, -lpmc) SYNOPSIS #include <pmc.h> int pmc_set(pmc_id_t pmc, pmc_value_t value); DESCRIPTION Function 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 interrupt 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 VALUES The 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. ERRORS A 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 ALSO pmc(3), hwpmc(4) FreeBSD 14.1-RELEASE-p8 November 25, 2007 FreeBSD 14.1-RELEASE-p8

Navigation Options