Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2020 07:47:57 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361006 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202005130747.04D7lv67018760@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);						\
 })



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005130747.04D7lv67018760>