blob: 61e75098800ff54dc7d89fdf029adafe64098695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# $NetBSD: stats,v 1.4 2005/12/11 12:24:29 christos 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
|