13 messages in org.opensolaris.mdb-discuss[mdb-discuss] how to dump a array and...
FromSent OnAttachments
zhijunAug 23, 2007 7:15 am 
Alexandre ChartreAug 23, 2007 7:56 am 
zhijunAug 23, 2007 8:33 am 
Alexandre ChartreAug 23, 2007 8:36 am 
Eric SchrockAug 23, 2007 8:36 am 
zhijunAug 23, 2007 9:27 am 
Eric SchrockAug 23, 2007 9:36 am 
zhijunAug 24, 2007 8:28 am 
Eric SchrockAug 24, 2007 10:38 am 
zhijunAug 24, 2007 7:44 pm 
Jonathan AdamsAug 25, 2007 12:11 am 
Eric SchrockAug 25, 2007 8:37 am 
zhijunAug 26, 2007 6:00 am 
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 dump a array and find which slots are non zero?Actions...
From:Eric Schrock (eric@sun.com)
Date:Aug 23, 2007 8:36:57 am
List:org.opensolaris.mdb-discuss

On Thu, Aug 23, 2007 at 11:34:20PM +0800, zhijun wrote:

Alexandre Chartre wrote:

You can do:

*swap_vnodes::array "struct vnode *" 0t2048 | /Kn | ::grep .

Hi alex, Thanks, it works. Whille I still would like to know whether this is a way to specify "not equal" in mdb, so I can exclude the variables with some specific value, something like ::grep .!= 0x1234

Enclosure your comparison in quotes, such as:

... | ::grep '. != 0x1234'

The '!' character is a metacharacter that opens a pipe to an external shell command, so if you don't include the quotes it will try to spawn the program '0x1234' and pipe the output to it.

- Eric