Article on Sun's DTrace

Eitarou Kamo e-kamo at trio.plala.or.jp
Thu Jul 8 06:40:45 PDT 2004


Hi Julian,

Julian Elischer wrote:

>On Thu, 8 Jul 2004, Steven Smith wrote:
>
>  
>
>>It's also possible to put probes on the return instruction of the
>>function.  I'm not sure how they're actually finding that, though.
>>    
>>
>
>I think the return probe is done by adding a call probe that changes the 
>return address.
>
>  
>
The pointer to function seems to be the key word. "return_p" is
the pointer to function. In case of normal mode return _p points the
dummy address or Null pointer. In case of DTrace mode return_p
points the address of probe. This may be magic of the DTrace.
What all the DTrace do are to know the address of probe. If DTrace
get the pointer of probes "return_p"s via structure or else, lang D
would get the return value of the probe from memory.

-- 

                                            
***********************
	Eitarou Kamo

	Tel. +81 75 7035997
	Fax  +81 75 7035997
	VoIP   050 10585997(domestic only)
e-mail   e-kamo at trio.plala.or.jp

For business:
Feel free to mail me(above), please.

Donation   http://www.PayPal.Com

GPG FingerPrint:
032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 
************************************************************************

                                        





More information about the freebsd-hackers mailing list