Home | History | Annotate | Line # | Download | only in gdbscripts
      1 #	$NetBSD: vdump,v 1.7 2020/04/14 00:08:07 christos Exp $
      2 
      3 #	@(#)vdump	8.1 (Berkeley) 6/10/93
      4 #
      5 
      6 define dumpvnodes
      7 
      8 	set $vp = (struct vnode *)$arg0
      9 	set $vi = (struct vnode_impl *)$arg0
     10 	while ($vp)
     11 		printf "vnode=0x%x lruf=0x%x mountf=0x%x usecount=%d\n", $vp, $vi->vi_lrulist.tqe_next, $vi->vi_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
     12 		set $vi = (struct vnode_impl *)$vi->vi_lrulist.tqe_next
     13 		set $vp = (struct vnode *)$vi
     14 	end
     15 end
     16 
     17 document dumpvnodes
     18 dump the vnode list
     19 end
     20