1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)dk.h 7.1 (Berkeley) 6/4/86
7: */
8:
9: /*
10: * Instrumentation
11: */
12: #define CPUSTATES 4
13:
14: #define CP_USER 0
15: #define CP_NICE 1
16: #define CP_SYS 2
17: #define CP_IDLE 3
18:
19: #define DK_NDRIVE 10
20:
21: #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR)
22: long cp_time[CPUSTATES]; /* number of ticks spent in each cpu state */
23: int dk_ndrive; /* number of drives being monitored */
24: int dk_busy; /* bit array of drive busy flags */
25: long dk_time[DK_NDRIVE]; /* ticks spent with drive busy */
26: long dk_seek[DK_NDRIVE]; /* number of seeks */
27: long dk_xfer[DK_NDRIVE]; /* number of transfers */
28: long dk_wds[DK_NDRIVE]; /* number of clicks transfered */
29: long dk_wps[DK_NDRIVE]; /* words per second */
30: char *dk_name[DK_NDRIVE]; /* names of monitored drives */
31: int dk_unit[DK_NDRIVE]; /* unit numbers of monitored drives */
32: int dk_n; /* number of dk numbers assigned so far */
33:
34: long tk_nin; /* number of tty characters input */
35: long tk_nout; /* number of tty characters output */
36: #endif
Defined variables
dk_busy
defined in line
24; used 31 times
- in /usr/src/sys/pdp/ram.c line
119,
146
- in /usr/src/sys/pdpuba/br.c line
259,
322
- in /usr/src/sys/pdpuba/hk.c line
376,
441,
544,
567
- in /usr/src/sys/pdpuba/ra.c line
781,
1124
- in /usr/src/sys/pdpuba/rk.c line
140,
156
- in /usr/src/sys/pdpuba/rl.c line
423,
501,
535
- in /usr/src/sys/pdpuba/si.c line
178,
224,
316,
338
- in /usr/src/sys/pdpuba/xp.c line
453,
541,
656,
695
- in /usr/src/sys/sys/kern_clock.c line
200
- in /usr/src/ucb/PORT/systat/iostat.c line
58,
101
- in /usr/src/ucb/PORT/systat/vmstat.c line
107,
627
- in /usr/src/usr.bin/iostat.c line
59,
178(2)
dk_n
defined in line
32; used 6 times
dk_ndrive
defined in line
23; used 95 times
- in /usr/src/ucb/PORT/systat/disks.c line
47-57(8),
90,
201,
210
- in /usr/src/ucb/PORT/systat/iostat.c line
83-86(3),
103-109(4),
145,
160,
185,
204,
221,
234
- in /usr/src/ucb/PORT/systat/vmstat.c line
172-177(5),
287,
316,
485,
629-635(4),
666-669(4)
- in /usr/src/ucb/vmstat.c line
233-246(11),
272,
280,
290,
310,
356,
406,
473,
595,
669-671(2)
- in /usr/src/usr.bin/iostat.c line
103-122(19),
131-132(2),
147,
155,
165,
180-186(4),
193,
210,
229-234(2),
284-286(2)
dk_seek
defined in line
26; used 33 times
- in /usr/src/sys/pdpuba/br.c line
261
- in /usr/src/sys/pdpuba/hk.c line
442
- in /usr/src/sys/pdpuba/rk.c line
141
- in /usr/src/sys/pdpuba/rl.c line
536
- in /usr/src/sys/pdpuba/si.c line
225,
317
- in /usr/src/sys/pdpuba/xp.c line
542,
658
- in /usr/src/ucb/PORT/systat/iostat.c line
62,
89,
109,
206,
268(2),
277(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line
105,
180,
317,
635,
663-668(3),
688-692(3)
- in /usr/src/usr.bin/iostat.c line
63,
118-119(2),
186,
197,
262(2)
dk_time
defined in line
25; used 20 times
- in /usr/src/sys/sys/kern_clock.c line
201
- in /usr/src/ucb/PORT/systat/iostat.c line
60,
87,
103,
206,
256
- in /usr/src/ucb/PORT/systat/vmstat.c line
103,
178,
317,
629,
663-666(3),
679
- in /usr/src/usr.bin/iostat.c line
61,
114-115(2),
180,
197,
250
dk_wds
defined in line
28; used 27 times
- in /usr/src/sys/pdp/ram.c line
81
- in /usr/src/sys/pdpuba/br.c line
262
- in /usr/src/sys/pdpuba/hk.c line
546
- in /usr/src/sys/pdpuba/ra.c line
783
- in /usr/src/sys/pdpuba/rk.c line
142
- in /usr/src/sys/pdpuba/rl.c line
503
- in /usr/src/sys/pdpuba/si.c line
318
- in /usr/src/sys/pdpuba/xp.c line
659
- in /usr/src/ucb/PORT/systat/iostat.c line
61,
88,
107,
206,
258
- in /usr/src/ucb/PORT/systat/vmstat.c line
104,
179,
317,
633,
663-667(3),
681
- in /usr/src/usr.bin/iostat.c line
62,
116-117(2),
184,
197,
252
dk_xfer
defined in line
27; used 26 times
- in /usr/src/sys/pdp/ram.c line
80
- in /usr/src/sys/pdpuba/br.c line
260
- in /usr/src/sys/pdpuba/hk.c line
545
- in /usr/src/sys/pdpuba/ra.c line
782
- in /usr/src/sys/pdpuba/rl.c line
502
- in /usr/src/sys/pdpuba/xp.c line
657
- in /usr/src/ucb/PORT/systat/iostat.c line
63,
90,
105,
206,
267,
274
- in /usr/src/ucb/PORT/systat/vmstat.c line
106,
181,
317,
631,
664-669(3),
689
- in /usr/src/usr.bin/iostat.c line
64,
120-121(2),
182,
197,
260
tk_nin
defined in line
34; used 13 times
Defined macros
CPUSTATES
defined in line
12; used 23 times
- in line 22
- in /usr/src/ucb/PORT/systat/iostat.c line
59,
209,
217,
291
- in /usr/src/ucb/PORT/systat/pigs.c line
45,
195,
228-233(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line
98,
306-307(2),
321,
366,
550
- in /usr/src/ucb/vmstat.c line
119,
361,
419,
609
- in /usr/src/usr.bin/iostat.c line
60,
202,
213,
271
Usage of this include