diff options
author | Brad Davis <brd@FreeBSD.org> | 2018-08-11 13:25:39 +0000 |
---|---|---|
committer | Brad Davis <brd@FreeBSD.org> | 2018-08-11 13:25:39 +0000 |
commit | cea9c033f2db7b768bc48fe5c3e8d140d23da4e2 (patch) | |
tree | 51db09c0e8360e2ddaffef0991756bd7e5532a41 /sbin/ddb | |
parent | 9584f61992f90d1099bcbcc00b03d2fd8d201c63 (diff) | |
download | src-test2-cea9c033f2db7b768bc48fe5c3e8d140d23da4e2.tar.gz src-test2-cea9c033f2db7b768bc48fe5c3e8d140d23da4e2.zip |
Move ddb.conf to sbin/ddb/ and switch to CONFS.
This helps pkgbase as this config file will now be tagged as a config file.
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D16675
Notes
Notes:
svn path=/head/; revision=337623
Diffstat (limited to 'sbin/ddb')
-rw-r--r-- | sbin/ddb/Makefile | 1 | ||||
-rw-r--r-- | sbin/ddb/ddb.conf | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sbin/ddb/Makefile b/sbin/ddb/Makefile index 44d002d6c229..f1bf75e41b36 100644 --- a/sbin/ddb/Makefile +++ b/sbin/ddb/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ +CONFS= ddb.conf PACKAGE=runtime PROG= ddb SRCS= ddb.c ddb_capture.c ddb_script.c diff --git a/sbin/ddb/ddb.conf b/sbin/ddb/ddb.conf new file mode 100644 index 000000000000..a793705c6585 --- /dev/null +++ b/sbin/ddb/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 |