Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2015 02:15:17 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277960 - head/sys/sys
Message-ID:  <201501310215.t0V2FH61029566@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Sat Jan 31 02:15:16 2015
New Revision: 277960
URL: https://svnweb.freebsd.org/changeset/base/277960

Log:
  Add a WITNESS_WARN check to STOPEVENT() to match the one in _STOPEVENT().

Modified:
  head/sys/sys/proc.h

Modified: head/sys/sys/proc.h
==============================================================================
--- head/sys/sys/proc.h	Sat Jan 31 02:13:25 2015	(r277959)
+++ head/sys/sys/proc.h	Sat Jan 31 02:15:16 2015	(r277960)
@@ -752,6 +752,8 @@ extern pid_t pid_max;
 
 
 #define	STOPEVENT(p, e, v) do {						\
+	WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,			\
+ 	    "checking stopevent %d", (e));				\
 	if ((p)->p_stops & (e))	{					\
 		PROC_LOCK(p);						\
 		stopevent((p), (e), (v));				\



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