14 #ifndef SION_SION_DEBUG_H 15 #define SION_SION_DEBUG_H 17 #define _SION_DEFAULT_RANK -1 26 #define ONLY_DEBUG(A) A 27 #define DPRINTF(A) sion_dprintf A 28 #define DPRINTFP(A) sion_dprintfp A 29 #define DPRINTFTS(rank,desc) sion_dprintfp(128,"TIMING",rank," step=%-40s timestamp=%18.8f\n",desc,_sion_get_time()) 30 #define DPRINTFTS2(rank,desc) sion_dprintfp(256,"TIMING",rank," step=%-40s timestamp=%18.8f\n",desc,_sion_get_time()) 35 #define DPRINTFTS(A,B) 36 #define DPRINTFTS2(A,B) 46 int sion_dprintfp(
int mask,
const char *callfunction,
int rank,
const char *format, ...);
47 int sion_isdebug(
void);
49 void sion_debug_off(
void);
53 void _sion_debug_set_lock_cb(
void (*set_lock)(),
void (*unset_lock)());
55 int _sion_debug_set_query_thread_num_function(
int (*get_thread_num)() );
int _sion_debug_init(void)
initialize the debug environment
int sion_dprintfp(int mask, const char *callfunction, int rank, const char *format,...)
Print debugging info formating the message like printf and including the name of the calling function...
int sion_dprintf(int mask, const char *format,...)
Print debugging info formating the message like printf.
FILE * sion_get_dfile(void)
void sion_debug_on(int mask, const char *filename)
sets debug mode.