xref: /netbsd-src/sys/gdbscripts/vdump (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1#	$NetBSD: vdump,v 1.5 2009/11/18 18:02:00 eeh Exp $
2
3#	@(#)vdump	8.1 (Berkeley) 6/10/93
4#
5
6define dumpvnodes
7
8	set $vp = (struct vnode *)$arg0
9	while ($vp)
10		printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freelist.tqe_next, $vp->v_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
11		set $vp = (struct vnode *)$vp->v_freelist.tqe_next
12	end
13end
14
15document dumpvnodes
16dump the vnode list
17end