pmc_set man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

PMC_SET(3)		 BSD Library Functions Manual		    PMC_SET(3)

     pmc_set — set the reload count of a sampling PMC

     Performance Counters Library (libpmc, -lpmc)

     #include <pmc.h>

     pmc_set(pmc_id_t pmc, pmc_value_t value);

     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.

     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

     A call to pmc_set() may fail with the following errors:

     [EINVAL]		The current process did not own a PMC with the speci‐
			fied handle.

     [EBUSY]		The specified PMC was already running.

     pmc(3), hwpmc(4)

BSD			       November 25, 2007			   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net