summaryrefslogtreecommitdiffstats
path: root/etc/ddb.conf
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2008-03-05 18:32:58 +0000
committerbrooks <brooks@FreeBSD.org>2008-03-05 18:32:58 +0000
commitf11bd3ace802f1a1a51a61be1767c1985527cf60 (patch)
treee832b8461ba906f164938e2ac47ee22f8f876cfa /etc/ddb.conf
parent90e24ae3e22f9346df7fa91dfc9d1e510ce50e1b (diff)
downloadFreeBSD-src-f11bd3ace802f1a1a51a61be1767c1985527cf60.zip
FreeBSD-src-f11bd3ace802f1a1a51a61be1767c1985527cf60.tar.gz
Use the new command file feature of ddb(8) to support setting ddb(4)
scripts at boot. This is currently disabled by default. /etc/ddb.conf contains some potentially reasonable default scripts. PR: conf/119995 Submitted by: Scot Hetzel <swhetzel at gmail dot com> (Earlier version) X-MFC after: textdumps
Diffstat (limited to 'etc/ddb.conf')
-rw-r--r--etc/ddb.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/ddb.conf b/etc/ddb.conf
new file mode 100644
index 0000000..a793705
--- /dev/null
+++ b/etc/ddb.conf
@@ -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
OpenPOWER on IntegriCloud