Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 2004 22:47:18 +0900
From:      Eitarou Kamo <e-kamo@trio.plala.or.jp>
To:        Julian Elischer <julian@elischer.org>, freebsd-hackers@freebsd.org
Subject:   Re: Article on Sun's DTrace
Message-ID:  <40ED5066.4050704@trio.plala.or.jp>
In-Reply-To: <Pine.BSF.4.21.0407080218460.66234-100000@InterJet.elischer.org>
References:  <Pine.BSF.4.21.0407080218460.66234-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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 
************************************************************************

                                        





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40ED5066.4050704>