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