[mdb-discuss] How to get a mutex info along with a thread info

2007-08-25 Thread Oliver Yang
liujun wrote: > addr::mutex > only give the mutex's info : > >> 30001054000::mutex >> > ADDR TYPE HELD MINSPL OLDSPL WAITERS > 030001054000 adapt2 - - yes > > > is there some other cmds to get the thread which own it or which wa

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-25 Thread zhijun
> fffecb5bc000::array "struct vnode *" 10 |/Kn|::grep .==0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> 0 >> >> My two questions here: >> While /n is added to make sure each expression occupies one line, here >> the first line does not exactly consist of an arithmetic expression, and >> it contains the address of the first entry in array, so I would expect >> it will break the pineline, but instead, it works fine. I am somehow >> puzzled about this. Could you give me some hint on this? >> Another question is why the output of /Kn and ::eval > Basically I think the output should be the same as they each takes an >> address and dump the content one line a time. >> >> Thanks again, >> Zhijun >> >> >> >> >> ___ >> mdb-discuss mailing list >> mdb-discuss at opensolaris.org >> > > -- > Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock > -- next part -- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20070825/ee851c34/attachment.html>

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-25 Thread Eric Schrock
On Sat, Aug 25, 2007 at 10:45:10AM +0800, zhijun wrote: > > I really appreciate your kindness to explain this for me. > > ::array ... p | ::eval ' well with mdb pipeline. What I am suprized is that ::array ... p | /Kn > *doesn't* give pure uintptr_t's, as its output has an address in the first

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-25 Thread Jonathan Adams
his is to > do something like: > > ::array ... p | ::eval ' > Why are you guys using ::eval for this, anyway? Isn't this what ::map was designed for? (i.e. ::map '*.', or ::map '*http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20070825/b4bec51f/attachment.html>

[mdb-discuss] How to get a mutex info along with a thread info

2007-08-25 Thread liujun
addr::mutex only give the mutex's info : > 30001054000::mutex ADDR TYPE HELD MINSPL OLDSPL WAITERS 030001054000 adapt2 - - yes > is there some other cmds to get the thread which own it or which wait it? Thanks . This message posted f