2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * Mach Operating System
27 * Copyright (c) 1989 Carnegie-Mellon University
28 * Copyright (c) 1988 Carnegie-Mellon University
29 * Copyright (c) 1987 Carnegie-Mellon University
30 * All rights reserved. The CMU software License Agreement specifies
31 * the terms and conditions for use and redistribution.
35 * Definitions for the logstat module.
42 #include <sys/types.h>
45 * Definition for a log record.
58 typedef log_rec_t
*log_ptr_t
;
64 int datagram_pkts_sent
;
65 int datagram_pkts_rcvd
;
66 int srr_requests_sent
;
68 int srr_requests_rcvd
;
74 int srr_cfailures_sent
;
75 int srr_cfailures_rcvd
;
76 int deltat_dpkts_sent
;
78 int deltat_dpkts_rcvd
;
80 int deltat_oldpkts_rcvd
;
81 int deltat_oospkts_rcvd
;
82 int deltat_retries_sent
;
83 int deltat_retries_rcvd
;
84 int deltat_cfailures_sent
;
85 int deltat_cfailures_rcvd
;
86 int deltat_aborts_sent
;
87 int deltat_aborts_rcvd
;
88 int vmtp_requests_sent
;
89 int vmtp_requests_rcvd
;
90 int vmtp_replies_sent
;
91 int vmtp_replies_rcvd
;
94 int ipc_unblocks_sent
;
95 int ipc_unblocks_rcvd
;
100 int nn_requests_sent
;
101 int nn_requests_rcvd
;
103 int po_ro_hints_sent
;
104 int po_ro_hints_rcvd
;
105 int po_token_requests_sent
;
106 int po_token_requests_rcvd
;
107 int po_token_replies_rcvd
;
108 int po_xfer_requests_sent
;
109 int po_xfer_requests_rcvd
;
110 int po_xfer_replies_rcvd
;
113 int ps_requests_sent
;
114 int ps_requests_rcvd
;
116 int ps_auth_requests_sent
;
117 int ps_auth_requests_rcvd
;
118 int ps_auth_replies_rcvd
;
119 int mallocs_or_vm_allocates
;
126 int vmtp_segs_encrypted
;
127 int vmtp_segs_decrypted
;
128 int tcp_requests_sent
;
129 int tcp_replies_sent
;
130 int tcp_requests_rcvd
;
131 int tcp_replies_rcvd
;
139 typedef stat_t
*stat_ptr_t
;
143 * Debugging flags record.
157 typedef debug_t
*debug_ptr_t
;
167 int deltat_max_tries
;
168 int deltat_retry_sec
;
169 int deltat_retry_usec
;
171 int pc_checkup_interval
;
173 int transport_default
;
178 int tcp_conn_opening
;
185 typedef param_t
*param_ptr_t
;
189 * Port statistics record.
196 u_int nport_receiver
;
200 u_int send_rights_sent
;
201 u_int send_rights_rcvd_sender
;
202 u_int send_rights_rcvd_recown
;
203 u_int rcv_rights_xferd
;
204 u_int own_rights_xferd
;
205 u_int all_rights_xferd
;
207 u_int tokens_requested
;
208 u_int xfer_hints_sent
;
209 u_int xfer_hints_rcvd
;
210 } port_stat_t
, *port_stat_ptr_t
;
212 extern port_stat_ptr_t port_stat_cur
;
213 extern port_stat_ptr_t port_stat_end
;
214 extern struct mutex port_stat_lock
;
218 * Types for the mem_list operation.
220 * XXX These must be faked, because we cannot include mem.h here
223 typedef char *mem_class_ptr_t
;
224 typedef char *mem_nam_ptr_t
;
225 typedef int *mem_bucket_ptr_t
;
229 * Definitions for print_level.
231 #define LS_PRINT_NEVER 5
232 #define LS_PRINT_LOG 3
233 #define LS_PRINT_ALWAYS 0
235 #endif /* _LS_DEFS_ */