2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 * Mach Operating System
25 * Copyright (c) 1989 Carnegie-Mellon University
26 * Copyright (c) 1988 Carnegie-Mellon University
27 * Copyright (c) 1987 Carnegie-Mellon University
28 * All rights reserved. The CMU software License Agreement specifies
29 * the terms and conditions for use and redistribution.
33 * Definitions for the logstat module.
40 #include <sys/types.h>
43 * Definition for a log record.
56 typedef log_rec_t
*log_ptr_t
;
62 int datagram_pkts_sent
;
63 int datagram_pkts_rcvd
;
64 int srr_requests_sent
;
66 int srr_requests_rcvd
;
72 int srr_cfailures_sent
;
73 int srr_cfailures_rcvd
;
74 int deltat_dpkts_sent
;
76 int deltat_dpkts_rcvd
;
78 int deltat_oldpkts_rcvd
;
79 int deltat_oospkts_rcvd
;
80 int deltat_retries_sent
;
81 int deltat_retries_rcvd
;
82 int deltat_cfailures_sent
;
83 int deltat_cfailures_rcvd
;
84 int deltat_aborts_sent
;
85 int deltat_aborts_rcvd
;
86 int vmtp_requests_sent
;
87 int vmtp_requests_rcvd
;
88 int vmtp_replies_sent
;
89 int vmtp_replies_rcvd
;
92 int ipc_unblocks_sent
;
93 int ipc_unblocks_rcvd
;
101 int po_ro_hints_sent
;
102 int po_ro_hints_rcvd
;
103 int po_token_requests_sent
;
104 int po_token_requests_rcvd
;
105 int po_token_replies_rcvd
;
106 int po_xfer_requests_sent
;
107 int po_xfer_requests_rcvd
;
108 int po_xfer_replies_rcvd
;
111 int ps_requests_sent
;
112 int ps_requests_rcvd
;
114 int ps_auth_requests_sent
;
115 int ps_auth_requests_rcvd
;
116 int ps_auth_replies_rcvd
;
117 int mallocs_or_vm_allocates
;
124 int vmtp_segs_encrypted
;
125 int vmtp_segs_decrypted
;
126 int tcp_requests_sent
;
127 int tcp_replies_sent
;
128 int tcp_requests_rcvd
;
129 int tcp_replies_rcvd
;
137 typedef stat_t
*stat_ptr_t
;
141 * Debugging flags record.
155 typedef debug_t
*debug_ptr_t
;
165 int deltat_max_tries
;
166 int deltat_retry_sec
;
167 int deltat_retry_usec
;
169 int pc_checkup_interval
;
171 int transport_default
;
176 int tcp_conn_opening
;
183 typedef param_t
*param_ptr_t
;
187 * Port statistics record.
194 u_int nport_receiver
;
198 u_int send_rights_sent
;
199 u_int send_rights_rcvd_sender
;
200 u_int send_rights_rcvd_recown
;
201 u_int rcv_rights_xferd
;
202 u_int own_rights_xferd
;
203 u_int all_rights_xferd
;
205 u_int tokens_requested
;
206 u_int xfer_hints_sent
;
207 u_int xfer_hints_rcvd
;
208 } port_stat_t
, *port_stat_ptr_t
;
210 extern port_stat_ptr_t port_stat_cur
;
211 extern port_stat_ptr_t port_stat_end
;
212 extern struct mutex port_stat_lock
;
216 * Types for the mem_list operation.
218 * XXX These must be faked, because we cannot include mem.h here
221 typedef char *mem_class_ptr_t
;
222 typedef char *mem_nam_ptr_t
;
223 typedef int *mem_bucket_ptr_t
;
227 * Definitions for print_level.
229 #define LS_PRINT_NEVER 5
230 #define LS_PRINT_LOG 3
231 #define LS_PRINT_ALWAYS 0
233 #endif /* _LS_DEFS_ */