pfm_get_version
get library version
- Provided by: libpfm4-dev (Version: 4.13.0+git32-g0d4ed0e-1ubuntu0.1)
- Source: libpfm4
- Report a bug
get library version
#include <perfmon/pfmlib.h> int pfm_get_version(void);
This function can be called at any time to get the revision level of the library. It is not necessary to have invoked pfm_initialize() prior to calling this function.
The revision number is composed of two fields: a major number and a minor number. Both can be extracted using macros provided in the header file:
The function is always successful, i.e., it always returns the 32-bit version number.
Stephane Eranian <eranian@gmail.com>