cvs commit: src/sys/kern subr_witness.c

John Baldwin jhb at FreeBSD.org
Mon Dec 27 14:11:08 PST 2004


On Sunday 26 December 2004 07:54 pm, Kris Kennaway wrote:
> On Sun, Dec 26, 2004 at 10:52:24PM +0000, Robert Watson wrote:
> > rwatson     2004-12-26 22:52:24 UTC
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/kern             subr_witness.c
> >   Log:
> >   Add "show alllocks" command to DDB, which dumps a list of processes
> >   and threads currently holding sleep mutexes (and spin mutexes for
> >   curthread).  This can be quite useful in looking for a lock condition
> >   summary for a system, as it avoids manually iterating through threads
> >   and processes to find all the interesting locks.
> >
> >   NB: "alllocks" is up there with "lockedvnods" for a bad argument for
> >   show.
>
> ITYM "allloks" or perhaps "alllockes" (conservation of vowels).

If you want a better name you could do 'show locks /a' instead.  That is, add 
support to 'show locks' for the /a option (see 'show ktr' for how you would 
handle this by looking at 'modif').

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list