From owner-freebsd-current@FreeBSD.ORG Wed Jul 30 12:34:40 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 150A737B42A for ; Wed, 30 Jul 2003 12:34:40 -0700 (PDT) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FBD843FAF for ; Wed, 30 Jul 2003 12:34:39 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 8033 invoked from network); 30 Jul 2003 19:34:38 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 30 Jul 2003 19:34:38 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h6UJYaGI068462; Wed, 30 Jul 2003 15:34:37 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030730021052.P88169@odysseus.silby.com> Date: Wed, 30 Jul 2003 15:34:57 -0400 (EDT) From: John Baldwin To: Mike Silbersack cc: current@freebsd.org Subject: RE: show locks w/o ddb? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 19:34:41 -0000 On 30-Jul-2003 Mike Silbersack wrote: > > This may be a dumb question, but is there a way to call whatever "show > locks" calls from within the kernel, similar to how we can call > backtrace()? If you have DDB compiled in you could call the appropriate witness function, though I think it is a static function atm. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/