4 messages in org.opensolaris.mdb-discuss[mdb-discuss] How to get a mutex info...
FromSent OnAttachments
liujunAug 25, 2007 1:43 am 
Oliver YangAug 25, 2007 2:31 am 
Brian Xu - Sun Microsystems - Beijing ChinaAug 26, 2007 7:08 pm 
Jonathan AdamsAug 26, 2007 10:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[mdb-discuss] How to get a mutex info along with a thread infoActions...
From:Jonathan Adams (jwad@gmail.com)
Date:Aug 26, 2007 10:42:54 pm
List:org.opensolaris.mdb-discuss

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