summaryrefslogtreecommitdiff
path: root/sys/gdbscripts
diff options
context:
space:
mode:
authorhannken <hannken@NetBSD.org>2016-12-14 15:48:54 +0000
committerhannken <hannken@NetBSD.org>2016-12-14 15:48:54 +0000
commitcf15f8b0269d8e2b36fc94a06c58aceeb3974c5f (patch)
tree6551a1b56c555c4a4bb1b45aeac1981a306117da /sys/gdbscripts
parent7b4242abe19e01242da1b4a1d2b3630d25ee7260 (diff)
Move vnode members "v_freelisthd" and "v_freelist" from "struct vnode"
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist". No functional change intended. Welcome to 7.99.48
Diffstat (limited to 'sys/gdbscripts')
-rw-r--r--sys/gdbscripts/vchain7
-rw-r--r--sys/gdbscripts/vdump10
2 files changed, 10 insertions, 7 deletions
diff --git a/sys/gdbscripts/vchain b/sys/gdbscripts/vchain
index 0596b21294c..57c68096ec5 100644
--- a/sys/gdbscripts/vchain
+++ b/sys/gdbscripts/vchain
@@ -1,4 +1,4 @@
-# $NetBSD: vchain,v 1.7 2013/11/23 16:15:25 riz Exp $
+# $NetBSD: vchain,v 1.8 2016/12/14 15:48:55 hannken Exp $
# @(#)vchain 8.1 (Berkeley) 6/10/93
#
@@ -7,9 +7,10 @@ define vchain
set $num = 0
set $vp=(struct vnode *)$arg0
+ set $vi=(struct vnode_impl *)$arg0
while ($vp)
- printf "vp: 0x%lx freelist_next: 0x%lx usecount: %d flags: i:0x%x v:0x%x u:0x%x\n",\
- $vp, $vp->v_freelist.tqe_next, $vp->v_uobj.uo_refs, \
+ printf "vp: 0x%lx lrulist_next: 0x%lx usecount: %d flags: i:0x%x v:0x%x u:0x%x\n",\
+ $vp, $vi->vi_lrulist.tqe_next, $vp->v_uobj.uo_refs, \
$vp->v_iflag, $vp->v_vflag, $vp->v_uflag
set $num++
set $vp = $vp->v_mntvnodes.tqe_next
diff --git a/sys/gdbscripts/vdump b/sys/gdbscripts/vdump
index 85c8de3e08c..9fffaf800e0 100644
--- a/sys/gdbscripts/vdump
+++ b/sys/gdbscripts/vdump
@@ -1,4 +1,4 @@
-# $NetBSD: vdump,v 1.5 2009/11/18 18:02:00 eeh Exp $
+# $NetBSD: vdump,v 1.6 2016/12/14 15:48:55 hannken Exp $
# @(#)vdump 8.1 (Berkeley) 6/10/93
#
@@ -6,12 +6,14 @@
define dumpvnodes
set $vp = (struct vnode *)$arg0
+ set $vi = (struct vnode_impl *)$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
+ printf "vnode=0x%x lruf=0x%x mountf=0x%x usecount=%d\n", $vp, $vi->vi_lrulist.tqe_next, $vp->v_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
+ set $vi = (struct vnode_impl *)$vi->vi_lrulist.tqe_next
+ set $vp = (struct vnode *)$vi
end
end
document dumpvnodes
dump the vnode list
-end \ No newline at end of file
+end