]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - lib/dump_stack.c
Linux 3.10.9
[linux-3.10.git] / lib / dump_stack.c
index 53bff4c8452b52ce2d46da276d6dd5519dea0cbf..53bad099ebd6310cf5dfac7dc7ae44fc85df82c8 100644 (file)
@@ -4,12 +4,17 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/export.h>
+#include <linux/sched.h>
 
+/**
+ * dump_stack - dump the current task information and its stack trace
+ *
+ * Architectures can override this implementation by implementing its own.
+ */
 void dump_stack(void)
 {
-       printk(KERN_NOTICE
-               "This architecture does not implement dump_stack()\n");
+       dump_stack_print_info(KERN_DEFAULT);
+       show_stack(NULL, NULL);
 }
-
 EXPORT_SYMBOL(dump_stack);