Message-
From: Jonathan Adams [mailto:jonathan.ad...@oracle.com]
Sent: 09 November 2011 00:27
To: Mehul Choube
Cc: dtrace-discuss@opensolaris.org
Subject: Re: [dtrace-discuss] concatenate structure members into one variable
On Tue, Nov 08, 2011 at 03:48:17AM -0800, Mehul Choube wrote:
> Hi,
>
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 lo
Mehul Choube wrote:
> Hi,
>
> self->d4 = ((GUID_t *)this->sptr)->Data4[0];
>
> works but
>
> self->d4 = ((GUID_t *)this->sptr)->Data4;
>
> doesn't with following error:
>
> dtrace: failed to compile script nums.d: line 20: operator = may not be
> applied to operand of type "unsigned char [8]"
Mehul Choube wrote:
> 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) / 100);
> @[guid, pid, tid, args[2]->fi_pathname] = sum(this->elapsed);
> self->waits = 0;
On 8 Nov 2011, at 13:20, James Carlson wrote:
> Mehul Choube 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
nks,
Mehul
-Original Message-
From: James Carlson [mailto:carls...@workingcode.com]
Sent: 08 November 2011 18:50
To: Mehul Choube
Cc: dtrace-discuss@opensolaris.org
Subject: Re: [dtrace-discuss] concatenate structure members into one variable
Mehul Choube wrote:
> Hi,
>
> I want
Choube
Subject: Re: [dtrace-discuss] concatenate structure members into one variable
On Tue, Nov 8, 2011 at 14:02, Mehul Choube 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
Mehul Choube 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
] = ...
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
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
10 matches
Mail list logo