NAME
dmassage - dmesg parser
SYNOPSIS
dmassage [-d dmesg] -f kernel
dmassage [-d dmesg] -s kernelconfig
dmassage [-d dmesg] -t
DESCRIPTION
dmassage parses your system's dmesg to learn which devices are
succesfully detected by the kernel. This information can be used
for three purposes: to make the kernel boot faster, to help build a
smaller kernel or to show all the devices in a tree-like hierarchy.
OPTIONS
-d dmesg
Read dmesg from this file instead of the default /var/run/dmesg.boot.
Use '-' to read the dmesg from standard input.
-f kernel
"Fastboot". Disable all devices in the kernel that do not appear
in the dmesg. This is done using the config(8) utility, so the
kernel does not have to be rebuild. When the tweaked kernel boots,
the disabled devices do not have to be probed, resulting in a faster
boot.
-s kernelconfig
"Small kernel". Comment out all devices in a kernel configuration
file (e.g. GENERIC) that do not appear in the dmesg. The resulting
configuration file can be used to build a minimal kernel with full
functionality.
-t
"Tree". Show a tree-like hierarchy of all devices in the dmesg.
Devices on the same level are shown in the order they were detected
by the kernel.
EXAMPLES
dmassage -t
dmassage -f /bsd | config -e -o /nbsd /bsd
dmassage -s GENERIC >SMALLKERNEL
AUTHOR
Camiel Dobbelaar cd at sentia.nl