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

NAME

6       pfm_get_version - get performance monitoring library version
7

SYNOPSIS

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

DESCRIPTION

15       This  function  can  be called at any time to get the revision level of
16       the library. The version  is  encoded  into  an  unsigned  integer  and
17       returned in the version argument.  A revision number is composed of two
18       fields: a major number and a minor number. Both can be  extracted  from
19       the returned argument using macros provided in the header file:
20
21       PFMLIB_MAJ_VERSION(v)
22              returns the major number encoded in v.
23
24       PFMLIB_MIN_VERSION(v)
25              returns the minor number encoded in v.
26

RETURN

28       The  function returns whether or not it was successful.  A return value
29       of PFMLIB_SUCCESS indicates success, otherwise the value is  the  error
30       code.
31

ERRORS

33       PFMLIB_ERR_INVAL
34              the argument is invalid, most likely a NULL pointer.
35

AUTHOR

37       Stephane Eranian <eranian@hpl.hp.com>
38
39                                November, 2003                       LIBPFM(3)
Impressum