Add our own ddb.conf

This commit is contained in:
Renato Botelho 2016-11-21 10:33:30 -02:00
parent 86bb5c37c6
commit a7d88d2cbf
2 changed files with 16 additions and 1 deletions

15
src/etc/pfSense-ddb.conf Normal file
View File

@ -0,0 +1,15 @@
# $FreeBSD$
#
# This file is read when going to multi-user and its contents piped thru
# ``ddb'' to define debugging scripts.
#
# see ``man 4 ddb'' and ``man 8 ddb'' for details.
#
script lockinfo=show locks; show alllocks; show lockedvnods
# kdb.enter.panic panic(9) was called.
script kdb.enter.panic=textdump set; capture on; run lockinfo; show pcpu; bt; ps; alltrace; capture off; call doadump; reset
# kdb.enter.witness witness(4) detected a locking error.
script kdb.enter.witness=run lockinfo

View File

@ -57,7 +57,7 @@ echo "Configuring crash dumps..."
# Setup ddb on all platforms.
if [ ! -z "`sysctl -Nq debug.ddb.scripting.scripts`" ]; then
/sbin/ddb /etc/ddb.conf
/sbin/ddb /etc/${product}-ddb.conf
fi
fsck_forced_iterations=`/bin/kenv pfsense.fsck.force`