SIONlib  1.7.7
Scalable I/O library for parallel access to task-local files
Macros | Functions
sion_debug.h File Reference
#include <stdio.h>
Include dependency graph for sion_debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _SION_DEFAULT_RANK   -1
 
#define ONLY_DEBUG(A)
 
#define DPRINTF(A)
 
#define DPRINTFP(A)
 
#define DPRINTFTS(A, B)
 
#define DPRINTFTS2(A, B)
 

Functions

int _sion_debug_init (void)
 initialize the debug environment More...
 
int sion_dprintf (int mask, const char *format,...)
 Print debugging info formating the message like printf.
 
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_isdebug (void)
 
void sion_debug_on (int mask, const char *filename)
 sets debug mode. More...
 
void sion_debug_off (void)
 
FILE * sion_get_dfile (void)
 
void sion_dclose (void)
 
void _sion_debug_set_lock_cb (void(*set_lock)(void), void(*unset_lock)(void))
 
int _sion_debug_set_query_thread_num_function (int(*get_thread_num)(void))
 

Function Documentation

◆ _sion_debug_init()

int _sion_debug_init ( void  )

initialize the debug environment

evaluate the debug environment variables set _sion_debug_isdebug and out

Definition at line 371 of file sion_debug.c.

◆ sion_dclose()

void sion_dclose ( void  )

close the debug-file

Definition at line 289 of file sion_debug.c.

◆ sion_debug_on()

void sion_debug_on ( int  mask,
const char *  filename 
)

sets debug mode.

Parameters
maskdebug mask
filenameif not NULL, output file for debug output (default is stderr)

Definition at line 315 of file sion_debug.c.

◆ sion_get_dfile()

FILE* sion_get_dfile ( void  )

return the file pointer of the debug file

Definition at line 277 of file sion_debug.c.