svn commit: r361006 - head/sys/compat/linuxkpi/common/include/linux
Andriy Gapon
avg at FreeBSD.org
Wed May 13 07:47:57 UTC 2020
Author: avg
Date: Wed May 13 07:47:56 2020
New Revision: 361006
URL: https://svnweb.freebsd.org/changeset/base/361006
Log:
linuxkpi: print stack trace in WARN_ON macros
Reviewed by: hselasky, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24779
Modified:
head/sys/compat/linuxkpi/common/include/linux/kernel.h
Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h Wed May 13 06:47:54 2020 (r361005)
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h Wed May 13 07:47:56 2020 (r361006)
@@ -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); \
})
More information about the svn-src-head
mailing list