aboutsummaryrefslogtreecommitdiff
path: root/lib/dump_stack.c
diff options
context:
space:
mode:
authorPeter Zijlstra2020-09-21 12:58:17 +0200
committerPeter Zijlstra2020-11-10 18:38:57 +0100
commita8b62fd0850503cf1e557d7e5a98d3f1f5c25eef (patch)
tree2c9c1cb9d7778ed6f4f4dac5a8f25041fbac1e68 /lib/dump_stack.c
parent23859ae44402f4d935b9ee548135dd1e65e2cbf4 (diff)
stop_machine: Add function and caller debug info
Crashes in stop-machine are hard to connect to the calling code, add a little something to help with that. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Valentin Schneider <valentin.schneider@arm.com> Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com> Link: https://lkml.kernel.org/r/20201023102346.116513635@infradead.org
Diffstat (limited to 'lib/dump_stack.c')
-rw-r--r--lib/dump_stack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dump_stack.c b/lib/dump_stack.c
index a00ee6eedc7c..f5a33b6f773f 100644
--- a/lib/dump_stack.c
+++ b/lib/dump_stack.c
@@ -12,6 +12,7 @@
#include <linux/atomic.h>
#include <linux/kexec.h>
#include <linux/utsname.h>
+#include <linux/stop_machine.h>
static char dump_stack_arch_desc_str[128];
@@ -57,6 +58,7 @@ void dump_stack_print_info(const char *log_lvl)
log_lvl, dump_stack_arch_desc_str);
print_worker_info(log_lvl, current);
+ print_stop_info(log_lvl, current);
}
/**