From owner-cvs-src@FreeBSD.ORG Fri Jan 27 22:46:37 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD4A816A423; Fri, 27 Jan 2006 22:46:37 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id C77A643D45; Fri, 27 Jan 2006 22:46:36 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 7152533 for multiple; Fri, 27 Jan 2006 17:45:27 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k0RMkWph054106; Fri, 27 Jan 2006 17:46:33 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: src-committers@freebsd.org Date: Fri, 27 Jan 2006 17:47:32 -0500 User-Agent: KMail/1.9.1 References: <200601272242.k0RMgCeJ062994@repoman.freebsd.org> In-Reply-To: <200601272242.k0RMgCeJ062994@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601271747.34394.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1254/Fri Jan 27 12:22:39 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern kern_mutex.c subr_turnstile.c src/sys/sys turnstile.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 22:46:37 -0000 On Friday 27 January 2006 17:42, John Baldwin wrote: > jhb 2006-01-27 22:42:12 UTC > > FreeBSD src repository > > Modified files: > sys/kern kern_mutex.c subr_turnstile.c > sys/sys turnstile.h > Log: > - Add a new ddb command 'show turnstile' that will look up the turnstile > associated with the given lock argument and display useful information > like the list of threads blocked on each queue, etc. If there isn't an > active turnstile for a lock at the specified address, then the function > will see if there is an active turnstile at the specified address and > display info about it if so. Sample output (from a reader/writer lock): db> show lock foo class: rw name: foo state: WLOCK: 0xc473ac00 (tid 100072, pid 53, "crash2: 3") waiters: readers and waiters db> show turnstile foo Lock: 0xc476a7c0 - (rw) foo Lock Owner: 0xc473ac00 (tid 100072, pid 53, "crash2: 3") Shared Waiters: 0xc473a780 (tid 100075, pid 50, "crash2: 0") Exclusive Waiters: 0xc473aa80 (tid 100073, pid 52, "crash2: 2") 0xc473a900 (tid 100074, pid 51, "crash2: 1") Pending Threads: empty -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org