Skip to main content

Crate debug

Crate debug 

Source

Modules§

dprintf
Debug logging (dprintf) mechanism for the Zircon kernel.
ltrace
Local trace (LOCAL_TRACE) logging mechanism for the Zircon kernel.

Macros§

dprintf
Formats and prints a debug message if the global debug print level is greater than or equal to the specified level.
kernel_oops
A kprint-like macro which prepend’s the user’s message with the special “ZIRCON KERNEL OOPS” tag. Automated builds look for tags like this and consider their presence to indicate test failures, even if the higher level test framework code thinks the test passed.
ltrace
Prints current module path and line (TRACE) if LOCAL_TRACE >= 1.
ltrace_entry
Prints function entry (TRACE_ENTRY) if LOCAL_TRACE >= 1.
ltrace_entry_obj
Prints function entry with object pointer (TRACE_ENTRY_OBJ) if LOCAL_TRACE >= 1.
ltrace_exit
Prints function exit (TRACE_EXIT) if LOCAL_TRACE >= 1.
ltrace_exit_obj
Prints function exit with object pointer (TRACE_EXIT_OBJ) if LOCAL_TRACE >= 1.
ltrace_level
Prints current module path and line (TRACE) if LOCAL_TRACE >= level.
ltracef
Formats and prints a trace message (TRACEF) if LOCAL_TRACE >= 1.
ltracef_level
Formats and prints a trace message (TRACEF) if LOCAL_TRACE >= level.
trace
Prints the current module path and line ({module}:{line}).
trace_entry
Prints function/module entry information ({module}:{line}: entry or {name}: entry).
trace_entry_obj
Prints function entry along with the object pointer (self or reference).
trace_exit
Prints function/module exit information ({module}:{line}: exit or {name}: exit).
trace_exit_obj
Prints function exit along with the object pointer (self or reference).
tracef
Formats and prints a trace message prefixed with module path and line number.