I am trying to add this probe to an existing dtrace script I have:

fbt:nfs:rfscall:entry
{
        printf("proc=%d",arg1);
}


This is on a Solaris 10 system running KU 150400-12.

This probe works fine in a script by itself. When I added it to the
bottom of my existing script, this happened:

dtrace: failed to compile script ./kkk.d: line 95: printf( ) argument #2
is incompatible with conversion #1 prototype:
        conversion: %d
         prototype: char, short, int, long, or long long
          argument: struct mutex

When I added it to the top, this happened:

dtrace: failed to compile script ./kkk.d: line 20: printf( ) argument #2
is incompatible with conversion #1 prototype:
        conversion: %d
         prototype: char, short, int, long, or long long
          argument: int64_t

I started removing stuff until I have the shortest script that still has
this behavior and here it is:

#!/usr/sbin/dtrace -s
fbt::clnt_cots_kcallit:entry
{
        self->p = (cku_private_t *)(args[0]->cl_private);
}


If I add the rfscall probe before this probe, I get the bottom error
above, if I add it after the probe I get the top error above. This
script without the rfscall probe works just fine and the rfscall probe
in a script by itself works just fine.

The problem is, I would really like to have these two probes together in
a script. What is going on?

-- 
Brian Utterback
Solaris RPE, Oracle Corporation.
Ph:603-262-3916, Em:[email protected]



-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to