proc_dbg_unit_test Home
Brought to you by:
internut
To check out and build:
svn checkout svn://svn.code.sf.net/p/procdbgunittest/code/trunk procdbgunittest-code
cd procdbgunittest-code
svn checkout svn://svn.code.sf.net/p/kerneldebugutil/code/trunk kerneldebugutil-code
svn checkout svn://svn.code.sf.net/p/procutils/code/trunk procutils-code
make
To install kernel modules:
make load (make unload to remove)
To dump the trace buffer:
cat /proc/kdebug/debug/trace
to add messages you can
echo "message" > /proc/kdebug/debug/trace
if you echo 1 > /proc/kdebug/debug_test/inject
you'll get a call tree.
You can echo 0 or 1 into /proc/kdebug/debug/indent so that the call tree will be shown without or with indentation.
The debug level for each unit is readable/settable in /proc/kdebug/debug/units/*