|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Copyright (c) 1995, 1994, 1993, 1992, 1991, 1990
27: * Open Software Foundation, Inc.
28: *
29: * Permission to use, copy, modify, and distribute this software and
30: * its documentation for any purpose and without fee is hereby granted,
31: * provided that the above copyright notice appears in all copies and
32: * that both the copyright notice and this permission notice appear in
33: * supporting documentation, and that the name of ("OSF") or Open Software
34: * Foundation not be used in advertising or publicity pertaining to
35: * distribution of the software without specific, written prior permission.
36: *
37: * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
38: * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
39: * FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL OSF BE LIABLE FOR ANY
40: * SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
41: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
42: * ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING
43: * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
44: */
45: /*
46: * OSF Research Institute MK6.1 (unencumbered) 1/31/1995
47: */
48: /*
49: * Mach Operating System
50: * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
51: * All Rights Reserved.
52: *
53: * Permission to use, copy, modify and distribute this software and its
54: * documentation is hereby granted, provided that both the copyright
55: * notice and this permission notice appear in all copies of the
56: * software, derivative works or modified versions, and any portions
57: * thereof, and that both notices appear in supporting documentation.
58: *
59: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
60: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
61: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
62: *
63: * Carnegie Mellon requests users of this software to return to
64: *
65: * Software Distribution Coordinator or [email protected]
66: * School of Computer Science
67: * Carnegie Mellon University
68: * Pittsburgh PA 15213-3890
69: *
70: * any improvements or extensions that they make and grant Carnegie Mellon
71: * the rights to redistribute these changes.
72: */
73: /*
74: * Matchmaker definitions file for Mach kernel debugging interface.
75: */
76:
77: subsystem
78: #if KERNEL_SERVER
79: KernelServer
80: #endif KERNEL_SERVER
81: mach_debug 3000;
82:
83: #include <mach/std_types.defs>
84: #include <mach/mach_types.defs>
85: #include <mach_debug/mach_debug_types.defs>
86:
87: skip; /* host_ipc_statistics */
88: skip; /* host_ipc_statistics_reset */
89: skip; /* host_callout_info */
90: skip; /* host_callout_statistics */
91: skip; /* host_callout_statistics_reset */
92:
93: /*
94: * Returns information about the memory allocation zones.
95: */
96: routine host_zone_info(
97: host : host_t;
98: out names : zone_name_array_t,
99: CountInOut, Dealloc;
100: out info : zone_info_array_t,
101: CountInOut, Dealloc);
102:
103: routine host_zone_free_space_info(
104: host : host_t;
105: out info : zone_free_space_info_array_t,
106: CountInOut, Dealloc;
107: out chunks : zone_free_space_chunk_array_t,
108: CountInOut, Dealloc);
109:
110: /*
111: * Returns the exact number of extant send rights
112: * for the given receive right.
113: */
114:
115: routine mach_port_get_srights(
116: task : ipc_space_t;
117: name : mach_port_name_t;
118: out srights : mach_port_rights_t);
119:
120: /*
121: * Returns information about the global reverse hash table.
122: */
123:
124: routine host_ipc_hash_info(
125: host : host_t;
126: out info : hash_info_bucket_array_t,
127: CountInOut, Dealloc);
128:
129: /*
130: * Returns information about the marequest hash table.
131: */
132:
133: routine host_ipc_marequest_info(
134: host : host_t;
135: out max_requests : unsigned;
136: out info : hash_info_bucket_array_t,
137: CountInOut, Dealloc);
138:
139: /*
140: * Returns information about an IPC space.
141: */
142:
143: routine mach_port_space_info(
144: task : ipc_space_t;
145: out info : ipc_info_space_t;
146: out table_info : ipc_info_name_array_t,
147: CountInOut, Dealloc;
148: out tree_info : ipc_info_tree_name_array_t,
149: CountInOut, Dealloc);
150:
151: /*
152: * Returns information about the dead-name requests
153: * registered with the named receive right.
154: */
155:
156: routine mach_port_dnrequest_info(
157: task : ipc_space_t;
158: name : mach_port_name_t;
159: out total : unsigned; /* total size of table */
160: out used : unsigned); /* amount used */
161:
162: skip; /* mach_vm_region_info */
163: skip; /* vm_mapped_pages_info */
164:
165: /*
166: * Returns stack usage information:
167: * reserved Amount of stack space reserved for pcb.
168: * total Number of stacks.
169: * space Total VM space for stacks.
170: * resident Resident VM space for stacks.
171: * maxusage Maximum amount of stack used.
172: * maxstack Address in the kernel of the largest stack.
173: */
174:
175: routine host_stack_usage(
176: host : host_t;
177: out reserved : vm_size_t;
178: out total : unsigned;
179: out space : vm_size_t;
180: out resident : vm_size_t;
181: out maxusage : vm_size_t;
182: out maxstack : vm_offset_t);
183:
184: routine processor_set_stack_usage(
185: pset : processor_set_name_t;
186: out total : unsigned;
187: out space : vm_size_t;
188: out resident : vm_size_t;
189: out maxusage : vm_size_t;
190: out maxstack : vm_offset_t);
191:
192: skip; /* host_virtual_physical_table_info */
193: skip; /* host_load_symbol_table */
194:
195: skip; /* mach_port_kernel_object */
196:
197: skip; /* mach_vm_region_info */
198: skip; /* mach_vm_object_info */
199: skip; /* mach_vm_object_pages */
200:
201: /* Returns the machine dependent host information :
202: * page_size number of bytes per page
203: * dcache_block_size number of bytes in data cache block
204: * dcache_size number of bytes in data cache
205: * icache_size number of bytes in instruction cache
206: * caches_unified boolean
207: * processor_version contents of PVR on ppc
208: * cpu_clock_rate_hz CPU clock frequency
209: * bus_clock_rate_hz Bus clock frequency
210: * dec_clock_rate_hz Decrementer frequency (only on ppc)
211: */
212:
213: routine host_machine_info(
214: host : host_t;
215: out info : host_machine_info_t);
216:
217: routine vm_reallocate(
218: target_task : vm_task_t;
219: address : vm_address_t;
220: size : vm_size_t);
221:
222: routine host_zone_collect(
223: host_priv : host_priv_t;
224: collect_zones : boolean_t;
225: reclaim_pages : boolean_t);
226:
227: routine host_vm_region(
228: host : host_t;
229: inout address : vm_address_t;
230: out size : vm_size_t;
231: out protection : vm_prot_t;
232: out max_protection : vm_prot_t;
233: out inheritance : vm_inherit_t;
234: out is_pageable : boolean_t;
235: #ifdef MACH_IPC_FLAVOR
236: /* avoid out-translation of the argument */
237: out object_name : mach_port_name_t;
238: #else /* MACH_IPC_FLAVOR */
239: out object_name : port_name_t;
240: #endif /* MACH_IPC_FLAVOR */
241: out offset : vm_offset_t);
242:
243: routine enable_bluebox(
244: host : host_t;
245: flag : unsigned);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.