[BACK]Return to stats CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / gdbscripts

File: [cvs.NetBSD.org] / src / sys / gdbscripts / Attic / stats (download)

Revision 1.3, Sat Feb 26 22:58:55 2005 UTC (15 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.2: +2 -2 lines

nuke trailing whitespace

#	$NetBSD: stats,v 1.3 2005/02/26 22:58:55 perry Exp $

#	@(#)stats	8.1 (Berkeley) 6/10/93
#
# disk statistics

define dstat
	set $op=(struct sdop *)&($arg0[$arg2])
	set $i=$arg1
	while ($i)
		printf "$arg3 "
		printf "%d %d 0x%x 0x%x %d", $op->bp, $op->bufsize, $op->blkno, $op->when.tv_sec, $op->when.tv_usec
		if ($op->op & 1)
			printf " READ\n"
		else
			printf " WRITE\n"
		end
		set $op = $op + 1
		set $i = $i - 1
	end
end