File: pfm_get_version.3

package info (click to toggle)
libpfm4 4.13.0%2Bgit99-gc5587f9-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,860 kB
  • sloc: ansic: 233,278; makefile: 786; python: 183; sh: 18
file content (30 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.TH LIBPFM 3  "September, 2009" "" "Linux Programmer's Manual"
.SH NAME
pfm_get_version \- get library version
.SH SYNOPSIS
.nf
.B #include <perfmon/pfmlib.h>
.sp
.BI "int pfm_get_version(void)";
.sp
.SH DESCRIPTION
This function can be called at any time to get the revision
level of the library. It is not necessary to have invoked
\fBpfm_initialize()\fR 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:
.TP
.B PFMLIB_MAJ_VERSION(v)
returns the major number encoded in v.
.TP
.B PFMLIB_MIN_VERSION(v)
returns the minor number encoded in v.
.SH RETURN
The function is always successful, i.e., it always returns
the 32-bit version number.
.SH ERRORS
.SH AUTHOR
Stephane Eranian <eranian@gmail.com>
.PP