1*63244Sbostic# @(#)stats 8.1 (Berkeley) 06/10/93 263243Sbostic# 363243Sbostic# disk statistics 463240Sbostic 563240Sbosticdefine dstat 663240Sbostic set $op=(struct sdop *)&($arg0[$arg2]) 763240Sbostic set $i=$arg1 863240Sbostic while ($i) 963240Sbostic printf "$arg3 " 1063240Sbostic printf "%d %d 0x%x 0x%x %d", $op->bp, $op->bufsize, $op->blkno, $op->when.tv_sec, $op->when.tv_usec 1163240Sbostic if ($op->op & 1) 1263240Sbostic printf " READ\n" 1363240Sbostic else 1463240Sbostic printf " WRITE\n" 1563240Sbostic end 1663240Sbostic set $op = $op + 1 1763240Sbostic set $i = $i - 1 1863240Sbostic end 1963240Sbosticend 20