]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: use the stack frames to get exact stack-traces for CONFIG_FRAMEPOINTER on x86-64
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 30 Jan 2008 12:33:07 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:07 +0000 (13:33 +0100)
commit80b51f310b6f55006a265d087b8f48744e65663d
tree49826076129eaa61db1bbbc259382a297c77491b
parente4a94568b18c5d7d72741ebde5736d77d235743c
x86: use the stack frames to get exact stack-traces for CONFIG_FRAMEPOINTER on x86-64

x86 32 bit already has this feature: This patch uses the stack frames with
frame pointer into an exact stack trace, by following the frame pointer.
This only affects kernels built with the CONFIG_FRAME_POINTER config option
enabled, and greatly reduces the amount of noise in oopses.

This code uses the traditional method of doing backtraces, but if it
finds a valid frame pointer chain, will use that to show which parts
of the backtrace are reliable and which parts are not

Due to the fragility and importance of the backtrace code, this needs to
be well reviewed and well tested before merging into mainlne.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/traps_64.c