nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NEED_LOCK_TEST_BEGIN
 
#define NEED_LOCK_TEST_END   __need_lock = 0;
 

Functions

int dbg_printf (const char *format,...)
 

Macro Definition Documentation

#define NEED_LOCK_TEST_BEGIN
Value:
static int __need_lock = 0; \
if (__need_lock) { \
dbg_printf("[%s:%d] need_lock <<<<<<<<<<<<<\n", __func__, __LINE__); \
while (1) { \
} \
} \
__need_lock = 1;

Definition at line 7 of file debug.h.

Referenced by brk(), free(), malloc(), page_frame_alloc(), page_frame_free(), page_frame_manage(), page_frame_ref(), page_frame_refcnt(), posix_memalign(), and sbrk().

#define NEED_LOCK_TEST_END   __need_lock = 0;

Function Documentation

int dbg_printf ( const char *  format,
  ... 
)