Expand description
Rust wrapper library for the user-space debugfs ABI.
Full documentation at libfebug.rs(3), and of the rest of febug at index(0).
Set $FEBUG_DONT at build-time to turn everything into a no-op,
set $FEBUG_SIGNUM at build-time to override the default signal (SIGUSR2),
set $FEBUG_SOCKET at build-time to override the default location ([/var]/run/febug.sock).
Set $FEBUG_DONT at run-time to not connect (and, hence, make everything a no-op),
set $FEBUG_SOCKET at run-time to set an alternate location.
See examples/string-sorts.rs
for a usage example.
Modules§
Structs§
- Type
- Desugars a
TypeIdto its hash, or an explicit type name - Wrapper
- Create this to register a variable to be debugged
Statics§
- FORMATTERS
- Register formatters for your variable types here;
- GLOBAL_
CONTROLLED_ SOCKET - FD for the connection to
febug(8), or -1 if none.
Traits§
- Static
Wrappable - Helper trait for constructing
Wrapper<T>s with type equal toTypeId::of::<Self>() - Wrappable
- Helper trait for constructing
Wrapper<T>s
Functions§
- debug_
handler - Register this as a signal handler or call this from an event loop to format variables to be inspected
- end
- Hang up on
febug(8) - install_
handler - Call
debug_handler()withFEBUG_SIGNUM(SIGUSR2by default) - install_
handler_ signal - Install
debug_handler()as a handler for the specified signal - start
- Call
start_raw()with the default socket location for this platform, overridable withFEBUG_SOCKET - start_
raw - If
$FEBUG_DONTisn’t set, dialfebug(8)at the specified path, or$FEBUG_SOCKET