Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2002 21:09:47 -0800
From:      Peter Wemm <peter@wemm.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Matthew Dillon <dillon@apollo.backplane.com>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/ps print.c 
Message-ID:  <20020221050947.EA79339F1@overcee.wemm.org>
In-Reply-To: <XFMail.020220234746.jhb@FreeBSD.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> 
> 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 <jhb@FreeBSD.org>  <><  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?

Actually, I dont mind either way, but I do very much like the '*' in top,
so if anybody puts chans and mutexes in ps output in a single merged field,
then please do the same.   It's easy to tell that "Giant" is a mutex since
it is so recognizable, but what about "tlb"?  is that a wchan or a mutex
name?

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020221050947.EA79339F1>