VirtualBox

source: vbox/trunk/include/VBox/log.h@ 4041

Last change on this file since 4041 was 3643, checked in by vboxsync, 17 years ago

DEV_PARALLEL and DRV_HOST_PARALLEL. Contributed by: Alexander Eichner

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.3 KB
Line 
1/** @file
2 * VirtualBox - Logging.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License as published by the Free Software Foundation,
12 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13 * distribution. VirtualBox OSE is distributed in the hope that it will
14 * be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * If you received this file as part of a commercial VirtualBox
17 * distribution, then only the terms of your commercial VirtualBox
18 * license agreement apply instead of the previous paragraph.
19 */
20
21#ifndef ___VBox_log_h
22#define ___VBox_log_h
23
24/*
25 * Set the default loggroup.
26 */
27#ifndef LOG_GROUP
28# define LOG_GROUP LOG_GROUP_DEFAULT
29#endif
30
31#include <iprt/log.h>
32
33
34/** @defgroup grp_rt_vbox_log VirtualBox Logging
35 * @ingroup grp_rt_vbox
36 * @{
37 */
38
39/** PC port for debug output */
40#define RTLOG_DEBUG_PORT 0x504
41
42/**
43 * VirtualBox Logging Groups.
44 * (Remember to update LOGGROUP_NAMES!)
45 *
46 * @remark It should be pretty obvious, but just to have
47 * mentioned it, the values are sorted alphabetically (using the
48 * english alphabet) except for _DEFAULT which is always first.
49 *
50 * If anyone might be wondering what the alphabet looks like:
51 * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _
52 */
53typedef enum LOGGROUP
54{
55 /** The default VBox group. */
56 LOG_GROUP_DEFAULT = RTLOGGROUP_FIRST_USER,
57 /** CFGM group. */
58 LOG_GROUP_CFGM,
59 /** CPUM group. */
60 LOG_GROUP_CPUM,
61 /** CSAM group. */
62 LOG_GROUP_CSAM,
63 /** Debug Console group. */
64 LOG_GROUP_DBGC,
65 /** DBGF group. */
66 LOG_GROUP_DBGF,
67 /** DBGF info group. */
68 LOG_GROUP_DBGF_INFO,
69 /** The debugger gui. */
70 LOG_GROUP_DBGG,
71 /** Generic Device group. */
72 LOG_GROUP_DEV,
73 /** ACPI Device group. */
74 LOG_GROUP_DEV_ACPI,
75 /** APIC Device group. */
76 LOG_GROUP_DEV_APIC,
77 /** Audio Device group. */
78 LOG_GROUP_DEV_AUDIO,
79 /** DMA Controller group. */
80 LOG_GROUP_DEV_DMA,
81 /** Floppy Controller Device group. */
82 LOG_GROUP_DEV_FDC,
83 /** IDE Device group. */
84 LOG_GROUP_DEV_IDE,
85 /** KeyBoard Controller Device group. */
86 LOG_GROUP_DEV_KBD,
87 /** NE2000 Device group. */
88 LOG_GROUP_DEV_NE2000,
89 /** Parallel Device group */
90 LOG_GROUP_DEV_PARALLEL,
91 /** PC Device group. */
92 LOG_GROUP_DEV_PC,
93 /** PC Architecture Device group. */
94 LOG_GROUP_DEV_PC_ARCH,
95 /** PC BIOS Device group. */
96 LOG_GROUP_DEV_PC_BIOS,
97 /** PCI Device group. */
98 LOG_GROUP_DEV_PCI,
99 /** PCNet Device group. */
100 LOG_GROUP_DEV_PCNET,
101 /** PIC Device group. */
102 LOG_GROUP_DEV_PIC,
103 /** PIT Device group. */
104 LOG_GROUP_DEV_PIT,
105 /** RTC Device group. */
106 LOG_GROUP_DEV_RTC,
107 /** Serial Device group */
108 LOG_GROUP_DEV_SERIAL,
109 /** USB Device group. */
110 LOG_GROUP_DEV_USB,
111 /** VGA Device group. */
112 LOG_GROUP_DEV_VGA,
113 /** VMM Device group. */
114 LOG_GROUP_DEV_VMM,
115 /** VMM Device group for backdoor logging. */
116 LOG_GROUP_DEV_VMM_BACKDOOR,
117 /** VMM Device group for logging guest backdoor logging to stderr. */
118 LOG_GROUP_DEV_VMM_STDERR,
119 /** Disassembler group. */
120 LOG_GROUP_DIS,
121 /** Generic driver group. */
122 LOG_GROUP_DRV,
123 /** ACPI driver group */
124 LOG_GROUP_DRV_ACPI,
125 /** Block driver group. */
126 LOG_GROUP_DRV_BLOCK,
127 /** Char driver group. */
128 LOG_GROUP_DRV_CHAR,
129 /** Floppy media driver group. */
130 LOG_GROUP_DRV_FLOPPY,
131 /** Host Base block driver group. */
132 LOG_GROUP_DRV_HOST_BASE,
133 /** Host DVD block driver group. */
134 LOG_GROUP_DRV_HOST_DVD,
135 /** Host floppy block driver group. */
136 LOG_GROUP_DRV_HOST_FLOPPY,
137 /** Host hard disk (raw partition) media driver group. */
138 LOG_GROUP_DRV_HOST_HDD,
139 /** Host Parallel Driver group */
140 LOG_GROUP_DRV_HOST_PARALLEL,
141 /** The internal networking transport driver group. */
142 LOG_GROUP_DRV_INTNET,
143 /** iSCSI Initiator driver group. */
144 LOG_GROUP_DRV_ISCSI,
145 /** iSCSI TCP transport driver group. */
146 LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
147 /** ISO (CD/DVD) media driver group. */
148 LOG_GROUP_DRV_ISO,
149 /** Keyboard Queue driver group. */
150 LOG_GROUP_DRV_KBD_QUEUE,
151 /** Mouse Queue driver group. */
152 LOG_GROUP_DRV_MOUSE_QUEUE,
153 /** Named Pipe stream driver group. */
154 LOG_GROUP_DRV_NAMEDPIPE,
155 /** NAT network transport driver group */
156 LOG_GROUP_DRV_NAT,
157 /** Raw image driver group */
158 LOG_GROUP_DRV_RAW_IMAGE,
159 /** TUN network transport driver group */
160 LOG_GROUP_DRV_TUN,
161 /** USB Proxy driver group. */
162 LOG_GROUP_DRV_USBPROXY,
163 /** VBoxHDD media driver group. */
164 LOG_GROUP_DRV_VBOXHDD,
165 /** VBox HDD container media driver group. */
166 LOG_GROUP_DRV_VD,
167 /** Virtual Switch transport driver group */
168 LOG_GROUP_DRV_VSWITCH,
169 /** VUSB driver group */
170 LOG_GROUP_DRV_VUSB,
171 /** EM group. */
172 LOG_GROUP_EM,
173 /** GUI group. */
174 LOG_GROUP_GUI,
175 /** HGCM group */
176 LOG_GROUP_HGCM,
177 /** HWACCM group. */
178 LOG_GROUP_HWACCM,
179 /** IOM group. */
180 LOG_GROUP_IOM,
181 /** XPCOM IPC group. */
182 LOG_GROUP_IPC,
183 /** Main group. */
184 LOG_GROUP_MAIN,
185 /** Misc. group intended for external use only. */
186 LOG_GROUP_MISC,
187 /** MM group. */
188 LOG_GROUP_MM,
189 /** MM group. */
190 LOG_GROUP_MM_HEAP,
191 /** MM group. */
192 LOG_GROUP_MM_HYPER,
193 /** MM Hypervisor Heap group. */
194 LOG_GROUP_MM_HYPER_HEAP,
195 /** MM Physical/Ram group. */
196 LOG_GROUP_MM_PHYS,
197 /** MM Page pool group. */
198 LOG_GROUP_MM_POOL,
199 /** PATM group. */
200 LOG_GROUP_PATM,
201 /** PDM group. */
202 LOG_GROUP_PDM,
203 /** PDM Device group. */
204 LOG_GROUP_PDM_DEVICE,
205 /** PDM Driver group. */
206 LOG_GROUP_PDM_DRIVER,
207 /** PDM Loader group. */
208 LOG_GROUP_PDM_LDR,
209 /** PDM Loader group. */
210 LOG_GROUP_PDM_QUEUE,
211 /** PGM group. */
212 LOG_GROUP_PGM,
213 /** PGMCACHE group. */
214 LOG_GROUP_PGMCACHE,
215 /** PGM physical group. */
216 LOG_GROUP_PGM_PHYS,
217 /** PGM physical access group. */
218 LOG_GROUP_PGM_PHYS_ACCESS,
219 /** PGM shadow page pool group. */
220 LOG_GROUP_PGM_POOL,
221 /** REM group. */
222 LOG_GROUP_REM,
223 /** REM disassembly handler group. */
224 LOG_GROUP_REM_DISAS,
225 /** REM access handler group. */
226 LOG_GROUP_REM_HANDLER,
227 /** REM I/O port access group. */
228 LOG_GROUP_REM_IOPORT,
229 /** REM MMIO access group. */
230 LOG_GROUP_REM_MMIO,
231 /** REM Printf. */
232 LOG_GROUP_REM_PRINTF,
233 /** REM running group. */
234 LOG_GROUP_REM_RUN,
235 /** RT group. */
236 LOG_GROUP_RT,
237 /** RT group. */
238 LOG_GROUP_RT_THREAD,
239 /** SELM group. */
240 LOG_GROUP_SELM,
241 /** Shared folders host service group. */
242 LOG_GROUP_SHARED_FOLDERS,
243 /** OpenGL host service group. */
244 LOG_GROUP_SHARED_OPENGL,
245 /** The internal networking service group. */
246 LOG_GROUP_SRV_INTNET,
247 /** SSM group. */
248 LOG_GROUP_SSM,
249 /** STAM group. */
250 LOG_GROUP_STAM,
251 /** SUP group. */
252 LOG_GROUP_SUP,
253 /** TM group. */
254 LOG_GROUP_TM,
255 /** TRPM group. */
256 LOG_GROUP_TRPM,
257 /** Generic virtual disk layer. */
258 LOG_GROUP_VD,
259 /** VMDK virtual disk backend. */
260 LOG_GROUP_VD_VMDK,
261 /** VM group. */
262 LOG_GROUP_VM,
263 /** VMM group. */
264 LOG_GROUP_VMM,
265 /** VRDP group */
266 LOG_GROUP_VRDP
267 /* !!!ALPHABETICALLY!!! */
268} VBOX_LOGGROUP;
269
270
271/** @def VBOX_LOGGROUP_NAMES
272 * VirtualBox Logging group names.
273 *
274 * Must correspond 100% to LOGGROUP!
275 * Don't forget commas!
276 *
277 * @remark It should be pretty obvious, but just to have
278 * mentioned it, the values are sorted alphabetically (using the
279 * english alphabet) except for _DEFAULT which is always first.
280 *
281 * If anyone might be wondering what the alphabet looks like:
282 * a b c d e f g h i j k l m n o p q r s t u v w x y z
283 */
284#define VBOX_LOGGROUP_NAMES \
285{ \
286 RT_LOGGROUP_NAMES, \
287 "DEFAULT", \
288 "CFGM", \
289 "CPUM", \
290 "CSAM", \
291 "DBGC", \
292 "DBGF", \
293 "DBGF_INFO", \
294 "DBGG", \
295 "DEV", \
296 "DEV_ACPI", \
297 "DEV_APIC", \
298 "DEV_AUDIO", \
299 "DEV_DMA", \
300 "DEV_FDC", \
301 "DEV_IDE", \
302 "DEV_KBD", \
303 "DEV_NE2000", \
304 "DEV_PARALLEL", \
305 "DEV_PC", \
306 "DEV_PC_ARCH", \
307 "DEV_PC_BIOS", \
308 "DEV_PCI", \
309 "DEV_PCNET", \
310 "DEV_PIC", \
311 "DEV_PIT", \
312 "DEV_RTC", \
313 "DEV_SERIAL", \
314 "DEV_USB", \
315 "DEV_VGA", \
316 "DEV_VMM", \
317 "DEV_VMM_BACKDOOR", \
318 "DEV_VMM_STDERR",\
319 "DIS", \
320 "DRV", \
321 "DRV_ACPI", \
322 "DRV_BLOCK", \
323 "DRV_CHAR", \
324 "DRV_FLOPPY", \
325 "DRV_HOST_BASE", \
326 "DRV_HOST_DVD", \
327 "DRV_HOST_FLOPPY", \
328 "DRV_HOST_HDD", \
329 "DRV_HOST_PARALLEL", \
330 "DRV_INTNET", \
331 "DRV_ISCSI", \
332 "DRV_ISCSI_TRANSPORT_TCP", \
333 "DRV_ISO", \
334 "DRV_KBD_QUEUE", \
335 "DRV_MOUSE_QUEUE", \
336 "DRV_NAMEDPIPE", \
337 "DRV_NAT", \
338 "DRV_RAW_IMAGE", \
339 "DRV_TUN", \
340 "DRV_USBPROXY", \
341 "DRV_VBOXHDD", \
342 "DRV_VD", \
343 "DRV_VSWITCH", \
344 "DRV_VUSB", \
345 "EM", \
346 "GUI", \
347 "HGCM", \
348 "HWACCM", \
349 "IOM", \
350 "IPC", \
351 "MAIN", \
352 "MISC", \
353 "MM", \
354 "MM_HEAP", \
355 "MM_HYPER", \
356 "MM_HYPER_HEAP",\
357 "MM_PHYS", \
358 "MM_POOL", \
359 "PATM", \
360 "PDM", \
361 "PDM_DEVICE", \
362 "PDM_DRIVER", \
363 "PDM_LDR", \
364 "PDM_QUEUE", \
365 "PGM", \
366 "PGMCACHE", \
367 "PGM_PHYS", \
368 "PGM_PHYS_ACCESS",\
369 "PGM_POOL", \
370 "REM", \
371 "REM_DISAS", \
372 "REM_HANDLER", \
373 "REM_IOPORT", \
374 "REM_MMIO", \
375 "REM_PRINTF", \
376 "REM_RUN", \
377 "RT", \
378 "RT_THREAD", \
379 "SELM", \
380 "SHARED_FOLDERS",\
381 "SHARED_OPENGL",\
382 "SRV_INTNET", \
383 "SSM", \
384 "STAM", \
385 "SUP", \
386 "TM", \
387 "TRPM", \
388 "VD", \
389 "VD_VMDK", \
390 "VM", \
391 "VMM", \
392 "VRDP", \
393}
394
395/** @} */
396#endif
397
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette