From owner-cvs-all Wed Feb 20 16:58:50 2002 Delivered-To: cvs-all@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 3912037B416; Wed, 20 Feb 2002 16:58:45 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g1L0wjS91114; Wed, 20 Feb 2002 16:58:45 -0800 (PST) (envelope-from dillon) Date: Wed, 20 Feb 2002 16:58:45 -0800 (PST) From: Matthew Dillon Message-Id: <200202210058.g1L0wjS91114@apollo.backplane.com> To: John Baldwin Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: RE: cvs commit: src/bin/ps print.c References: Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : : :On 16-Feb-02 Matt Dillon wrote: :> dillon 2002/02/16 12:10:00 PST :> :> Modified files: :> bin/ps print.c :> Log: :> When blocked on a mutex, display the mutex name via the wchan string field :> so we can at least tell the difference between being blocked in Giant :> and being blocked in some other mutex. : :ps -o mtxname : ::) : :The manpage even documents this. :) : :-- : :John Baldwin <>< http://www.FreeBSD.org/~jhb/ :"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ It's a lot easier to just have ps axl show it, since the wchan field is otherwise unused. Alternatively we could create a synthesize field 'mwchan' which replaces the default 'wchan' for ps output that does this combo. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message