This is the mail archive of the systemtap@sourceware.org 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: stack_used() not accurate?


Jim Keniston <jkenisto@us.ibm.com> writes:

> [...]  But keep in mind that on i386, when your breakpoint trap
> happens in kernel code, esp and ss aren't saved on the stack.  So
> regs->esp and regs->ss contain the top of the pre-trap stack, and
> the pre-trap stack pointer is &regs->esp, not regs->esp.

We should hide away this peculiarity from tapsets / the runtime.

- FChE


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