Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 2004 11:52:59 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 52052 for review
Message-ID:  <20040503185259.GC55675@ns1.xcllnt.net>
In-Reply-To: <200405031358.09996.jhb@FreeBSD.org>
References:  <200405020130.i421U4QZ083887@repoman.freebsd.org> <200405031358.09996.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 03, 2004 at 01:58:09PM -0400, John Baldwin wrote:
> On Saturday 01 May 2004 09:30 pm, Marcel Moolenaar wrote:
> > http://perforce.freebsd.org/chv.cgi?CH=52052
> >
> > Change 52052 by marcel@marcel_nfs on 2004/05/01 18:29:05
> >
> > 	Add commands to set and show threads. Needs fleshing out.
> > 	While here, cleanup a lot of unused code.
> 
> I really wish we could get this back into close to 80 cols again.

Me too. Especially on 64-bit machines, the output of ps is just plain
unreadable. Let me know what you really like to see in a thread list
and I'll see if I can make it fit. We can also put certain info under
the "thread [tid]" command.

For example: the address of struct thread does not have to be printed
with "show threads", but it's probably a good idea to print it with
"thread [tid]" so that it can be dumped easily.

> Was 
> thinking of having the thread inhibitors listed with one-char flags that were 
> - if the flag as clear and a letter (S - sleeping, L - lock, W - swapped, 
> etc.) and still have a single wchan/wmesg field that lists lock name for if 
> TDI_LOCK is set, otherwise wmesg if on a sleep queue, etc.

I'm open to suggestions. We can even use modifiers to control the
output. No modifier gives the same behaviour as in gdb(1); the
"l" modifier prints lock information. The "p" modifier shows the
process specifics and so on.

Send brain dumps this way...

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net



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