From owner-cvs-all@FreeBSD.ORG Tue Aug 15 18:29:04 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2038F16A4DE; Tue, 15 Aug 2006 18:29:04 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5287543D68; Tue, 15 Aug 2006 18:29:02 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7FIT2rN042039; Tue, 15 Aug 2006 18:29:02 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7FIT2Sx042038; Tue, 15 Aug 2006 18:29:02 GMT (envelope-from jhb) Message-Id: <200608151829.k7FIT2Sx042038@repoman.freebsd.org> From: John Baldwin Date: Tue, 15 Aug 2006 18:29:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_lock.c kern_sx.c subr_turnstile.c src/sys/sys lockmgr.h sx.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 18:29:04 -0000 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