papi_set_debug(3)
PAPI_set_debug –
Set the current debug level for error output from PAPI.
Synopsis
Detailed Description
C Prototype:
- #include <
papi.h>
PAPI_set_debug( ;
Parameters:
- level one of the constants shown in the table below and defined in the
papi.hheader file. - •
- PAPI_QUIET Do not print anything, just return the error code
- •
- PAPI_VERB_ECONT Print error message and continue
- •
- PAPI_VERB_ESTOP Print error message and exit
Return values:
- PAPI_OK
PAPI_EINVAL The debug level is invalid.
The default PAPI debug handler prints out messages in the following form:
If the error was caused from a system call and the return code is PAPI_ESYS, the message will have a colon space and the error string as reported by strerror() appended to the end.
The PAPI error handler prints out messages in the following form:
Note:
- This is the ONLY function that may be called BEFORE
PAPI_library_init().
Example:
int ret; ret = PAPI_set_debug(PAPI_VERB_ECONT); if ( ret != PAPI_OK ) handle_error(); *
See Also:
PAPI_library_init
PAPI_get_opt
PAPI_set_opt
Author
Generated automatically by Doxygen for PAPI from the source code.