Date: Tue, 15 Aug 2006 18:29:02 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_lock.c kern_sx.c subr_turnstile.c src/sys/sys lockmgr.h sx.h Message-ID: <200608151829.k7FIT2Sx042038@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2006-08-15 18:29:02 UTC FreeBSD src repository Modified files: sys/kern kern_lock.c kern_sx.c subr_turnstile.c sys/sys lockmgr.h sx.h Log: Add a new 'show sleepchain' ddb command similar to 'show lockchain' except that it operates on lockmgr and sx locks. This can be useful for tracking down vnode deadlocks in VFS for example. Note that this command is a bit more fragile than 'show lockchain' as we have to poke around at the wait channel of a thread to see if it points to either a struct lock or a condition variable inside of a struct sx. If td_wchan points to something unmapped, then this command will terminate early due to a fault, but no harm will be done. Revision Changes Path 1.99 +28 -0 src/sys/kern/kern_lock.c 1.30 +54 -1 src/sys/kern/kern_sx.c 1.163 +67 -0 src/sys/kern/subr_turnstile.c 1.50 +3 -0 src/sys/sys/lockmgr.h 1.25 +3 -0 src/sys/sys/sx.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151829.k7FIT2Sx042038>