Home | History | Annotate | Line # | Download | only in gdbscripts
vdump revision 1.2.104.2
      1  1.2.104.2  yamt #	$NetBSD: vdump,v 1.2.104.2 2006/12/10 07:18:43 yamt Exp $
      2        1.2   gwr 
      3        1.1   gwr #	@(#)vdump	8.1 (Berkeley) 6/10/93
      4        1.1   gwr #
      5        1.1   gwr # dump the vnode list
      6        1.1   gwr 
      7        1.1   gwr define dumpvnodes
      8        1.1   gwr 
      9        1.1   gwr 	set $vp = (struct vnode *)$arg0
     10        1.1   gwr 	while ($vp)
     11  1.2.104.2  yamt 		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
     12  1.2.104.1  yamt 		set $vp = (struct vnode *)$vp->v_freelist.tqe_next
     13        1.1   gwr 	end
     14        1.1   gwr end
     15