Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2020 12:10:16 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r361375 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202005221210.04MCAGXw034520@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri May 22 12:10:16 2020
New Revision: 361375
URL: https://svnweb.freebsd.org/changeset/base/361375

Log:
  MFC r361006: linuxkpi: print stack trace in WARN_ON macros

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h	Fri May 22 12:08:31 2020	(r361374)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h	Fri May 22 12:10:16 2020	(r361375)
@@ -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?202005221210.04MCAGXw034520>