2 * Copyright (C) 2001 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #include "linux/sched.h"
7 #include "linux/kernel.h"
8 #include "linux/module.h"
10 #include "asm/processor.h"
12 #include "user_util.h"
14 void show_trace(unsigned long * stack
)
20 stack
= (unsigned long*) &stack
;
22 printk("Call Trace: ");
24 while (((long) stack
& (THREAD_SIZE
-1)) != 0) {
26 if (__kernel_text_address(addr
)) {
27 if (i
&& ((i
% 6) == 0))
29 printk("[<%08lx>] ", addr
);
37 * The architecture-independent dump_stack generator
45 EXPORT_SYMBOL(dump_stack
);
47 void show_stack(struct task_struct
*task
, unsigned long *sp
)
53 * Overrides for Emacs so that we follow Linus's tabbing style.
54 * Emacs will notice this stuff at the end of the file and automatically
55 * adjust the settings for this buffer only. This must remain at the end
57 * ---------------------------------------------------------------------------
59 * c-file-style: "linux"