Hi, Yes but that is my last resort. Also, I have other values also like:
io::wait-done /self->waits/ { self->elapsed = ((timestamp - self->waits) / 1000000); @[guid, pid, tid, args[2]->fi_pathname] = sum(this->elapsed); self->waits = 0; } But now it will have to be: @[self->Data1, self->Data2, self->Data3, self->Data4, pid, tid, args[2]->fi_pathname] = sum(this->elapsed); Right? Thanks, Mehul -----Original Message----- From: Michael Schuster [mailto:michaelspriv...@gmail.com] Sent: 08 November 2011 18:40 To: Mehul Choube Subject: Re: [dtrace-discuss] concatenate structure members into one variable On Tue, Nov 8, 2011 at 14:02, Mehul Choube <mehul_cho...@symantec.com> wrote: > Hi, > > I want to collect the performance information for each myFunc call. The > program is multi-threaded and uses multiple queues which can be served by any > thread. GUID is the unique handle for each request. I can collect the > information and store it based on GUID something like: > > @[guid] = ... I could be mistaken (it's been a while since I've done any significant work with DTrace), but can't you use more than one value as value to hash on, eg @[a,b,c] (check the exact syntax)? HTH Michael > I think the ID is correct. > > > > Thanks, > Mehul > > -----Original Message----- > From: James Carlson [mailto:carls...@workingcode.com] > Sent: 08 November 2011 18:15 > To: Mehul Choube > Cc: dtrace-discuss@opensolaris.org > Subject: Re: [dtrace-discuss] concatenate structure members into one variable > > Mehul Choube wrote: >> Hi, >> >> I want the guid in a variable. I tried stringof(), strjoin(), >> copyinstr() but none works L > > As defined, it's a structure containing longs and binary data, not a > string. Can you describe what sort of result you'd like to see? Or > perhaps what sort of problem you'd like to solve? > >> The output is: >> Id: 11E109F8702B323E9CAF5000568000D000000000 > > Is that output wrong ... ? > > -- > James Carlson 42.703N 71.076W <carls...@workingcode.com> > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss@opensolaris.org > -- Michael Schuster http://recursiveramblings.wordpress.com/ _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org