]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
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. | |
11 | * | |
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 | |
18 | * under the License. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
25 | /* | |
26 | * HISTORY | |
27 | * | |
28 | * Revision 1.1.1.1 1998/09/22 21:05:35 wsanchez | |
29 | * Import of Mac OS X kernel (~semeria) | |
30 | * | |
31 | * Revision 1.1.1.1 1998/03/07 02:25:54 wsanchez | |
32 | * Import of OSF Mach kernel (~mburg) | |
33 | * | |
34 | * Revision 1.1.13.7 1995/02/24 15:19:11 alanl | |
35 | * Merge with DIPC2_SHARED. | |
36 | * [1995/02/22 20:31:50 alanl] | |
37 | * | |
38 | * Revision 1.1.21.1 1994/11/04 10:06:28 dwm | |
39 | * mk6 CR668 - 1.3b26 merge | |
40 | * remove unused counters | |
41 | * * Revision 1.1.2.4 1994/01/06 17:53:55 jeffc | |
42 | * CR9854 -- Missing exception_raise_state counters | |
43 | * CR10394 -- instrument vm_map_simplify | |
44 | * * End1.3merge | |
45 | * [1994/11/04 09:20:23 dwm] | |
46 | * | |
47 | * Revision 1.1.13.5 1994/09/23 02:15:57 ezf | |
48 | * change marker to not FREE | |
49 | * [1994/09/22 21:32:09 ezf] | |
50 | * | |
51 | * Revision 1.1.13.4 1994/09/16 06:29:22 dwm | |
52 | * mk6 CR551 - remove unused SAFE_VM_FAULT pseudo-continuation, | |
53 | * remove unused args from vm_page_wait, vm_fault(_page). | |
54 | * Also, fix vm_page_wait counters. | |
55 | * [1994/09/16 06:23:24 dwm] | |
56 | * | |
57 | * Revision 1.1.13.3 1994/09/10 21:45:51 bolinger | |
58 | * Merge up to NMK17.3 | |
59 | * [1994/09/08 19:57:27 bolinger] | |
60 | * | |
61 | * Revision 1.1.13.2 1994/06/21 17:28:40 dlb | |
62 | * Add two vm_fault counters from latest NMK17 version. | |
63 | * [94/06/17 dlb] | |
64 | * | |
65 | * Revision 1.1.13.1 1994/06/14 16:59:58 bolinger | |
66 | * Merge up to NMK17.2. | |
67 | * [1994/06/14 16:53:39 bolinger] | |
68 | * | |
69 | * Revision 1.1.8.2 1994/03/17 22:40:02 dwm | |
70 | * dead code removal: thread swapping. | |
71 | * [1994/03/17 21:29:18 dwm] | |
72 | * | |
73 | * Revision 1.1.8.1 1993/11/18 18:14:54 dwm | |
74 | * Coloc: remove continuations entirely; | |
75 | * [1993/11/18 18:09:54 dwm] | |
76 | * | |
77 | * Revision 1.1.2.3 1993/06/07 22:12:34 jeffc | |
78 | * CR9176 - ANSI C violations: trailing tokens on CPP | |
79 | * directives, extra semicolons after decl_ ..., asm keywords | |
80 | * [1993/06/07 19:04:06 jeffc] | |
81 | * | |
82 | * Revision 1.1.2.2 1993/06/02 23:35:48 jeffc | |
83 | * Added to OSF/1 R1.3 from NMK15.0. | |
84 | * [1993/06/02 21:12:06 jeffc] | |
85 | * | |
86 | * Revision 1.1 1992/09/30 02:08:53 robert | |
87 | * Initial revision | |
88 | * | |
89 | * $EndLog$ | |
90 | */ | |
91 | /* CMU_HIST */ | |
92 | /* | |
93 | * Revision 2.3 91/05/14 16:40:19 mrt | |
94 | * Correcting copyright | |
95 | * | |
96 | * Revision 2.2 91/03/16 15:15:51 rpd | |
97 | * Created. | |
98 | * [91/03/13 rpd] | |
99 | * | |
100 | */ | |
101 | /* CMU_ENDHIST */ | |
102 | /* | |
103 | * Mach Operating System | |
104 | * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University | |
105 | * All Rights Reserved. | |
106 | * | |
107 | * Permission to use, copy, modify and distribute this software and its | |
108 | * documentation is hereby granted, provided that both the copyright | |
109 | * notice and this permission notice appear in all copies of the | |
110 | * software, derivative works or modified versions, and any portions | |
111 | * thereof, and that both notices appear in supporting documentation. | |
112 | * | |
113 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
114 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
115 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
116 | * | |
117 | * Carnegie Mellon requests users of this software to return to | |
118 | * | |
119 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
120 | * School of Computer Science | |
121 | * Carnegie Mellon University | |
122 | * Pittsburgh PA 15213-3890 | |
123 | * | |
124 | * any improvements or extensions that they make and grant Carnegie Mellon | |
125 | * the rights to redistribute these changes. | |
126 | */ | |
127 | /* | |
128 | */ | |
129 | ||
130 | #include <mach_counters.h> | |
131 | ||
132 | #include <kern/counters.h> | |
133 | ||
134 | /* | |
135 | * We explicitly initialize the counters to make | |
136 | * them contiguous in the kernel's data space. | |
137 | * This makes them easier to examine with ddb. | |
138 | */ | |
139 | ||
140 | mach_counter_t c_thread_invoke_csw = 0; | |
141 | mach_counter_t c_thread_invoke_hits = 0; | |
142 | mach_counter_t c_thread_invoke_misses = 0; | |
143 | mach_counter_t c_thread_invoke_same = 0; | |
144 | mach_counter_t c_thread_invoke_same_cont = 0; | |
145 | mach_counter_t c_incoming_interrupts = 0; | |
146 | mach_counter_t c_syscalls_unix = 0; | |
147 | mach_counter_t c_syscalls_mach = 0; | |
148 | ||
149 | #if MACH_COUNTERS | |
150 | mach_counter_t c_action_thread_block = 0; | |
151 | mach_counter_t c_ast_taken_block = 0; | |
152 | mach_counter_t c_clock_ticks = 0; | |
153 | mach_counter_t c_dev_io_blocks = 0; | |
154 | mach_counter_t c_dev_io_tries = 0; | |
155 | mach_counter_t c_idle_thread_block = 0; | |
156 | mach_counter_t c_idle_thread_handoff = 0; | |
157 | mach_counter_t c_io_done_thread_block = 0; | |
158 | mach_counter_t c_ipc_mqueue_receive_block_kernel = 0; | |
159 | mach_counter_t c_ipc_mqueue_receive_block_user = 0; | |
160 | mach_counter_t c_ipc_mqueue_send_block = 0; | |
161 | mach_counter_t c_net_thread_block = 0; | |
162 | mach_counter_t c_reaper_thread_block = 0; | |
163 | mach_counter_t c_sched_thread_block = 0; | |
164 | mach_counter_t c_stacks_current = 0; | |
165 | mach_counter_t c_stacks_max = 0; | |
166 | mach_counter_t c_stacks_min = 0; | |
167 | mach_counter_t c_swtch_block = 0; | |
168 | mach_counter_t c_swtch_pri_block = 0; | |
169 | mach_counter_t c_thread_switch_block = 0; | |
170 | mach_counter_t c_thread_switch_handoff = 0; | |
171 | mach_counter_t c_vm_fault_page_block_backoff_kernel = 0; | |
172 | mach_counter_t c_vm_fault_page_block_busy_kernel = 0; | |
173 | mach_counter_t c_vm_fault_retry_on_w_prot; | |
174 | mach_counter_t c_vm_fault_wait_on_unlock; | |
175 | mach_counter_t c_vm_map_simplified_lower = 0; | |
176 | mach_counter_t c_vm_map_simplified_upper = 0; | |
177 | mach_counter_t c_vm_map_simplify_called = 0; | |
178 | mach_counter_t c_vm_page_wait_block = 0; | |
179 | mach_counter_t c_vm_pageout_block = 0; | |
180 | mach_counter_t c_vm_pageout_scan_block = 0; | |
181 | mach_counter_t c_vm_fault_retry_on_w_prot = 0; | |
182 | mach_counter_t c_vm_fault_wait_on_unlock = 0; | |
183 | #endif /* MACH_COUNTERS */ |