pfm_get_version(3)

pfm_get_version3

Get library version

Usage

#include <perfmon/pfmlib.h>

int pfm_get_version(void);

Overview

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:

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 is always successful, i.e., it always returns the 32-bit version number.

Errors

Releases

10 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0–6.0
  2. 8–Arch

Author

Stephane Eranian <[email protected]>

From libpfm 4.14.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.