summaryrefslogtreecommitdiff
path: root/sys/gdbscripts/vdump
blob: 85c8de3e08cc0ffa96cb5b317a3a5f1aa6e66cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#	$NetBSD: vdump,v 1.5 2009/11/18 18:02:00 eeh Exp $

#	@(#)vdump	8.1 (Berkeley) 6/10/93
#

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_freelist.tqe_next, $vp->v_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
		set $vp = (struct vnode *)$vp->v_freelist.tqe_next
	end
end

document dumpvnodes
dump the vnode list
end