dump_stack.c 455 B

1234567891011121314151617181920
  1. /*
  2. * Provide a default dump_stack() function for architectures
  3. * which don't implement their own.
  4. */
  5. #include <linux/kernel.h>
  6. #include <linux/export.h>
  7. #include <linux/sched.h>
  8. /**
  9. * dump_stack - dump the current task information and its stack trace
  10. *
  11. * Architectures can override this implementation by implementing its own.
  12. */
  13. void dump_stack(void)
  14. {
  15. dump_stack_print_info(KERN_DEFAULT);
  16. show_stack(NULL, NULL);
  17. }
  18. EXPORT_SYMBOL(dump_stack);