Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmc_set(3) [freebsd man page]

PMC_SET(3)						   BSD 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 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 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) BSD
November 25, 2007 BSD

Check Out this Related Man Page

PMC_START(3)						   BSD Library Functions Manual 					      PMC_START(3)

NAME
pmc_start, pmc_stop -- start and stop a PMC LIBRARY
Performance Counters Library (libpmc, -lpmc) SYNOPSIS
#include <pmc.h> int pmc_start(pmc_id_t pmc); int pmc_stop(pmc_id_t pmc); DESCRIPTION
These functions are used to start and stop a PMC. Function pmc_start() starts the PMC specified by argument pmc. If the specified PMC has process scope and has not been attached to any tar- gets, it will be attached to the current process. Function pmc_stop() stops the PMC specified by argument pmc. RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
A call to these functions may fail with the following errors: [EDOOFUS] Function pmc_start() specified a PMC that requires a log file and no log file was configured. [EINVAL] The specified PMC is in the process of being deleted. [EINVAL] Function pmc_stop() specified a PMC that was never started. [ENXIO] The specified PMC had system scope and its associated CPU was disabled or absent. SEE ALSO
pmc(3), hwpmc(4) BSD
September 22, 2008 BSD
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reload Servlet in Tomcat

does anyone know how to reload servlet in tomcat? when do I actually reload it? when I modify any file in this server? (1 Reply)
Discussion started by: hamboy
1 Replies

2. UNIX Desktop Questions & Answers

Automatic reload of Thunar

I am using Thunar on FreeBSD 7.1 and XFCE. I would like the thunar window to reload automatically when a file has been added or deleted. Currently I press Ctrl-R, but perhaps a setting that I dont know of will do this automatically? (0 Replies)
Discussion started by: figaro
0 Replies

3. Programming

Java PMC help

May I know how to add space in the email body for PMC using java? How do we ignore case of the headers? And also, how to create message class to store the data? (0 Replies)
Discussion started by: eel
0 Replies

4. Post Here to Contact Site Administrators and Moderators

Slow response from website

Hi, I am experiencing slow response of unix.com from past 3-4 days. like- - most of the time the page does not reload instantly (when I do a manual reload from browser) - not able to view graphics. ( displays only text). - when posting into forum, the page gets stuck for considerably long... (6 Replies)
Discussion started by: clx
6 Replies

5. Windows & DOS: Issues & Discussions

Browser question

Hi, I am using Google Chrome. How can I make my page reload every five minutes. I have to hit F5 to reload to see my stock price. Just wondering if there is any kind of options I can set which will do this automatically. I don't have to use Chrome, if I.E has this options, I can switch to... (4 Replies)
Discussion started by: samnyc
4 Replies