1LIBPFM(3)                  Linux Programmer's Manual                 LIBPFM(3)
2
3
4

NAME

6       pfm_set_options - set performance monitoring library debug options
7

SYNOPSIS

9       #include <perfmon/pfmlib.h>
10
11       int pfm_set_options(pfmlib_options_t *opt);
12
13

DESCRIPTION

15       This function can be called at any time to adjust the level of debug of
16       the library. You can adjust the verbosity or the debug level.  In  both
17       cases,  extra  output will be generated on the standard output when the
18       library gets called. This can be useful to figure out how the PMC  reg‐
19       isters are initialized.
20
21       The  opt argument is a pointer to a pfmlib_options_t structure which is
22       defined as follows:
23
24       typedef struct {
25            unsigned int   pfm_debug:1;
26            unsigned int   pfm_verbose:1;
27       } pfmlib_options_t;
28
29       Setting pfm_debug to 1  will  enable  debug  messages  whereas  setting
30       pfm_verbose will enable verbose messages.
31

RETURN

33       The function returns whether or not it was successful.A return value of
34       PFMLIB_SUCCESS indicates success, otherwise  the  value  is  the  error
35       code.
36

ERRORS

38       PFMLIB_ERR_INVAL
39              the argument is invalid, most likely a NULL pointer.
40

AUTHOR

42       Stephane Eranian <eranian@hpl.hp.com>
43
44                                November, 2003                       LIBPFM(3)
Impressum