On 8/26/07, Brian Xu - Sun Microsystems - Beijing China <Brian.Xu at sun.com>
wrote:
>
> Oliver Yang ??:
> > liujun wrote:
> >
> >> addr::mutex
> >> only give the mutex's info :
> >>
> >>
> >>> 30001054000::mutex
> >>>
> >>>
> >>             ADDR  TYPE             HELD MINSPL OLDSPL WAITERS
> >> 0000030001054000 adapt        200000000      -      -     yes
> >>
> >>
> >> is there some other cmds to get the thread which own it or which wait
> it?
> >>
> >>
> >>
> > Yes, you could found the mutex onwer from ::mutex output.
> >
> > And you also can get all of threads related to one lock address by
> using:
> >
> > <lock addr>::whatthread
> > or
> > <lock addr>::kgrep |::whatis -a
> >
> you all can dump all the threads waiting for the mutex by:
> <lock addr>::walk mutex_owned |;; findstack


No;  this only gets the owner.  You want:

addr::walk blocked | ::findstack

Cheers,
- jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20070827/811660d7/attachment.html>

Reply via email to