LIBPFM - Online Linux Manual PageSection : 3
Updated : November, 2003
Source :
Note : Linux Programmer's Manual

NAMEpfm_set_options − set performance monitoring library debug options

SYNOPSIS#include <perfmon/pfmlib.h> int pfm_set_options(pfmlib_options_t *opt);

DESCRIPTION This function can be called at any time to adjust the level of debug of the library. In both cases, extra output will be generated on standard error when the library gets called. This can be useful to figure out how the PMC registers are initialized for instance. The opt argument to this function is a pointer to a pfmlib_options_t structure which is defined as follows: typedef struct { unsigned int pfm_debug:1; unsigned int pfm_verbose:1; } pfmlib_options_t;Setting pfm_debug to 1 will enable debug messages whereas setting pfm_verbose will enable verbose messages.

ENVIRONMENT VARIABLESSetting library options with this function has lower priority than with environment variables. As such, the call to this function may not have any actual effects. A user can set the following environment variables to control verbosity and debug output: LIBPFM_VERBOSE  Enable verbose output. Value must be 0 or 1. When not set, verbosity level can be controlled with this function. LIBPFM_DEBUG  Enable debug output. Value must be 0 or 1. When not set, debug level can be controlled with this function.

RETURNThe function returns whether or not it was successful. A return value of PFMLIB_SUCCESS indicates success, otherwise the value is the error code. When environment variables exist, they take precedence and this function returns PFMLIB_SUCCESS.

ERRORSPFMLIB_ERR_INVAL  the argument is invalid, most likely a NULL pointer.

AUTHORStephane Eranian <eranian@hpl.hp.com>
0
Johanes Gumabo
Data Size   :   5,438 byte
man-pfm_set_options.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 239,226
Visitor ID   :     :  
Visitor IP   :   18.117.168.40   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.