From 2fc7835d260e2782c1016810b29130ac6cfbf26e Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 21 Aug 2002 06:19:29 +0000 Subject: - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKED - Use the new VI asserts in place of the old mtx_assert checks. - Add the VI asserts to the automated lock checking in the VOP calls. The interlock should not be held across vops with a few exceptions. - Add the vop_(un)lock_{pre,post} functions to assert that interlock is held when LK_INTERLOCK is set. --- sys/tools/vnode_if.awk | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/tools') diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 93a7376..d40bd41 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -66,6 +66,7 @@ function printh(s) {print s > hfile;} function add_debug_code(name, arg, pos) { if (lockdata[name, arg, pos]) { + printh("\tASSERT_VI_UNLOCKED("arg");"); # Add assertions for locking if (lockdata[name, arg, pos] == "L") printh("\tASSERT_VOP_LOCKED("arg", \""uname"\");"); -- cgit v1.1