Re: [PATCH v2] tracing: Function stack size and its name mismatch in arm64
From: Steven Rostedt
Date: Fri Aug 02 2019 - 09:03:26 EST
On Fri, 2 Aug 2019 10:43:03 +0800
Jiping Ma <Jiping.Ma2@xxxxxxxxxxxxx> wrote:
> > *Why* does the frame appear to be off-by-one?
> Because the PC is LR in ARM64 stack actually. Following is ARM64 stack
> layout. Please refer to the figure 3 in
> http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
> ÂÂÂ ÂÂÂ ÂÂÂ LR
> ÂÂÂ ÂÂÂ ÂÂÂ FP
> ÂÂÂÂÂÂÂÂÂÂÂ ......
> ÂÂÂÂÂÂÂÂÂÂÂ LR
> ÂÂÂ ÂÂÂ ÂÂÂ FP
And the LR holds the return address, right? Which would be identical to
x86 and every other arch I know about.
-- Steve