pfm_strerror

Langue: en

Autres versions - même langue

Version: 373833 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

pfm_strerror - return string describing error code

SYNOPSIS

 #include <perfmon/pfmlib.h>
 
 char *pfm_strerror(int code);
 
 
 

DESCRIPTION

This function returns a string which describes the libpfm error value in code. The string returned by the call must be considered as read only.

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

RETURN

The function returns a pointer to the string describing the error code. If code is invalid then the default error message is returned.

ERRORS

If the error code is invalid, then the function returns a pointer to a string which says "unknown error code".

AUTHOR

Stephane Eranian <eranian@hpl.hp.com>