design: function-exit probes
Frank Ch. Eigler
fche@redhat.com
Sat Feb 12 02:29:00 GMT 2005
Hi -
On Mon, Feb 14, 2005 at 09:01:38AM -0800, Jim Keniston wrote:
> Here's my design for function-exit probes [...]
Looks really good.
One tricky issue will be the setting of the pt_regs at the return
handler. Ideally, pt_regs should contain state that corresponds to
a hypothetical breakpoint in one of two points: (a) at the actual
return instruction in the callee; or (b) the instruction after the
call in the caller. That way, accessing local variables in one or
the other scope would be possible.
In the case of the trampoline breakpoint, at least the PC value
will point elsewhere. If the SP/FP registers are as they would
be in one or the other scenario, that should be good enough.
- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20050212/8721769f/attachment.sig>
More information about the Systemtap
mailing list