summaryrefslogtreecommitdiffstats
path: root/sys/tools/vnode_if.awk
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-04-11 15:15:03 +0000
committerjeff <jeff@FreeBSD.org>2005-04-11 15:15:03 +0000
commit0e9da1cbe73372a15cffa977fa3ac7bd538fd741 (patch)
tree2d765f580b47cbc8bd9b00008e91d9b54bf282a3 /sys/tools/vnode_if.awk
parent6cead66aac42fca5aeb7b059a7860ada2ecfd61d (diff)
downloadFreeBSD-src-0e9da1cbe73372a15cffa977fa3ac7bd538fd741.zip
FreeBSD-src-0e9da1cbe73372a15cffa977fa3ac7bd538fd741.tar.gz
- Add the character "E" to the understood lock types. This means
the VOP requires an exclusive lock. Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/tools/vnode_if.awk')
-rw-r--r--sys/tools/vnode_if.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 97cefd9..2d6d1e1 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -78,6 +78,8 @@ function add_debug_code(name, arg, pos, ind)
printc(ind"ASSERT_VOP_LOCKED(" star "a->a_"arg", \""uname"\");");
else if (lockdata[name, arg, pos] == "U")
printc(ind"ASSERT_VOP_UNLOCKED(" star "a->a_"arg", \""uname"\");");
+ else if (lockdata[name, arg, pos] == "E")
+ printc(ind"ASSERT_VOP_ELOCKED(" star "a->a_"arg", \""uname"\");");
else if (0) {
# XXX More checks!
}
OpenPOWER on IntegriCloud