]> git.saurik.com Git - apple/xnu.git/blame - osfmk/ddb/db_print.h
xnu-344.21.73.tar.gz
[apple/xnu.git] / osfmk / ddb / db_print.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
d7e50217
A
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
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
13 * file.
14 *
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
d7e50217
A
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.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * @OSF_COPYRIGHT@
27 */
28/*
29 * HISTORY
30 *
31 * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez
32 * Import of Mac OS X kernel (~semeria)
33 *
34 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
35 * Import of OSF Mach kernel (~mburg)
36 *
37 * Revision 1.1.31.1 1997/03/27 18:46:44 barbou
38 * ri-osc CR1566: Add db_show_one_thread() prototype. [dwm]
39 * [1995/08/28 15:47:07 bolinger]
40 * [97/02/25 barbou]
41 *
42 * Revision 1.1.16.6 1995/02/23 21:43:39 alanl
43 * Merge with DIPC2_SHARED.
44 * [1995/01/05 13:30:16 alanl]
45 *
46 * Revision 1.1.21.2 1994/12/09 22:11:02 dwm
47 * mk6 CR801 - merge up from nmk18b4 to nmk18b7
48 * * Rev 1.1.16.4 1994/10/11 16:36:02 emcmanus
49 * Added db_show_shuttle() and db_show_runq() prototypes.
50 * [1994/12/09 20:36:53 dwm]
51 *
52 * Revision 1.1.21.1 1994/11/10 06:06:47 dwm
53 * mk6 CR764 - s/spinlock/simple_lock/ (name change only)
54 * [1994/11/10 05:24:14 dwm]
55 *
56 * Revision 1.1.16.3 1994/09/23 01:21:01 ezf
57 * change marker to not FREE
58 * [1994/09/22 21:10:46 ezf]
59 *
60 * Revision 1.1.16.2 1994/09/16 15:30:07 emcmanus
61 * Add prototype for db_show_subsystem.
62 * [1994/09/16 15:29:05 emcmanus]
63 *
64 * Revision 1.1.16.1 1994/06/11 21:12:10 bolinger
65 * Merge up to NMK17.2.
66 * [1994/06/11 20:04:06 bolinger]
67 *
68 * Revision 1.1.18.2 1994/12/06 19:43:09 alanl
69 * Intel merge, Oct 94 code drop.
70 * Added prototypes for db_show_{one,all}_task_vm
71 * [94/11/28 mmp]
72 *
73 * Revision 1.1.18.1 1994/08/05 19:35:57 mmp
74 * Remove duplicate prototype for db_show_port_id.
75 * [1994/08/05 19:31:44 mmp]
76 *
77 * Revision 1.1.10.3 1994/04/15 18:41:54 paire
78 * Changed db_task_from_space prototype.
79 * [94/03/31 paire]
80 *
81 * Revision 1.1.10.2 1994/03/07 16:37:54 paire
82 * Added ANSI prototype for db_port_kmsg_count routine.
83 * [94/02/15 paire]
84 *
85 * Revision 1.1.10.1 1994/02/08 10:58:27 bernadat
86 * Added db_show_one_space
87 * db_show_all_spaces
88 * db_sys
89 * prototypes
90 * [94/02/07 bernadat]
91 *
92 * Revision 1.1.2.3 1993/09/17 21:34:40 robert
93 * change marker to OSF_FREE_COPYRIGHT
94 * [1993/09/17 21:27:24 robert]
95 *
96 * Revision 1.1.2.2 1993/07/27 18:28:01 elliston
97 * Add ANSI prototypes. CR #9523.
98 * [1993/07/27 18:12:43 elliston]
99 *
100 * $EndLog$
101 */
102
103#ifndef _DDB_DB_PRINT_H_
104#define _DDB_DB_PRINT_H_
105
106#include <mach/boolean.h>
107#include <machine/db_machdep.h>
108
109/* Prototypes for functions exported by this module.
110 */
111void db_show_regs(
112 db_expr_t addr,
113 boolean_t have_addr,
114 db_expr_t count,
115 char *modif);
116
117void db_show_all_acts(
118 db_expr_t addr,
119 boolean_t have_addr,
120 db_expr_t count,
121 char * modif);
122
123void db_show_one_act(
124 db_expr_t addr,
125 boolean_t have_addr,
126 db_expr_t count,
127 char * modif);
128
129void db_show_one_thread(
130 db_expr_t addr,
131 boolean_t have_addr,
132 db_expr_t count,
133 char * modif);
134
135void db_show_one_task(
136 db_expr_t addr,
137 boolean_t have_addr,
138 db_expr_t count,
139 char * modif);
140
141void db_show_shuttle(
142 db_expr_t addr,
143 boolean_t have_addr,
144 db_expr_t count,
145 char * modif);
146
147void db_show_port_id(
148 db_expr_t addr,
149 boolean_t have_addr,
150 db_expr_t count,
151 char * modif);
152
153void db_show_one_task_vm(
154 db_expr_t addr,
155 boolean_t have_addr,
156 db_expr_t count,
157 char *modif);
158
159void db_show_all_task_vm(
160 db_expr_t addr,
161 boolean_t have_addr,
162 db_expr_t count,
163 char *modif);
164
165void db_show_one_space(
166 db_expr_t addr,
167 boolean_t have_addr,
168 db_expr_t count,
169 char * modif);
170
171void db_show_all_spaces(
172 db_expr_t addr,
173 boolean_t have_addr,
174 db_expr_t count,
175 char * modif);
176
177void db_sys(void);
178
179int db_port_kmsg_count(
180 ipc_port_t port);
181
182db_addr_t db_task_from_space(
183 ipc_space_t space,
184 int *task_id);
185
186void db_show_one_simple_lock(
187 db_expr_t addr,
188 boolean_t have_addr,
189 db_expr_t count,
190 char * modif);
191
192void db_show_one_mutex(
193 db_expr_t addr,
194 boolean_t have_addr,
195 db_expr_t count,
196 char * modif);
197
1c79356b
A
198void db_show_runq(
199 db_expr_t addr,
200 boolean_t have_addr,
201 db_expr_t count,
202 char * modif);
203
204#endif /* !_DDB_DB_PRINT_H_ */