This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
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 ®s->esp, not regs->esp.
We should hide away this peculiarity from tapsets / the runtime.
- FChE