stack_used() not accurate?

Masami Hiramatsu mhiramat@redhat.com
Wed Jun 4 21:14:00 GMT 2008


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 &regs->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



More information about the Systemtap mailing list