I am trying to get the call trace of a process by tracing the return
addresses on the stack. To get the correct location of the return address
I need to know whether the kernel is being compiled with frame pointer
because this will affect the offset of return address on the stack.

Regards,
Sushil.

On Sat, 23 Sep 2000, Russell King wrote:

> Sushil writes:
> > #ifdef CONFIG_FRAME_POINTER 
> >     code assuming frame pointer
> > #else
> >     code assuming no frame pointer  
> You want #endif here.
> 
> > Is CONFIG_FRAME_POINTER a part of some external patch?
> 
> I think you've been looking at some of the ARM code.  Yes, we do manipulate
> the CFLAGS (have a look in arch/arm/Makefile) depending on the state of
> CONFIG_FRAME_POINTER.  This is currently an ARM only feature though.
> 
> It would be helpful if you can give some hints about what you're trying to
> do.
>    _____
>   |_____| ------------------------------------------------- ---+---+-
>   |   |         Russell King        [EMAIL PROTECTED]      --- ---
>   | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
>   | +-+-+                                                     --- -+-
>   /   |               THE developer of ARM Linux              |+| /|\
>  /  | | |                                                     ---  |
>     +-+-+ -------------------------------------------------  /\\\  |
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to