]> git.neil.brown.name Git - history.git/commit
[PATCH] add dump_stack(): cross-arch backtrace
authorAndrew Morton <akpm@digeo.com>
Sun, 15 Sep 2002 15:51:02 +0000 (08:51 -0700)
committerChristoph Hellwig <hch@hera.kernel.org>
Sun, 15 Sep 2002 15:51:02 +0000 (08:51 -0700)
commit5868caf6dc1c08a70b6b83d6fd420ea2625cb408
treeddced02f234e94683751dc4bd950252afb9916f1
parent5045fffee2bc26ae466cba26769be2a989fb0797
[PATCH] add dump_stack(): cross-arch backtrace

From Christoph Hellwig, also present in 2.4.

Create an arch-independent `dump_stack()' function.  So we don't need to do

#ifdef CONFIG_X86
show_stack(0); /* No prototype in scope! */
#endif

any more.

The whole dump_stack() implementation is delegated to the architecture.
If it doesn't provide one, there is a default do-nothing library
function.
arch/alpha/kernel/traps.c
arch/cris/kernel/traps.c
arch/i386/kernel/traps.c
fs/buffer.c
include/linux/kernel.h
kernel/ksyms.c
lib/Makefile
lib/dump_stack.c [new file with mode: 0644]