x86: improve the 32 bit Frame Pointer backtracer to also use the traditional backtrace
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)
commite9d4efddbec3d852d435b370b9c40ff7ac24afe6
tree5cfb9de18cb756cdde51a529c6aabbfaae3a13c0
parentbc850d6b374fffd08336996f4b4d3bbd6bf427f6
x86: improve the 32 bit Frame Pointer backtracer to also use the traditional backtrace

The 32 bit Frame Pointer backtracer code checks if the EBP is valid
to do a backtrace; however currently on a failure it just gives up
and prints nothing. That's not very nice; we can do better and still
print a decent backtrace.

This patch changes the backtracer to use the regular backtracing algorithm
at the same time as the EBP backtracer; the EBP backtracer is basically
used to figure out which part of the backtrace are reliable vs those
which are likely to be noise.

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_32.c