Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 17:47:32 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        src-committers@freebsd.org
Cc:        cvs-src@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/kern kern_mutex.c subr_turnstile.c src/sys/sys turnstile.h
Message-ID:  <200601271747.34394.jhb@freebsd.org>
In-Reply-To: <200601272242.k0RMgCeJ062994@repoman.freebsd.org>
References:  <200601272242.k0RMgCeJ062994@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 27 January 2006 17:42, John Baldwin wrote:
> jhb         2006-01-27 22:42:12 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             kern_mutex.c subr_turnstile.c
>     sys/sys              turnstile.h
>   Log:
>   - Add a new ddb command 'show turnstile' that will look up the turnstile
>     associated with the given lock argument and display useful information
>     like the list of threads blocked on each queue, etc.  If there isn't an
>     active turnstile for a lock at the specified address, then the function
>     will see if there is an active turnstile at the specified address and
>     display info about it if so.

Sample output (from a reader/writer lock):

db> show lock foo
 class: rw
 name: foo
 state: WLOCK: 0xc473ac00 (tid 100072, pid 53, "crash2: 3")
 waiters: readers and waiters
db> show turnstile foo
Lock: 0xc476a7c0 - (rw) foo
Lock Owner: 0xc473ac00 (tid 100072, pid 53, "crash2: 3")
Shared Waiters:
        0xc473a780 (tid 100075, pid 50, "crash2: 0")
Exclusive Waiters:
        0xc473aa80 (tid 100073, pid 52, "crash2: 2")
        0xc473a900 (tid 100074, pid 51, "crash2: 1")
Pending Threads:
        empty

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



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