linuxkpi: print stack trace in WARN_ON macros

Reviewed by:	hselasky, kib
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D24779
This commit is contained in:
Andriy Gapon 2020-05-13 07:47:56 +00:00
parent 5c96a7b2a5
commit a164a32b4d

View File

@ -107,6 +107,7 @@
if (__ret) { \
printf("WARNING %s failed at %s:%d\n", \
__stringify(cond), __FILE__, __LINE__); \
linux_dump_stack(); \
} \
unlikely(__ret); \
})
@ -120,6 +121,7 @@
__warn_on_once = 1; \
printf("WARNING %s failed at %s:%d\n", \
__stringify(cond), __FILE__, __LINE__); \
linux_dump_stack(); \
} \
unlikely(__ret); \
})