cvs commit: src/sys/kern kern_mutex.c subr_turnstile.c
src/sys/sys turnstile.h
John Baldwin
jhb at freebsd.org
Fri Jan 27 14:46:37 PST 2006
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 at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the cvs-all
mailing list