2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This 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 OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Mach Operating System
24 * Copyright (c) 1989 Carnegie-Mellon University
25 * Copyright (c) 1988 Carnegie-Mellon University
26 * Copyright (c) 1987 Carnegie-Mellon University
27 * All rights reserved. The CMU software License Agreement specifies
28 * the terms and conditions for use and redistribution.
32 * Definitions for the logstat module.
39 #include <sys/types.h>
42 * Definition for a log record.
55 typedef log_rec_t
*log_ptr_t
;
61 int datagram_pkts_sent
;
62 int datagram_pkts_rcvd
;
63 int srr_requests_sent
;
65 int srr_requests_rcvd
;
71 int srr_cfailures_sent
;
72 int srr_cfailures_rcvd
;
73 int deltat_dpkts_sent
;
75 int deltat_dpkts_rcvd
;
77 int deltat_oldpkts_rcvd
;
78 int deltat_oospkts_rcvd
;
79 int deltat_retries_sent
;
80 int deltat_retries_rcvd
;
81 int deltat_cfailures_sent
;
82 int deltat_cfailures_rcvd
;
83 int deltat_aborts_sent
;
84 int deltat_aborts_rcvd
;
85 int vmtp_requests_sent
;
86 int vmtp_requests_rcvd
;
87 int vmtp_replies_sent
;
88 int vmtp_replies_rcvd
;
91 int ipc_unblocks_sent
;
92 int ipc_unblocks_rcvd
;
100 int po_ro_hints_sent
;
101 int po_ro_hints_rcvd
;
102 int po_token_requests_sent
;
103 int po_token_requests_rcvd
;
104 int po_token_replies_rcvd
;
105 int po_xfer_requests_sent
;
106 int po_xfer_requests_rcvd
;
107 int po_xfer_replies_rcvd
;
110 int ps_requests_sent
;
111 int ps_requests_rcvd
;
113 int ps_auth_requests_sent
;
114 int ps_auth_requests_rcvd
;
115 int ps_auth_replies_rcvd
;
116 int mallocs_or_vm_allocates
;
123 int vmtp_segs_encrypted
;
124 int vmtp_segs_decrypted
;
125 int tcp_requests_sent
;
126 int tcp_replies_sent
;
127 int tcp_requests_rcvd
;
128 int tcp_replies_rcvd
;
136 typedef stat_t
*stat_ptr_t
;
140 * Debugging flags record.
154 typedef debug_t
*debug_ptr_t
;
164 int deltat_max_tries
;
165 int deltat_retry_sec
;
166 int deltat_retry_usec
;
168 int pc_checkup_interval
;
170 int transport_default
;
175 int tcp_conn_opening
;
182 typedef param_t
*param_ptr_t
;
186 * Port statistics record.
193 u_int nport_receiver
;
197 u_int send_rights_sent
;
198 u_int send_rights_rcvd_sender
;
199 u_int send_rights_rcvd_recown
;
200 u_int rcv_rights_xferd
;
201 u_int own_rights_xferd
;
202 u_int all_rights_xferd
;
204 u_int tokens_requested
;
205 u_int xfer_hints_sent
;
206 u_int xfer_hints_rcvd
;
207 } port_stat_t
, *port_stat_ptr_t
;
209 extern port_stat_ptr_t port_stat_cur
;
210 extern port_stat_ptr_t port_stat_end
;
211 extern struct mutex port_stat_lock
;
215 * Types for the mem_list operation.
217 * XXX These must be faked, because we cannot include mem.h here
220 typedef char *mem_class_ptr_t
;
221 typedef char *mem_nam_ptr_t
;
222 typedef int *mem_bucket_ptr_t
;
226 * Definitions for print_level.
228 #define LS_PRINT_NEVER 5
229 #define LS_PRINT_LOG 3
230 #define LS_PRINT_ALWAYS 0
232 #endif /* _LS_DEFS_ */