Re: -finstrument-functions and program startup
Re: -finstrument-functions and program startup
- Subject: Re: -finstrument-functions and program startup
- From: Benjamin Stiglitz <email@hidden>
- Date: Thu, 29 Jan 2009 16:48:54 -0500
- Mail-followup-to: email@hidden
> How is this instrumentation done? I guess the text segment is modified
> in RAM when the pid provider is attached to the process?
Yes, when a probe is enabled a small thunk is dropped in that calls out
to the DTrace pieces in the kernel and logs the event. USDT probes work
similarly, but insert a no-op in the instruction stream since there’s no
function/callsite to thunk on.
-Ben
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden