If papi_debug() is not issued, then no debug information
is displayed.
If debug is being used, then the application
can pass in a user exit in the papiDebug_t papiLogFunc field.
The following defines are located in papiuser.h.
typedef struct {
unsigned int papiDebugOpt; /* Debug On/Off */
void *papiUserValue; /* User Define value */
papiLogUserExit_t papiLogFunc; /* Logging Function */
} papiDebug_t; /* Input papi_debug()*/
Set papiDebugOpt:
#define PAPI_DEBUG_OFF 0 /* Debug Off */
#define PAPI_DEBUG_ON 1 /* Debug On */