xref: /freebsd/sbin/ddb/ddb.conf (revision 2008043f386721d58158e37e0d7e50df8095942d)
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