diff options
Diffstat (limited to 'lib/dump_stack.c')
-rw-r--r-- | lib/dump_stack.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/dump_stack.c b/lib/dump_stack.c index 42f4f55c9458..53bad099ebd6 100644 --- a/lib/dump_stack.c +++ b/lib/dump_stack.c | |||
@@ -5,11 +5,16 @@ | |||
5 | 5 | ||
6 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
7 | #include <linux/export.h> | 7 | #include <linux/export.h> |
8 | #include <linux/sched.h> | ||
8 | 9 | ||
10 | /** | ||
11 | * dump_stack - dump the current task information and its stack trace | ||
12 | * | ||
13 | * Architectures can override this implementation by implementing its own. | ||
14 | */ | ||
9 | void dump_stack(void) | 15 | void dump_stack(void) |
10 | { | 16 | { |
11 | printk(KERN_NOTICE | 17 | dump_stack_print_info(KERN_DEFAULT); |
12 | "This architecture does not implement dump_stack()\n"); | 18 | show_stack(NULL, NULL); |
13 | } | 19 | } |
14 | |||
15 | EXPORT_SYMBOL(dump_stack); | 20 | EXPORT_SYMBOL(dump_stack); |