PAPI 7.1.0.0
|
Go to the source code of this file.
Macros | |
#define | DEBUG_SUBSTRATE 0x002 |
#define | DEBUG_API 0x004 |
#define | DEBUG_INTERNAL 0x008 |
#define | DEBUG_THREADS 0x010 |
#define | DEBUG_MULTIPLEX 0x020 |
#define | DEBUG_OVERFLOW 0x040 |
#define | DEBUG_PROFILE 0x080 |
#define | DEBUG_MEMORY 0x100 |
#define | DEBUG_LEAK 0x200 |
#define | DEBUG_HIGHLEVEL 0x400 |
#define | DEBUG_ALL (DEBUG_SUBSTRATE|DEBUG_API|DEBUG_INTERNAL|DEBUG_THREADS|DEBUG_MULTIPLEX|DEBUG_OVERFLOW|DEBUG_PROFILE|DEBUG_MEMORY|DEBUG_LEAK|DEBUG_HIGHLEVEL) |
#define | FUNC "?" |
#define | DEBUGLABEL(a) if (_papi_hwi_thread_id_fn) fprintf(stderr, "%s:%s:%s:%d:%d:%#lx ",a,__FILE__, FUNC, __LINE__,(int)getpid(),_papi_hwi_thread_id_fn()); else fprintf(stderr, "%s:%s:%s:%d:%d ",a,__FILE__, FUNC, __LINE__, (int)getpid()) |
#define | ISLEVEL(a) (_papi_hwi_debug&a) |
#define | DEBUGLEVEL(a) ((a&DEBUG_SUBSTRATE)?"SUBSTRATE":(a&DEBUG_API)?"API":(a&DEBUG_INTERNAL)?"INTERNAL":(a&DEBUG_THREADS)?"THREADS":(a&DEBUG_MULTIPLEX)?"MULTIPLEX":(a&DEBUG_OVERFLOW)?"OVERFLOW":(a&DEBUG_PROFILE)?"PROFILE":(a&DEBUG_MEMORY)?"MEMORY":(a&DEBUG_LEAK)?"LEAK":(a&DEBUG_HIGHLEVEL)?"HIGHLEVEL":"UNKNOWN") |
#define | PAPIDEBUG(level, format, args...) { if(_papi_hwi_debug&level){DEBUGLABEL(DEBUGLEVEL(level));fprintf(stderr,format, ## args);}} |
#define | SUBDBG(format, args...) (PAPIDEBUG(DEBUG_SUBSTRATE,format, ## args)) |
#define | APIDBG(format, args...) (PAPIDEBUG(DEBUG_API,format, ## args)) |
#define | INTDBG(format, args...) (PAPIDEBUG(DEBUG_INTERNAL,format, ## args)) |
#define | THRDBG(format, args...) (PAPIDEBUG(DEBUG_THREADS,format, ## args)) |
#define | MPXDBG(format, args...) (PAPIDEBUG(DEBUG_MULTIPLEX,format, ## args)) |
#define | OVFDBG(format, args...) (PAPIDEBUG(DEBUG_OVERFLOW,format, ## args)) |
#define | PRFDBG(format, args...) (PAPIDEBUG(DEBUG_PROFILE,format, ## args)) |
#define | MEMDBG(format, args...) (PAPIDEBUG(DEBUG_MEMORY,format, ## args)) |
#define | LEAKDBG(format, args...) (PAPIDEBUG(DEBUG_LEAK,format, ## args)) |
#define | HLDBG(format, args...) (PAPIDEBUG(DEBUG_HIGHLEVEL,format, ## args)) |
Variables | |
int | _papi_hwi_debug |
unsigned long int(* | _papi_hwi_thread_id_fn )(void) |
Definition in file papi_debug.h.
Definition at line 65 of file papi_debug.h.
#define DEBUG_ALL (DEBUG_SUBSTRATE|DEBUG_API|DEBUG_INTERNAL|DEBUG_THREADS|DEBUG_MULTIPLEX|DEBUG_OVERFLOW|DEBUG_PROFILE|DEBUG_MEMORY|DEBUG_LEAK|DEBUG_HIGHLEVEL) |
Definition at line 37 of file papi_debug.h.
#define DEBUG_API 0x004 |
Definition at line 28 of file papi_debug.h.
#define DEBUG_HIGHLEVEL 0x400 |
Definition at line 36 of file papi_debug.h.
#define DEBUG_INTERNAL 0x008 |
Definition at line 29 of file papi_debug.h.
#define DEBUG_LEAK 0x200 |
Definition at line 35 of file papi_debug.h.
#define DEBUG_MEMORY 0x100 |
Definition at line 34 of file papi_debug.h.
#define DEBUG_MULTIPLEX 0x020 |
Definition at line 31 of file papi_debug.h.
#define DEBUG_OVERFLOW 0x040 |
Definition at line 32 of file papi_debug.h.
#define DEBUG_PROFILE 0x080 |
Definition at line 33 of file papi_debug.h.
#define DEBUG_SUBSTRATE 0x002 |
Definition at line 27 of file papi_debug.h.
#define DEBUG_THREADS 0x010 |
Definition at line 30 of file papi_debug.h.
#define DEBUGLABEL | ( | a | ) | if (_papi_hwi_thread_id_fn) fprintf(stderr, "%s:%s:%s:%d:%d:%#lx ",a,__FILE__, FUNC, __LINE__,(int)getpid(),_papi_hwi_thread_id_fn()); else fprintf(stderr, "%s:%s:%s:%d:%d ",a,__FILE__, FUNC, __LINE__, (int)getpid()) |
Definition at line 54 of file papi_debug.h.
#define DEBUGLEVEL | ( | a | ) | ((a&DEBUG_SUBSTRATE)?"SUBSTRATE":(a&DEBUG_API)?"API":(a&DEBUG_INTERNAL)?"INTERNAL":(a&DEBUG_THREADS)?"THREADS":(a&DEBUG_MULTIPLEX)?"MULTIPLEX":(a&DEBUG_OVERFLOW)?"OVERFLOW":(a&DEBUG_PROFILE)?"PROFILE":(a&DEBUG_MEMORY)?"MEMORY":(a&DEBUG_LEAK)?"LEAK":(a&DEBUG_HIGHLEVEL)?"HIGHLEVEL":"UNKNOWN") |
Definition at line 57 of file papi_debug.h.
#define FUNC "?" |
Definition at line 51 of file papi_debug.h.
#define HLDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_HIGHLEVEL,format, ## args)) |
Definition at line 73 of file papi_debug.h.
#define INTDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_INTERNAL,format, ## args)) |
Definition at line 66 of file papi_debug.h.
#define ISLEVEL | ( | a | ) | (_papi_hwi_debug&a) |
Definition at line 55 of file papi_debug.h.
#define LEAKDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_LEAK,format, ## args)) |
Definition at line 72 of file papi_debug.h.
#define MEMDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_MEMORY,format, ## args)) |
Definition at line 71 of file papi_debug.h.
#define MPXDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_MULTIPLEX,format, ## args)) |
Definition at line 68 of file papi_debug.h.
#define OVFDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_OVERFLOW,format, ## args)) |
Definition at line 69 of file papi_debug.h.
#define PAPIDEBUG | ( | level, | |
format, | |||
args... | |||
) | { if(_papi_hwi_debug&level){DEBUGLABEL(DEBUGLEVEL(level));fprintf(stderr,format, ## args);}} |
Definition at line 60 of file papi_debug.h.
#define PRFDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_PROFILE,format, ## args)) |
Definition at line 70 of file papi_debug.h.
#define SUBDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_SUBSTRATE,format, ## args)) |
Definition at line 64 of file papi_debug.h.
#define THRDBG | ( | format, | |
args... | |||
) | (PAPIDEBUG(DEBUG_THREADS,format, ## args)) |
Definition at line 67 of file papi_debug.h.
|
extern |
Definition at line 187 of file linux-pcp.c.