Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say .text]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gabriel Paubert
Date: Monday, July 28, 2008 - 6:52 am

On Sat, Jul 26, 2008 at 10:36:42PM +1000, Benjamin Herrenschmidt wrote:

Yes.

On PPC you can get reliable backtraces (modulo leaf functions, but AFAIR
the frame pointer does not help, only the CFI data) without a frame pointer
since the ABI makes the stack pointer chain easy to follow. The frame pointer
(r31) is only necessary when there are variable size stack allocations, 
alloca() for example, but are they even allowed in the kernel?

	Regards,
	Gabriel
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: BUILD_IRQ say .text to avoid .data.percpu, Hugh Dickins, (Mon Jul 21, 10:41 am)
Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say . ..., Benjamin Herrenschmidt, (Fri Jul 25, 2:46 pm)
Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say . ..., Benjamin Herrenschmidt, (Sat Jul 26, 5:36 am)
Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say . ..., Gabriel Paubert, (Mon Jul 28, 6:52 am)