VirtualBox

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

Last change on this file since 9697 was 9697, checked in by vboxsync, 16 years ago

Added NET_FLT_DRV, NET_TAP_DRV, SUP_DRV, USB_DRV and USB_FILTER.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.9 KB
Line 
1/** @file
2 * VirtualBox - Logging.
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 *
25 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
26 * Clara, CA 95054 USA or visit http://www.sun.com if you need
27 * additional information or have any questions.
28 */
29
30#ifndef ___VBox_log_h
31#define ___VBox_log_h
32
33/*
34 * Set the default loggroup.
35 */
36#ifndef LOG_GROUP
37# define LOG_GROUP LOG_GROUP_DEFAULT
38#endif
39
40#include <iprt/log.h>
41
42
43/** @defgroup grp_rt_vbox_log VirtualBox Logging
44 * @ingroup grp_rt_vbox
45 * @{
46 */
47
48/** PC port for debug output */
49#define RTLOG_DEBUG_PORT 0x504
50
51/**
52 * VirtualBox Logging Groups.
53 * (Remember to update LOGGROUP_NAMES!)
54 *
55 * @remark It should be pretty obvious, but just to have
56 * mentioned it, the values are sorted alphabetically (using the
57 * english alphabet) except for _DEFAULT which is always first.
58 *
59 * If anyone might be wondering what the alphabet looks like:
60 * 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 _
61 */
62typedef enum LOGGROUP
63{
64 /** The default VBox group. */
65 LOG_GROUP_DEFAULT = RTLOGGROUP_FIRST_USER,
66 /** CFGM group. */
67 LOG_GROUP_CFGM,
68 /** CPUM group. */
69 LOG_GROUP_CPUM,
70 /** CSAM group. */
71 LOG_GROUP_CSAM,
72 /** Debug Console group. */
73 LOG_GROUP_DBGC,
74 /** DBGF group. */
75 LOG_GROUP_DBGF,
76 /** DBGF info group. */
77 LOG_GROUP_DBGF_INFO,
78 /** The debugger gui. */
79 LOG_GROUP_DBGG,
80 /** Generic Device group. */
81 LOG_GROUP_DEV,
82 /** ACPI Device group. */
83 LOG_GROUP_DEV_ACPI,
84 /** AHCI Device group. */
85 LOG_GROUP_DEV_AHCI,
86 /** APIC Device group. */
87 LOG_GROUP_DEV_APIC,
88 /** Audio Device group. */
89 LOG_GROUP_DEV_AUDIO,
90 /** DMA Controller group. */
91 LOG_GROUP_DEV_DMA,
92 /** Gigabit Ethernet Device group. */
93 LOG_GROUP_DEV_E1000,
94 /** Floppy Controller Device group. */
95 LOG_GROUP_DEV_FDC,
96 /** IDE Device group. */
97 LOG_GROUP_DEV_IDE,
98 /** The internal networking IP stack Device group. */
99 LOG_GROUP_DEV_INIP,
100 /** KeyBoard Controller Device group. */
101 LOG_GROUP_DEV_KBD,
102 /** NE2000 Device group. */
103 LOG_GROUP_DEV_NE2000,
104 /** Parallel Device group */
105 LOG_GROUP_DEV_PARALLEL,
106 /** PC Device group. */
107 LOG_GROUP_DEV_PC,
108 /** PC Architecture Device group. */
109 LOG_GROUP_DEV_PC_ARCH,
110 /** PC BIOS Device group. */
111 LOG_GROUP_DEV_PC_BIOS,
112 /** PCI Device group. */
113 LOG_GROUP_DEV_PCI,
114 /** PCNet Device group. */
115 LOG_GROUP_DEV_PCNET,
116 /** PIC Device group. */
117 LOG_GROUP_DEV_PIC,
118 /** PIT Device group. */
119 LOG_GROUP_DEV_PIT,
120 /** RTC Device group. */
121 LOG_GROUP_DEV_RTC,
122 /** Serial Device group */
123 LOG_GROUP_DEV_SERIAL,
124 /** USB Device group. */
125 LOG_GROUP_DEV_USB,
126 /** VGA Device group. */
127 LOG_GROUP_DEV_VGA,
128 /** VMM Device group. */
129 LOG_GROUP_DEV_VMM,
130 /** VMM Device group for backdoor logging. */
131 LOG_GROUP_DEV_VMM_BACKDOOR,
132 /** VMM Device group for logging guest backdoor logging to stderr. */
133 LOG_GROUP_DEV_VMM_STDERR,
134 /** Disassembler group. */
135 LOG_GROUP_DIS,
136 /** Generic driver group. */
137 LOG_GROUP_DRV,
138 /** ACPI driver group */
139 LOG_GROUP_DRV_ACPI,
140 /** Block driver group. */
141 LOG_GROUP_DRV_BLOCK,
142 /** Char driver group. */
143 LOG_GROUP_DRV_CHAR,
144 /** Floppy media driver group. */
145 LOG_GROUP_DRV_FLOPPY,
146 /** Host Base block driver group. */
147 LOG_GROUP_DRV_HOST_BASE,
148 /** Host DVD block driver group. */
149 LOG_GROUP_DRV_HOST_DVD,
150 /** Host floppy block driver group. */
151 LOG_GROUP_DRV_HOST_FLOPPY,
152 /** Host Parallel Driver group */
153 LOG_GROUP_DRV_HOST_PARALLEL,
154 /** Host Serial Driver Group */
155 LOG_GROUP_DRV_HOST_SERIAL,
156 /** The internal networking transport driver group. */
157 LOG_GROUP_DRV_INTNET,
158 /** iSCSI Initiator driver group. */
159 LOG_GROUP_DRV_ISCSI,
160 /** iSCSI TCP transport driver group. */
161 LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
162 /** ISO (CD/DVD) media driver group. */
163 LOG_GROUP_DRV_ISO,
164 /** Keyboard Queue driver group. */
165 LOG_GROUP_DRV_KBD_QUEUE,
166 /** lwIP IP stack driver group. */
167 LOG_GROUP_DRV_LWIP,
168 /** Mouse Queue driver group. */
169 LOG_GROUP_DRV_MOUSE_QUEUE,
170 /** Named Pipe stream driver group. */
171 LOG_GROUP_DRV_NAMEDPIPE,
172 /** NAT network transport driver group */
173 LOG_GROUP_DRV_NAT,
174 /** Raw image driver group */
175 LOG_GROUP_DRV_RAW_IMAGE,
176 /** Async transport driver group */
177 LOG_GROUP_DRV_TRANSPORT_ASYNC,
178 /** TUN network transport driver group */
179 LOG_GROUP_DRV_TUN,
180 /** USB Proxy driver group. */
181 LOG_GROUP_DRV_USBPROXY,
182 /** VBoxHDD media driver group. */
183 LOG_GROUP_DRV_VBOXHDD,
184 /** VBox HDD container media driver group. */
185 LOG_GROUP_DRV_VD,
186 /** Virtual Switch transport driver group */
187 LOG_GROUP_DRV_VSWITCH,
188 /** VUSB driver group */
189 LOG_GROUP_DRV_VUSB,
190 /** EM group. */
191 LOG_GROUP_EM,
192 /** GMM group. */
193 LOG_GROUP_GMM,
194 /** GUI group. */
195 LOG_GROUP_GUI,
196 /** GVMM group. */
197 LOG_GROUP_GVMM,
198 /** HGCM group */
199 LOG_GROUP_HGCM,
200 /** HWACCM group. */
201 LOG_GROUP_HWACCM,
202 /** IOM group. */
203 LOG_GROUP_IOM,
204 /** XPCOM IPC group. */
205 LOG_GROUP_IPC,
206 /** Main group. */
207 LOG_GROUP_MAIN,
208 /** Misc. group intended for external use only. */
209 LOG_GROUP_MISC,
210 /** MM group. */
211 LOG_GROUP_MM,
212 /** MM group. */
213 LOG_GROUP_MM_HEAP,
214 /** MM group. */
215 LOG_GROUP_MM_HYPER,
216 /** MM Hypervisor Heap group. */
217 LOG_GROUP_MM_HYPER_HEAP,
218 /** MM Physical/Ram group. */
219 LOG_GROUP_MM_PHYS,
220 /** MM Page pool group. */
221 LOG_GROUP_MM_POOL,
222 /** The network filter driver group. */
223 LOG_GROUP_NET_FLT_DRV,
224 /** The network tap driver group. */
225 LOG_GROUP_NET_TAP_DRV,
226 /** PATM group. */
227 LOG_GROUP_PATM,
228 /** PDM group. */
229 LOG_GROUP_PDM,
230 /** PDM Async completion group. */
231 LOG_GROUP_PDM_ASYNC_COMPLETION,
232 /** PDM Device group. */
233 LOG_GROUP_PDM_DEVICE,
234 /** PDM Driver group. */
235 LOG_GROUP_PDM_DRIVER,
236 /** PDM Loader group. */
237 LOG_GROUP_PDM_LDR,
238 /** PDM Loader group. */
239 LOG_GROUP_PDM_QUEUE,
240 /** PGM group. */
241 LOG_GROUP_PGM,
242 /** PGMCACHE group. */
243 LOG_GROUP_PGMCACHE,
244 /** PGM physical group. */
245 LOG_GROUP_PGM_PHYS,
246 /** PGM physical access group. */
247 LOG_GROUP_PGM_PHYS_ACCESS,
248 /** PGM shadow page pool group. */
249 LOG_GROUP_PGM_POOL,
250 /** REM group. */
251 LOG_GROUP_REM,
252 /** REM disassembly handler group. */
253 LOG_GROUP_REM_DISAS,
254 /** REM access handler group. */
255 LOG_GROUP_REM_HANDLER,
256 /** REM I/O port access group. */
257 LOG_GROUP_REM_IOPORT,
258 /** REM MMIO access group. */
259 LOG_GROUP_REM_MMIO,
260 /** REM Printf. */
261 LOG_GROUP_REM_PRINTF,
262 /** REM running group. */
263 LOG_GROUP_REM_RUN,
264 /** SELM group. */
265 LOG_GROUP_SELM,
266 /** Shared folders host service group. */
267 LOG_GROUP_SHARED_FOLDERS,
268 /** OpenGL host service group. */
269 LOG_GROUP_SHARED_OPENGL,
270 /** The internal networking service group. */
271 LOG_GROUP_SRV_INTNET,
272 /** SSM group. */
273 LOG_GROUP_SSM,
274 /** STAM group. */
275 LOG_GROUP_STAM,
276 /** SUP group. */
277 LOG_GROUP_SUP,
278 /** SUPport driver group. */
279 LOG_GROUP_SUP_DRV,
280 /** TM group. */
281 LOG_GROUP_TM,
282 /** TRPM group. */
283 LOG_GROUP_TRPM,
284 /** USB driver group. */
285 LOG_GROUP_USB_DRV,
286 /** USBFilter group. */
287 LOG_GROUP_USB_FILTER,
288 /** Generic virtual disk layer. */
289 LOG_GROUP_VD,
290 /** Raw virtual disk backend. */
291 LOG_GROUP_VD_RAW,
292 /** VDI virtual disk backend. */
293 LOG_GROUP_VD_VDI,
294 /** VHD virtual disk backend. */
295 LOG_GROUP_VD_VHD,
296 /** VMDK virtual disk backend. */
297 LOG_GROUP_VD_VMDK,
298 /** VM group. */
299 LOG_GROUP_VM,
300 /** VMM group. */
301 LOG_GROUP_VMM,
302 /** VRDP group */
303 LOG_GROUP_VRDP
304 /* !!!ALPHABETICALLY!!! */
305} VBOX_LOGGROUP;
306
307
308/** @def VBOX_LOGGROUP_NAMES
309 * VirtualBox Logging group names.
310 *
311 * Must correspond 100% to LOGGROUP!
312 * Don't forget commas!
313 *
314 * @remark It should be pretty obvious, but just to have
315 * mentioned it, the values are sorted alphabetically (using the
316 * english alphabet) except for _DEFAULT which is always first.
317 *
318 * If anyone might be wondering what the alphabet looks like:
319 * 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
320 */
321#define VBOX_LOGGROUP_NAMES \
322{ \
323 RT_LOGGROUP_NAMES, \
324 "DEFAULT", \
325 "CFGM", \
326 "CPUM", \
327 "CSAM", \
328 "DBGC", \
329 "DBGF", \
330 "DBGF_INFO", \
331 "DBGG", \
332 "DEV", \
333 "DEV_ACPI", \
334 "DEV_AHCI", \
335 "DEV_APIC", \
336 "DEV_AUDIO", \
337 "DEV_DMA", \
338 "DEV_E1000", \
339 "DEV_FDC", \
340 "DEV_IDE", \
341 "DEV_INIP", \
342 "DEV_KBD", \
343 "DEV_NE2000", \
344 "DEV_PARALLEL", \
345 "DEV_PC", \
346 "DEV_PC_ARCH", \
347 "DEV_PC_BIOS", \
348 "DEV_PCI", \
349 "DEV_PCNET", \
350 "DEV_PIC", \
351 "DEV_PIT", \
352 "DEV_RTC", \
353 "DEV_SERIAL", \
354 "DEV_USB", \
355 "DEV_VGA", \
356 "DEV_VMM", \
357 "DEV_VMM_BACKDOOR", \
358 "DEV_VMM_STDERR",\
359 "DIS", \
360 "DRV", \
361 "DRV_ACPI", \
362 "DRV_BLOCK", \
363 "DRV_CHAR", \
364 "DRV_FLOPPY", \
365 "DRV_HOST_BASE", \
366 "DRV_HOST_DVD", \
367 "DRV_HOST_FLOPPY", \
368 "DRV_HOST_PARALLEL", \
369 "DRV_HOST_SERIAL", \
370 "DRV_INTNET", \
371 "DRV_ISCSI", \
372 "DRV_ISCSI_TRANSPORT_TCP", \
373 "DRV_ISO", \
374 "DRV_KBD_QUEUE", \
375 "DRV_LWIP", \
376 "DRV_MOUSE_QUEUE", \
377 "DRV_NAMEDPIPE", \
378 "DRV_NAT", \
379 "DRV_RAW_IMAGE", \
380 "DRV_TRANSPORT_ASYNC", \
381 "DRV_TUN", \
382 "DRV_USBPROXY", \
383 "DRV_VBOXHDD", \
384 "DRV_VD", \
385 "DRV_VSWITCH", \
386 "DRV_VUSB", \
387 "EM", \
388 "GMM", \
389 "GUI", \
390 "GVMM", \
391 "HGCM", \
392 "HWACCM", \
393 "IOM", \
394 "IPC", \
395 "MAIN", \
396 "MISC", \
397 "MM", \
398 "MM_HEAP", \
399 "MM_HYPER", \
400 "MM_HYPER_HEAP",\
401 "MM_PHYS", \
402 "MM_POOL", \
403 "NET_FLT_DRV", \
404 "NET_TAP_DRV", \
405 "PATM", \
406 "PDM", \
407 "PDM_ASYNC_COMPLETION", \
408 "PDM_DEVICE", \
409 "PDM_DRIVER", \
410 "PDM_LDR", \
411 "PDM_QUEUE", \
412 "PGM", \
413 "PGMCACHE", \
414 "PGM_PHYS", \
415 "PGM_PHYS_ACCESS",\
416 "PGM_POOL", \
417 "REM", \
418 "REM_DISAS", \
419 "REM_HANDLER", \
420 "REM_IOPORT", \
421 "REM_MMIO", \
422 "REM_PRINTF", \
423 "REM_RUN", \
424 "SELM", \
425 "SHARED_FOLDERS",\
426 "SHARED_OPENGL",\
427 "SRV_INTNET", \
428 "SSM", \
429 "STAM", \
430 "SUP", \
431 "SUP_DRV", \
432 "TM", \
433 "TRPM", \
434 "USB_DRV", \
435 "USB_FILTER", \
436 "VD", \
437 "VD_RAW", \
438 "VD_VDI", \
439 "VD_VHD", \
440 "VD_VMDK", \
441 "VM", \
442 "VMM", \
443 "VRDP", \
444}
445
446/** @} */
447#endif
448
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use