date and time created 93/06/10 23:43:42 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 11 Jun 1993 14:43:42 +0000 (06:43 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 11 Jun 1993 14:43:42 +0000 (06:43 -0800)
SCCS-vsn: sys/scripts/vdump 7.1

usr/src/sys/scripts/vdump [new file with mode: 0644]

diff --git a/usr/src/sys/scripts/vdump b/usr/src/sys/scripts/vdump
new file mode 100644 (file)
index 0000000..7760b37
--- /dev/null
@@ -0,0 +1,9 @@
+define dumpvnodes
+
+       set $vp = (struct vnode *)$arg0
+       while ($vp)
+               printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freef, $vp->v_mountf, $vp->v_usecount
+               set $vp = (struct vnode *)$vp->v_freef
+       end
+end
+