[dtrace-discuss] Re: invalid address (0x0) in action #2 at DIF offset 52

Chip Bennett cbennett at laurustech.com
Sat Jan 20 06:11:51 PST 2007


Hi,

You need to grab the value of arg3 on the entry probe to the function 
(pid$1::SGetMsg:entry), save it in a thread-local variable, and then 
reference the thread-local variable in the return probe instead of the 
built-in variable arg3.  arg3 only contains a copy of your function 
argument for the duration of the entry probe clause.

Chip


Madhusudhan Reddy wrote:
> Gonzalo,
> If iam not wrong, input arguments of the function are arg0,arg1, arg2..... and return arguments are arg1, arg2, arg3.....
>
> 3rd Input argument  of SGetMsg(which is pointer to a pointer) is of my interest so iam trying to print this value using arg3 when the function returns. Anything wrong ?
>
> Below is the prototype of the function for your reference
>
> PUBLIC S16 SGetMsg
> (
> REG1 Region region,        
> REG2 Pool pool,           
> Buffer **mBufPtr        
> )
>
> Thanks,
> Madhusudhan Reddy
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
>   



More information about the dtrace-discuss mailing list