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

NAME

6       pfm_initialize - initialize performance monitoring library
7

SYNOPSIS

9       #include <perfmon/pfmlib.h>
10
11       int pfm_initialize(void);
12
13

DESCRIPTION

15       This  is  the first function that a program using the library must call
16       otherwise the library will not function at all.  This  function  probes
17       the  host PMU and initialize the internal state of the library.  In the
18       case of a multi-threaded application, this function needs to be  called
19       only once, most likely by the initial thread.
20
21

RETURN

23       The  function  returns whether or not it was successful, i.e., the host
24       PMU has been correctly identified and is supported. A return  value  of
25       PFMLIB_SUCCESS indicates success, otherwise the value is an error code.
26

ERRORS

28       PFMLIB_ERR_NOTSUPP
29              the host PMU is not supported.
30

AUTHOR

32       Stephane Eranian <eranian@hpl.hp.com>
33
34                                November, 2003                       LIBPFM(3)
Impressum