Re: Generating a function call trace

From: Brian Gerst (bgerst@didntduck.org)
Date: Fri Nov 30 2001 - 13:20:41 EST


Davide Libenzi wrote:
>
> On Fri, 30 Nov 2001, Simon Turvey wrote:
>
> > Is it possible to arbitrarily generate (in a module say) a function call
> > trace?
>
> gcc has builtin macros to trace back or ( on x86 ) you can simply chain
> through %esp/%ebp

That only works if you compile with frame pointers, which the kernel
turns off for performance reasons (due to register pressure on the x86).

--

Brian Gerst - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:40 EST