This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: stack_used() not accurate?
Roland McGrath wrote:
>>> Another reasonable interpretation is "the stack-pointer member
>>> of pt_regs."
>> If they knew the member per se, they could just use it.
>
> The issue is version skew on x86 where it's esp/rsp/sp.
Even though, why does someone want to access regs->esp itself
instead of ®s->esp?
IMHO, if users always access it with '&' on specific arches
and always do it without '&' on other arches, it is helpful that
the macro hides those difference.
Thanks,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com