From owner-cvs-all Wed Feb 20 20:48: 9 2002 Delivered-To: cvs-all@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id E621637B42F for ; Wed, 20 Feb 2002 20:47:53 -0800 (PST) Received: (qmail 1077 invoked from network); 21 Feb 2002 04:47:47 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([65.91.152.92]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Feb 2002 04:47:47 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200202210058.g1L0wjS91114@apollo.backplane.com> Date: Wed, 20 Feb 2002 23:47:46 -0500 (EST) From: John Baldwin To: Matthew Dillon Subject: Re: RE: cvs commit: src/bin/ps print.c Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG 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 21-Feb-02 Matthew Dillon wrote: > >: >: >: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. Sounds good to me. I actually did something like this for top. In top I had all mutex names start with a * to differentiate them from wait channel names, can you do a similar thing for mwchan? > -Matt > Matthew Dillon > -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message