From 15a1057c462f8248c4ae80ec2d70b60b19c5700e Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Wed, 20 Jan 1999 14:49:12 +0000 Subject: Add 'options DEBUG_LOCKS', which stores extra information in struct lock, and add some macros and function parameters to make sure that the information get to the point where it can be put in the lock structure. While I'm here, add DEBUG_VFS_LOCKS to LINT. --- sys/conf/NOTES | 11 ++++++++++- sys/conf/options | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'sys/conf') diff --git a/sys/conf/NOTES b/sys/conf/NOTES index e151c090da04..762e124d525a 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -2,7 +2,7 @@ # LINT -- config file for checking all the sources, tries to pull in # as much of the source tree as it can. # -# $Id: LINT,v 1.537 1999/01/19 15:11:46 des Exp $ +# $Id: LINT,v 1.538 1999/01/20 03:29:51 msmith Exp $ # # NB: You probably don't want to try running a kernel built from this # file. Instead, you should start from GENERIC, and add options from @@ -1844,6 +1844,14 @@ options "PMAP_SHPGPERPROC=201" # options "NSFBUFS=1024" +# +# Enable extra debugging code for locks. This include storing the +# filename and line of whatever aquired the lock in the lock itself, +# and changing a number of function calls to pass around the relevant +# data. This is not at all useful unless you are debugging lock code. +# +options DEBUG_LOCKS + # More undocumented options for linting. options CLK_CALIBRATION_LOOP @@ -1853,6 +1861,7 @@ options CLUSTERDEBUG options COMPAT_LINUX options CPU_UPGRADE_HW_CACHE options DEBUG +options DEBUG_VFS_LOCKS options "DEBUG_1284" #options DISABLE_PSE options "EXT2FS" diff --git a/sys/conf/options b/sys/conf/options index 6089840cf00b..35ceb1a53ffa 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -1,4 +1,4 @@ -# $Id: options,v 1.119 1999/01/15 10:00:10 bde Exp $ +# $Id: options,v 1.120 1999/01/17 19:02:39 peter Exp $ # # On the handling of kernel options # @@ -255,6 +255,7 @@ SI_DEBUG opt_debug_si.h # These cause changes all over the kernel DEBUG opt_global.h +DEBUG_LOCKS opt_global.h DEBUG_VFS_LOCKS opt_global.h DIAGNOSTIC opt_global.h ENABLE_VFS_IOOPT opt_global.h -- cgit v1.3