On Tue, Nov 08, 2011 at 03:48:17AM -0800, Mehul Choube wrote: > Hi, > > I want the guid in a variable. I tried stringof(), strjoin(), copyinstr() but > none works :( > > D script: > > ======= > > #!/usr/sbin/dtrace -s > > #pragma D option quiet > > typedef struct GUID { > unsigned long Data1; > unsigned long Data2; > unsigned long Data3; > unsigned char Data4[8]; > }GUID_t; >
Have you tried: pid$1::*myFunc*:entry { this->ptr = arg1; this->sptr = (GUID_t *)copyin(this->ptr, sizeof(GUID_t)); @a[*this->sptr] = count(); ^^^^^^^^^^^^^^^^^^^^^^^^^ } Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org