x86: add save_stack_trace_bp() for tracing from a specific stack frame
authorVegard Nossum <vegard.nossum@gmail.com>
Tue, 20 May 2008 09:15:43 +0000 (11:15 +0200)
committerVegard Nossum <vegard.nossum@gmail.com>
Fri, 12 Jun 2009 21:01:05 +0000 (23:01 +0200)
commitacc6be5405b90c9f0fb0eb8a74ec4d4b7b5bf48f
tree28b6a59cb0085b30d65e672813c35381b3e62490
parent8ebf975608aaebd7feb33d77f07ba21a6380e086
x86: add save_stack_trace_bp() for tracing from a specific stack frame

This will help kmemcheck (and possibly other debugging tools) since we
can now simply pass regs->bp to the stack tracer instead of specifying
the number of stack frames to skip, which is unreliable if gcc decides
to inline functions, etc.

Note that this makes the API incomplete for other architectures, but I
expect that those can be updated lazily, e.g. when they need it.

Cc: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
arch/x86/kernel/stacktrace.c
include/linux/stacktrace.h