Blob Blame History Raw
.TH LIBPFM 3  "November, 2003" "" "Linux Programmer's Manual"
.SH NAME
pfm_strerror \- return string describing error code
.SH SYNOPSIS
.nf
.B #include <perfmon/pfmlib.h>
.sp
.BI "char *pfm_strerror(int "code);
.sp
.SH DESCRIPTION
This function returns a string which describes the libpfm error
value in \fBcode\fR. The string returned by the call must
be considered as read only.

The function must \fBonly\fR be used on libpfm calls. It is not
designed to handle OS system call errors.

.SH RETURN
The function returns a pointer to the string describing
the error code. If code is invalid then the default
error message is returned.
.SH ERRORS
If the error code is invalid, then the function returns
a pointer to a string which says "unknown error code".
.SH AUTHOR
Stephane Eranian <eranian@hpl.hp.com>
.PP