diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 5f9586572a3e..5396f54bc47c 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -727,6 +727,8 @@ MALLOC_DECLARE(M_ZOMBIE); } while (0) #define _STOPEVENT(p, e, v) do { \ PROC_LOCK_ASSERT(p, MA_OWNED); \ + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, &p->p_mtx.mtx_object, \ + "checking stopevent %d", (e)); \ if ((p)->p_stops & (e)) \ stopevent((p), (e), (v)); \ } while (0)