/home/aching/Avery/Work.School/Research/pvfs2-lock/s3asim/src/custom_debug.h File Reference

#include <stdint.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>

Defines

#define NO_DEBUG   (uint64_t)0
#define MASTER   ((uint64_t)1 << 0)
#define WORKER   ((uint64_t)1 << 1)
#define MASTER_MSG   ((uint64_t)1 << 2)
#define WORKER_MSG   ((uint64_t)1 << 3)
#define MASTER_ERR   ((uint64_t)1 << 4)
#define WORKER_ERR   ((uint64_t)1 << 5)
#define MASTER_COMPUTE   ((uint64_t)1 << 6)
#define WORKER_COMPUTE   ((uint64_t)1 << 7)
#define MASTER_IO   ((uint64_t)1 << 8)
#define WORKER_IO   ((uint64_t)1 << 9)
#define MASTER_ISEND   ((uint64_t)1 << 10)
#define WORKER_ISEND   ((uint64_t)1 << 11)
#define MASTER_IRECV   ((uint64_t)1 << 12)
#define WORKER_IRECV   ((uint64_t)1 << 13)
#define MASTER_GATHER   ((uint64_t)1 << 14)
#define WORKER_GATHER   ((uint64_t)1 << 15)
#define MASTER_RAND   ((uint64_t)1 << 16)
#define WORKER_RAND   ((uint64_t)1 << 17)
#define MSG_ALL   (uint64_t) (MASTER_MSG + WORKER_MSG)
#define MASTER_ALL
#define WORKER_ALL
#define DEBUG_ALL   (uint64_t) (MASTER_ALL + WORKER_ALL)
#define DEBUG_BUF_SIZE   1024

Functions

int custom_debug (uint64_t mask, const char *format,...)

Define Documentation

#define DEBUG_ALL   (uint64_t) (MASTER_ALL + WORKER_ALL)

#define DEBUG_BUF_SIZE   1024

#define MASTER   ((uint64_t)1 << 0)

#define MASTER_ALL

Value:

#define MASTER_COMPUTE   ((uint64_t)1 << 6)

#define MASTER_ERR   ((uint64_t)1 << 4)

#define MASTER_GATHER   ((uint64_t)1 << 14)

#define MASTER_IO   ((uint64_t)1 << 8)

#define MASTER_IRECV   ((uint64_t)1 << 12)

#define MASTER_ISEND   ((uint64_t)1 << 10)

#define MASTER_MSG   ((uint64_t)1 << 2)

#define MASTER_RAND   ((uint64_t)1 << 16)

#define MSG_ALL   (uint64_t) (MASTER_MSG + WORKER_MSG)

#define NO_DEBUG   (uint64_t)0

#define WORKER   ((uint64_t)1 << 1)

#define WORKER_ALL

Value:

#define WORKER_COMPUTE   ((uint64_t)1 << 7)

#define WORKER_ERR   ((uint64_t)1 << 5)

#define WORKER_GATHER   ((uint64_t)1 << 15)

#define WORKER_IO   ((uint64_t)1 << 9)

#define WORKER_IRECV   ((uint64_t)1 << 13)

#define WORKER_ISEND   ((uint64_t)1 << 11)

#define WORKER_MSG   ((uint64_t)1 << 3)

#define WORKER_RAND   ((uint64_t)1 << 17)


Function Documentation

int custom_debug ( uint64_t  mask,
const char *  format,
  ... 
)

A custom function for debugging based on a debug mask compared against a global debug mask.

Parameters:
mask A mask to compare against the global_debug_mask.
format Format string for output.
... Additional arguments for variables to be displayed.
Returns:
0 on success.


Generated on Sun May 20 13:10:04 2007 for s3asim by  doxygen 1.4.7