xref: /csrg-svn/sys/scripts/stats (revision 63240)
1*63240Sbostic
2*63240Sbosticdefine dstat
3*63240Sbostic	set $op=(struct sdop *)&($arg0[$arg2])
4*63240Sbostic	set $i=$arg1
5*63240Sbostic	while ($i)
6*63240Sbostic		printf "$arg3 "
7*63240Sbostic		printf "%d %d 0x%x 0x%x %d", $op->bp, $op->bufsize, $op->blkno, $op->when.tv_sec, $op->when.tv_usec
8*63240Sbostic		if ($op->op & 1)
9*63240Sbostic			printf " READ\n"
10*63240Sbostic		else
11*63240Sbostic			printf " WRITE\n"
12*63240Sbostic		end
13*63240Sbostic		set $op = $op + 1
14*63240Sbostic		set $i = $i - 1
15*63240Sbostic	end
16*63240Sbosticend
17