diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /lib/dump_stack.c | |
Diffstat (limited to 'lib/dump_stack.c')
| -rw-r--r-- | lib/dump_stack.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/dump_stack.c b/lib/dump_stack.c new file mode 100644 index 00000000..53bad099 --- /dev/null +++ b/lib/dump_stack.c @@ -0,0 +1,20 @@ +/* + * Provide a default dump_stack() function for architectures + * which don't implement their own. + */ + +#include <linux/kernel.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) +{ + dump_stack_print_info(KERN_DEFAULT); + show_stack(NULL, NULL); +} +EXPORT_SYMBOL(dump_stack); |
