Go to the source code of this file.
Define for debugging prints | |
#define | NDEBUG |
#define | ___trace_on() |
#define | ___trace_off() |
#define | ___reg_view() |
#define | ___halt() |
#define | ___stop() |
#define | ASSERT(EXPR) |
assert macro | |
#define | assert(expr) do {} while (0) |
assert macro | |
Dprintk functions | |
if NDEBUG not defined assert prints function name and line number followed by the string ARGS and values printed by printk | |
#define | dprintk(ARGS) |
#define | dprintk1(ARGS, A1) |
#define | dprintk2(ARGS, A1, A2) |
#define | dprintk3(ARGS, A1, A2, A3) |
#define | dprintk4(ARGS, A1, A2, A3, A4) |
void | panic (const char *format,...) |
Kernel panic function. |
Debugging macros
debugging info NDEBUG - no debugging DEBUG - automatically set up when NDEBUG not defined
#define ___halt | ( | ) |
Value:
__asm__ __volatile__ ( \ " .insn \n" \ " .word 0x28 \n" \ )
#define ___reg_view | ( | ) |
Value:
__asm__ __volatile__ ( \ " .insn \n" \ " .word 0x37 \n" \ )
#define ___stop | ( | ) |
Value:
__asm__ __volatile__ ( \ " .insn \n" \ " .word 0x29 \n" \ )
#define ___trace_off | ( | ) |
Value:
__asm__ __volatile__ ( \ " .insn \n" \ " .word 0x3d \n" \ )
#define ___trace_on | ( | ) |
Value:
__asm__ __volatile__ ( \ " .insn \n" \ " .word 0x39 \n" \ )
#define assert | ( | expr | ) | do {} while (0) |
assert macro
expr | - expression to evaluate if NDEBUG not defined assert evaluates the expression, else assert omitted when expression equal to zero, assert calls panic with function name, file name and line info |
#define ASSERT | ( | EXPR | ) |
assert macro
EXPR | - expression to evaluate if NDEBUG not defined assert evaluates the expression, else assert omitted when expression equal to zero, assert calls panic with function name, file name and line info |
#define NDEBUG |
}@
void panic | ( | const char * | format, | |
... | ||||
) |
Kernel panic function.
format | - formatted string same as printk | |
... | - arguments |