This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: return probes and stack traces


> I'm not sure what you have in mind.  When the return-probe handler is
> called, the return address has already been popped off the stack by the
> return instruction.  

In that case the "real return address" being talked about is the "real PC"
at that point, and regs->eip (for x86) should be updated before the handler
is run rather than after.  What I have in mind is simply the principle that
the observers get shown "magically suspended" machine state rather than
machine state that includes implementation artifacts.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]