xref: /freebsd/sbin/ddb/ddb.conf (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
1#
2#  This file is read when going to multi-user and its contents piped thru
3#  ``ddb'' to define debugging scripts.
4#
5# see ``man 4 ddb'' and ``man 8 ddb'' for details.
6#
7
8script lockinfo=show locks; show alllocks; show lockedvnods
9
10# kdb.enter.panic	panic(9) was called.
11script kdb.enter.panic=textdump set; capture on; run lockinfo; show pcpu; bt; ps; alltrace; capture off; textdump dump; reset
12
13# kdb.enter.witness	witness(4) detected a locking error.
14script kdb.enter.witness=run lockinfo
15