.TH LIBPFM 3 "September, 2009" "" "Linux Programmer's Manual" .SH NAME pfm_initialize \- initialize library .SH SYNOPSIS .nf .B #include .sp .BI "int pfm_initialize(void);" .sp .SH DESCRIPTION This is the first function that a program \fBmust\fR call otherwise the library will not function at all. This function probes the underlying hardware looking for valid PMUs event tables to activate. Multiple distinct PMU tables may be activated at the same time. The function must be called only once. .SH RETURN The function returns whether or not it was successful, i.e., at least one PMU was activated. A return value of \fBPFMLIB_SUCCESS\fR indicates success, otherwise the value is an error code. .SH ERRORS .TP .B PFMLIB_ERR_NOTSUPP No PMU was activated. .SH AUTHOR Stephane Eranian .PP