date and time created 93/06/10 23:43:40 by bostic
[unix-history] / usr / src / sys / scripts / stats
CommitLineData
13ea0b87
KB
1
2define dstat
3 set $op=(struct sdop *)&($arg0[$arg2])
4 set $i=$arg1
5 while ($i)
6 printf "$arg3 "
7 printf "%d %d 0x%x 0x%x %d", $op->bp, $op->bufsize, $op->blkno, $op->when.tv_sec, $op->when.tv_usec
8 if ($op->op & 1)
9 printf " READ\n"
10 else
11 printf " WRITE\n"
12 end
13 set $op = $op + 1
14 set $i = $i - 1
15 end
16end