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

NAME

6       pfm_get_version - get library version
7

SYNOPSIS

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

DESCRIPTION

15       This  function  can  be called at any time to get the revision level of
16       the library. It is not necessary to have invoked pfm_initialize() prior
17       to calling this function.
18
19       The  revision  number  is  composed of two fields: a major number and a
20       minor number. Both can be extracted using macros provided in the header
21       file:
22
23       PFMLIB_MAJ_VERSION(v)
24              returns the major number encoded in v.
25
26       PFMLIB_MIN_VERSION(v)
27              returns the minor number encoded in v.
28

RETURN

30       The  function  is always successful, i.e., it always returns the 32-bit
31       version number.
32

ERRORS

AUTHOR

35       Stephane Eranian <eranian@gmail.com>
36
37                                September, 2009                      LIBPFM(3)
Impressum