pfm_get_version  - get performance monitoring library ver­
       sion


SYNOPSIS

       #include <perfmon/pfmlib.h>

       int pfm_get_version(unsigned int *version);


DESCRIPTION

       This function can be called at any time to get  the  revi­
       sion  level of the library. The version is encoded into an
       unsigned integer and return in the  version  argument.   A
       revision  number is composed of two fields: a major number
       and a  minor  number.  Both  can  be  extracted  from  the
       returned  argument  using  macros  provided  in the header
       file:

       PFMLIB_MAJ_VERSION(v)
              returns the major number encoded in v.

       PFMLIB_MIN_VERSION(v)
              returns the minor number encoded in v.


RETURN

       The function returns whether or not it was successful.   A
       return  value  of PFMLIB_SUCCESS indicates success, other­
       wise the value is the error code.


ERRORS

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


AUTHOR

       Stephane Eranian <eranian@hpl.hp.com>


Man(1) output converted with man2html