PAPI_set_debug(3) | PAPI | PAPI_set_debug(3) |
PAPI_set_debug -
Set the current debug level for error output from PAPI.
C Prototype:
Parameters:
Return values:
The current debug level is used by both the internal error and debug message
handler subroutines.
The debug handler is only used if the library was compiled with -DDEBUG.
The debug handler is called when there is an error upon a call to the PAPI
API.
The error handler is always active and its behavior cannot be modified except
for whether or not it prints anything.
The default PAPI debug handler prints out messages in the
following form:
PAPI Error: Error Code code, symbol, description
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:
PAPI Error: message.
Note:
Example:
int ret; ret = PAPI_set_debug(PAPI_VERB_ECONT); if ( ret != PAPI_OK ) handle_error();
See Also:
PAPI_get_opt
PAPI_set_opt
Generated automatically by Doxygen for PAPI from the source code.
Mon Nov 14 2022 | Version 7.0.0.0 |