]>
git.saurik.com Git - apple/system_cmds.git/blob - system_cmds-597.1.1/sar.tproj/sar.h
2 * Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights
5 * This file contains Original Code and/or Modifications of Original Code
6 * as defined in and that are subject to the Apple Public Source License
7 * Version 2.0 (the 'License'). You may not use this file except in
8 * compliance with the License. Please obtain a copy of the License at
9 * http://www.opensource.apple.com/apsl/ and read it before using this
12 * The Original Code and all software distributed under the License are
13 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
17 * Please see the License for the specific language governing rights and
18 * limitations under the License.
21 #include <CoreFoundation/CoreFoundation.h>
22 #include <IOKit/IOKitLib.h>
23 #include <IOKit/storage/IOBlockStorageDriver.h>
24 #include <IOKit/storage/IOMedia.h>
25 #include <IOKit/IOBSD.h>
27 #define MAXDRIVENAME 31 /* largest drive name we allow */
30 struct drivestats_report
36 char name
[MAXDRIVENAME
+1];
43 uint64_t cur_BytesRead
;
44 uint64_t prev_BytesRead
;
45 uint64_t avg_BytesRead
;
51 uint64_t cur_BytesWritten
;
52 uint64_t prev_BytesWritten
;
53 uint64_t avg_BytesWritten
;
55 uint64_t cur_LatentReadTime
;
56 uint64_t prev_LatentReadTime
;
57 uint64_t avg_LatentReadTime
;
59 uint64_t cur_LatentWriteTime
;
60 uint64_t prev_LatentWriteTime
;
61 uint64_t avg_LatentWriteTime
;
63 uint64_t cur_ReadErrors
;
64 uint64_t prev_ReadErrors
;
65 uint64_t avg_ReadErrors
;
67 uint64_t cur_WriteErrors
;
68 uint64_t prev_WriteErrors
;
69 uint64_t avg_WriteErrors
;
71 uint64_t cur_ReadRetries
;
72 uint64_t prev_ReadRetries
;
73 uint64_t avg_ReadRetries
;
75 uint64_t cur_WriteRetries
;
76 uint64_t prev_WriteRetries
;
77 uint64_t avg_WriteRetries
;
79 uint64_t cur_TotalReadTime
;
80 uint64_t prev_TotalReadTime
;
81 uint64_t avg_TotalReadTime
;
83 uint64_t cur_TotalWriteTime
;
84 uint64_t prev_TotalWriteTime
;
85 uint64_t avg_TotalWriteTime
;
88 struct netstats_report
94 char tname_unit
[MAX_TNAME_UNIT_SIZE
+1 ];
96 uint64_t cur_ipackets
;
97 uint64_t prev_ipackets
;
98 uint64_t avg_ipackets
;
100 uint64_t cur_ierrors
;
101 uint64_t prev_ierrors
;
102 uint64_t avg_ierrors
;
104 uint64_t cur_opackets
;
105 uint64_t prev_opackets
;
106 uint64_t avg_opackets
;
108 uint64_t cur_oerrors
;
109 uint64_t prev_oerrors
;
110 uint64_t avg_oerrors
;
112 uint64_t cur_collisions
;
113 uint64_t prev_collisions
;
114 uint64_t avg_collisions
;
117 uint64_t prev_ibytes
;
121 uint64_t prev_obytes
;
124 uint64_t cur_imcasts
;
125 uint64_t prev_imcasts
;
126 uint64_t avg_imcasts
;
128 uint64_t cur_omcasts
;
129 uint64_t prev_omcasts
;
130 uint64_t avg_omcasts
;