VirtualBox

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

Last change on this file since 45370 was 45370, checked in by vboxsync, 12 years ago

VBox/log.h: VBGD and VBGL log groups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.1 KB
Line 
1/** @file
2 * VirtualBox - Logging.
3 */
4
5/*
6 * Copyright (C) 2006-2012 Oracle Corporation
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
26#ifndef ___VBox_log_h
27#define ___VBox_log_h
28
29/*
30 * Set the default loggroup.
31 */
32#ifndef LOG_GROUP
33# define LOG_GROUP LOG_GROUP_DEFAULT
34#endif
35
36#include <iprt/log.h>
37
38
39/** @defgroup grp_rt_vbox_log VirtualBox Logging
40 * @ingroup grp_rt_vbox
41 * @{
42 */
43
44/** PC port for debug output */
45#define RTLOG_DEBUG_PORT 0x504
46
47/**
48 * VirtualBox Logging Groups.
49 * (Remember to update LOGGROUP_NAMES!)
50 *
51 * @remark It should be pretty obvious, but just to have
52 * mentioned it, the values are sorted alphabetically (using the
53 * english alphabet) except for _DEFAULT which is always first.
54 *
55 * If anyone might be wondering what the alphabet looks like:
56 * 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 _
57 */
58typedef enum LOGGROUP
59{
60 /** The default VBox group. */
61 LOG_GROUP_DEFAULT = RTLOGGROUP_FIRST_USER,
62 /** Auto-logon group. */
63 LOG_GROUP_AUTOLOGON,
64 /** CFGM group. */
65 LOG_GROUP_CFGM,
66 /** CPUM group. */
67 LOG_GROUP_CPUM,
68 /** CSAM group. */
69 LOG_GROUP_CSAM,
70 /** Debug Console group. */
71 LOG_GROUP_DBGC,
72 /** DBGF group. */
73 LOG_GROUP_DBGF,
74 /** DBGF info group. */
75 LOG_GROUP_DBGF_INFO,
76 /** The debugger gui. */
77 LOG_GROUP_DBGG,
78 /** Generic Device group. */
79 LOG_GROUP_DEV,
80 /** ACPI Device group. */
81 LOG_GROUP_DEV_ACPI,
82 /** AHCI Device group. */
83 LOG_GROUP_DEV_AHCI,
84 /** APIC Device group. */
85 LOG_GROUP_DEV_APIC,
86 /** Audio Device group. */
87 LOG_GROUP_DEV_AUDIO,
88 /** BusLogic SCSI host adapter group. */
89 LOG_GROUP_DEV_BUSLOGIC,
90 /** DMA Controller group. */
91 LOG_GROUP_DEV_DMA,
92 /** Gigabit Ethernet Device group. */
93 LOG_GROUP_DEV_E1000,
94 /** Extensible Firmware Interface Device group. */
95 LOG_GROUP_DEV_EFI,
96 /** Floppy Controller Device group. */
97 LOG_GROUP_DEV_FDC,
98 /** High Precision Event Timer Device group. */
99 LOG_GROUP_DEV_HPET,
100 /** IDE Device group. */
101 LOG_GROUP_DEV_IDE,
102 /** The internal networking IP stack Device group. */
103 LOG_GROUP_DEV_INIP,
104 /** KeyBoard Controller Device group. */
105 LOG_GROUP_DEV_KBD,
106 /** Low Pin Count Device group. */
107 LOG_GROUP_DEV_LPC,
108 /** LsiLogic SCSI controller Device group. */
109 LOG_GROUP_DEV_LSILOGICSCSI,
110 /** NE2000 Device group. */
111 LOG_GROUP_DEV_NE2000,
112 /** Parallel Device group */
113 LOG_GROUP_DEV_PARALLEL,
114 /** PC Device group. */
115 LOG_GROUP_DEV_PC,
116 /** PC Architecture Device group. */
117 LOG_GROUP_DEV_PC_ARCH,
118 /** PC BIOS Device group. */
119 LOG_GROUP_DEV_PC_BIOS,
120 /** PCI Device group. */
121 LOG_GROUP_DEV_PCI,
122 /** PCI Raw Device group. */
123 LOG_GROUP_DEV_PCI_RAW,
124 /** PCNet Device group. */
125 LOG_GROUP_DEV_PCNET,
126 /** PIC Device group. */
127 LOG_GROUP_DEV_PIC,
128 /** PIT Device group. */
129 LOG_GROUP_DEV_PIT,
130 /** RTC Device group. */
131 LOG_GROUP_DEV_RTC,
132 /** Serial Device group */
133 LOG_GROUP_DEV_SERIAL,
134 /** System Management Controller Device group. */
135 LOG_GROUP_DEV_SMC,
136 /** USB Device group. */
137 LOG_GROUP_DEV_USB,
138 /** VGA Device group. */
139 LOG_GROUP_DEV_VGA,
140 /** Virtio PCI Device group. */
141 LOG_GROUP_DEV_VIRTIO,
142 /** Virtio Network Device group. */
143 LOG_GROUP_DEV_VIRTIO_NET,
144 /** VMM Device group. */
145 LOG_GROUP_DEV_VMM,
146 /** VMM Device group for backdoor logging. */
147 LOG_GROUP_DEV_VMM_BACKDOOR,
148 /** VMM Device group for logging guest backdoor logging to stderr. */
149 LOG_GROUP_DEV_VMM_STDERR,
150 /** Disassembler group. */
151 LOG_GROUP_DIS,
152 /** Generic driver group. */
153 LOG_GROUP_DRV,
154 /** ACPI driver group */
155 LOG_GROUP_DRV_ACPI,
156 /** Block driver group. */
157 LOG_GROUP_DRV_BLOCK,
158 /** Char driver group. */
159 LOG_GROUP_DRV_CHAR,
160 /** Disk integrity driver group. */
161 LOG_GROUP_DRV_DISK_INTEGRITY,
162 /** Video Display driver group. */
163 LOG_GROUP_DRV_DISPLAY,
164 /** Floppy media driver group. */
165 LOG_GROUP_DRV_FLOPPY,
166 /** Host Base block driver group. */
167 LOG_GROUP_DRV_HOST_BASE,
168 /** Host DVD block driver group. */
169 LOG_GROUP_DRV_HOST_DVD,
170 /** Host floppy block driver group. */
171 LOG_GROUP_DRV_HOST_FLOPPY,
172 /** Host Parallel Driver group */
173 LOG_GROUP_DRV_HOST_PARALLEL,
174 /** Host Serial Driver Group */
175 LOG_GROUP_DRV_HOST_SERIAL,
176 /** The internal networking transport driver group. */
177 LOG_GROUP_DRV_INTNET,
178 /** ISO (CD/DVD) media driver group. */
179 LOG_GROUP_DRV_ISO,
180 /** Keyboard Queue driver group. */
181 LOG_GROUP_DRV_KBD_QUEUE,
182 /** lwIP IP stack driver group. */
183 LOG_GROUP_DRV_LWIP,
184 /** Video Miniport driver group. */
185 LOG_GROUP_DRV_MINIPORT,
186 /** Mouse driver group. */
187 LOG_GROUP_DRV_MOUSE,
188 /** Mouse Queue driver group. */
189 LOG_GROUP_DRV_MOUSE_QUEUE,
190 /** Named Pipe stream driver group. */
191 LOG_GROUP_DRV_NAMEDPIPE,
192 /** NAT network transport driver group */
193 LOG_GROUP_DRV_NAT,
194 /** Raw image driver group */
195 LOG_GROUP_DRV_RAW_IMAGE,
196 /** SCSI driver group. */
197 LOG_GROUP_DRV_SCSI,
198 /** Host SCSI driver group. */
199 LOG_GROUP_DRV_SCSIHOST,
200 /** Async transport driver group */
201 LOG_GROUP_DRV_TRANSPORT_ASYNC,
202 /** TUN network transport driver group */
203 LOG_GROUP_DRV_TUN,
204 /** UDP tunnet network transport driver group. */
205 LOG_GROUP_DRV_UDPTUNNEL,
206 /** USB Proxy driver group. */
207 LOG_GROUP_DRV_USBPROXY,
208 /** VBoxHDD media driver group. */
209 LOG_GROUP_DRV_VBOXHDD,
210 /** VBox HDD container media driver group. */
211 LOG_GROUP_DRV_VD,
212 /** Virtual Switch transport driver group */
213 LOG_GROUP_DRV_VSWITCH,
214 /** VUSB driver group */
215 LOG_GROUP_DRV_VUSB,
216 /** EM group. */
217 LOG_GROUP_EM,
218 /** FTM group. */
219 LOG_GROUP_FTM,
220 /** GMM group. */
221 LOG_GROUP_GMM,
222 /** Guest control. */
223 LOG_GROUP_GUEST_CONTROL,
224 /** GUI group. */
225 LOG_GROUP_GUI,
226 /** GVMM group. */
227 LOG_GROUP_GVMM,
228 /** HGCM group */
229 LOG_GROUP_HGCM,
230 /** HGSMI group */
231 LOG_GROUP_HGSMI,
232 /** HM group. */
233 LOG_GROUP_HM,
234 /** IEM group. */
235 LOG_GROUP_IEM,
236 /** IOM group. */
237 LOG_GROUP_IOM,
238 /** XPCOM IPC group. */
239 LOG_GROUP_IPC,
240 /** Main group. */
241 LOG_GROUP_MAIN,
242 /** Misc. group intended for external use only. */
243 LOG_GROUP_MISC,
244 /** MM group. */
245 LOG_GROUP_MM,
246 /** MM group. */
247 LOG_GROUP_MM_HEAP,
248 /** MM group. */
249 LOG_GROUP_MM_HYPER,
250 /** MM Hypervisor Heap group. */
251 LOG_GROUP_MM_HYPER_HEAP,
252 /** MM Physical/Ram group. */
253 LOG_GROUP_MM_PHYS,
254 /** MM Page pool group. */
255 LOG_GROUP_MM_POOL,
256 /** The NAT service group */
257 LOG_GROUP_NAT_SERVICE,
258 /** The network adaptor driver group. */
259 LOG_GROUP_NET_ADP_DRV,
260 /** The network filter driver group. */
261 LOG_GROUP_NET_FLT_DRV,
262 /** The common network service group */
263 LOG_GROUP_NET_SERVICE,
264 /** Network traffic shaper driver group. */
265 LOG_GROUP_NET_SHAPER,
266 /** PATM group. */
267 LOG_GROUP_PATM,
268 /** PDM group. */
269 LOG_GROUP_PDM,
270 /** PDM Async completion group. */
271 LOG_GROUP_PDM_ASYNC_COMPLETION,
272 /** PDM Block cache group. */
273 LOG_GROUP_PDM_BLK_CACHE,
274 /** PDM Device group. */
275 LOG_GROUP_PDM_DEVICE,
276 /** PDM Driver group. */
277 LOG_GROUP_PDM_DRIVER,
278 /** PDM Loader group. */
279 LOG_GROUP_PDM_LDR,
280 /** PDM Loader group. */
281 LOG_GROUP_PDM_QUEUE,
282 /** PGM group. */
283 LOG_GROUP_PGM,
284 /** PGM dynamic mapping group. */
285 LOG_GROUP_PGM_DYNMAP,
286 /** PGM physical group. */
287 LOG_GROUP_PGM_PHYS,
288 /** PGM physical access group. */
289 LOG_GROUP_PGM_PHYS_ACCESS,
290 /** PGM shadow page pool group. */
291 LOG_GROUP_PGM_POOL,
292 /** PGM shared paging group. */
293 LOG_GROUP_PGM_SHARED,
294 /** REM group. */
295 LOG_GROUP_REM,
296 /** REM disassembly handler group. */
297 LOG_GROUP_REM_DISAS,
298 /** REM access handler group. */
299 LOG_GROUP_REM_HANDLER,
300 /** REM I/O port access group. */
301 LOG_GROUP_REM_IOPORT,
302 /** REM MMIO access group. */
303 LOG_GROUP_REM_MMIO,
304 /** REM Printf. */
305 LOG_GROUP_REM_PRINTF,
306 /** REM running group. */
307 LOG_GROUP_REM_RUN,
308 /** SELM group. */
309 LOG_GROUP_SELM,
310 /** Shared clipboard host service group. */
311 LOG_GROUP_SHARED_CLIPBOARD,
312 /** Chromium OpenGL host service group. */
313 LOG_GROUP_SHARED_CROPENGL,
314 /** Shared folders host service group. */
315 LOG_GROUP_SHARED_FOLDERS,
316 /** OpenGL host service group. */
317 LOG_GROUP_SHARED_OPENGL,
318 /** The internal networking service group. */
319 LOG_GROUP_SRV_INTNET,
320 /** SSM group. */
321 LOG_GROUP_SSM,
322 /** STAM group. */
323 LOG_GROUP_STAM,
324 /** SUP group. */
325 LOG_GROUP_SUP,
326 /** SUPport driver group. */
327 LOG_GROUP_SUP_DRV,
328 /** TM group. */
329 LOG_GROUP_TM,
330 /** TRPM group. */
331 LOG_GROUP_TRPM,
332 /** USB cardreader group. */
333 LOG_GROUP_USB_CARDREADER,
334 /** USB driver group. */
335 LOG_GROUP_USB_DRV,
336 /** USBFilter group. */
337 LOG_GROUP_USB_FILTER,
338 /** USB keyboard device group. */
339 LOG_GROUP_USB_KBD,
340 /** USB mouse/tablet device group. */
341 LOG_GROUP_USB_MOUSE,
342 /** MSD USB device group. */
343 LOG_GROUP_USB_MSD,
344 /** USB webcam. */
345 LOG_GROUP_USB_WEBCAM,
346 /** VBox Guest Additions Driver (VBoxGuest). */
347 LOG_GROUP_VBGD,
348 /** VBox Guest Additions Library. */
349 LOG_GROUP_VBGL,
350 /** Generic virtual disk layer. */
351 LOG_GROUP_VD,
352 /** DMG virtual disk backend. */
353 LOG_GROUP_VD_DMG,
354 /** iSCSI virtual disk backend. */
355 LOG_GROUP_VD_ISCSI,
356 /** Parallels HDD virtual disk backend. */
357 LOG_GROUP_VD_PARALLELS,
358 /** QCOW virtual disk backend. */
359 LOG_GROUP_VD_QCOW,
360 /** QED virtual disk backend. */
361 LOG_GROUP_VD_QED,
362 /** Raw virtual disk backend. */
363 LOG_GROUP_VD_RAW,
364 /** VDI virtual disk backend. */
365 LOG_GROUP_VD_VDI,
366 /** VHD virtual disk backend. */
367 LOG_GROUP_VD_VHD,
368 /** VMDK virtual disk backend. */
369 LOG_GROUP_VD_VMDK,
370 /** VM group. */
371 LOG_GROUP_VM,
372 /** VMM group. */
373 LOG_GROUP_VMM,
374 /** VRDE group */
375 LOG_GROUP_VRDE,
376 /** VRDP group */
377 LOG_GROUP_VRDP,
378 /** VSCSI group */
379 LOG_GROUP_VSCSI,
380 /** Webservice group. */
381 LOG_GROUP_WEBSERVICE
382 /* !!!ALPHABETICALLY!!! */
383} VBOX_LOGGROUP;
384
385
386/** @def VBOX_LOGGROUP_NAMES
387 * VirtualBox Logging group names.
388 *
389 * Must correspond 100% to LOGGROUP!
390 * Don't forget commas!
391 *
392 * @remark It should be pretty obvious, but just to have
393 * mentioned it, the values are sorted alphabetically (using the
394 * english alphabet) except for _DEFAULT which is always first.
395 *
396 * If anyone might be wondering what the alphabet looks like:
397 * 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
398 */
399#define VBOX_LOGGROUP_NAMES \
400{ \
401 RT_LOGGROUP_NAMES, \
402 "DEFAULT", \
403 "AUTOLOGON", \
404 "CFGM", \
405 "CPUM", \
406 "CSAM", \
407 "DBGC", \
408 "DBGF", \
409 "DBGF_INFO", \
410 "DBGG", \
411 "DEV", \
412 "DEV_ACPI", \
413 "DEV_AHCI", \
414 "DEV_APIC", \
415 "DEV_AUDIO", \
416 "DEV_BUSLOGIC", \
417 "DEV_DMA", \
418 "DEV_E1000", \
419 "DEV_EFI", \
420 "DEV_FDC", \
421 "DEV_HPET", \
422 "DEV_IDE", \
423 "DEV_INIP", \
424 "DEV_KBD", \
425 "DEV_LPC", \
426 "DEV_LSILOGICSCSI", \
427 "DEV_NE2000", \
428 "DEV_PARALLEL", \
429 "DEV_PC", \
430 "DEV_PC_ARCH", \
431 "DEV_PC_BIOS", \
432 "DEV_PCI", \
433 "DEV_PCI_RAW", \
434 "DEV_PCNET", \
435 "DEV_PIC", \
436 "DEV_PIT", \
437 "DEV_RTC", \
438 "DEV_SERIAL", \
439 "DEV_SMC", \
440 "DEV_USB", \
441 "DEV_VGA", \
442 "DEV_VIRTIO", \
443 "DEV_VIRTIO_NET", \
444 "DEV_VMM", \
445 "DEV_VMM_BACKDOOR", \
446 "DEV_VMM_STDERR",\
447 "DIS", \
448 "DRV", \
449 "DRV_ACPI", \
450 "DRV_BLOCK", \
451 "DRV_CHAR", \
452 "DRV_DISK_INTEGRITY", \
453 "DRV_DISPLAY", \
454 "DRV_FLOPPY", \
455 "DRV_HOST_BASE", \
456 "DRV_HOST_DVD", \
457 "DRV_HOST_FLOPPY", \
458 "DRV_HOST_PARALLEL", \
459 "DRV_HOST_SERIAL", \
460 "DRV_INTNET", \
461 "DRV_ISO", \
462 "DRV_KBD_QUEUE", \
463 "DRV_LWIP", \
464 "DRV_MINIPORT", \
465 "DRV_MOUSE", \
466 "DRV_MOUSE_QUEUE", \
467 "DRV_NAMEDPIPE", \
468 "DRV_NAT", \
469 "DRV_RAW_IMAGE", \
470 "DRV_SCSI", \
471 "DRV_SCSIHOST", \
472 "DRV_TRANSPORT_ASYNC", \
473 "DRV_TUN", \
474 "DRV_UDPTUNNEL", \
475 "DRV_USBPROXY", \
476 "DRV_VBOXHDD", \
477 "DRV_VD", \
478 "DRV_VSWITCH", \
479 "DRV_VUSB", \
480 "EM", \
481 "FTM", \
482 "GMM", \
483 "GUEST_CONTROL", \
484 "GUI", \
485 "GVMM", \
486 "HGCM", \
487 "HGSMI", \
488 "HM", \
489 "IEM", \
490 "IOM", \
491 "IPC", \
492 "MAIN", \
493 "MISC", \
494 "MM", \
495 "MM_HEAP", \
496 "MM_HYPER", \
497 "MM_HYPER_HEAP",\
498 "MM_PHYS", \
499 "MM_POOL", \
500 "NAT_SERVICE", \
501 "NET_ADP_DRV", \
502 "NET_FLT_DRV", \
503 "NET_SERVICE", \
504 "NET_SHAPER", \
505 "PATM", \
506 "PDM", \
507 "PDM_ASYNC_COMPLETION", \
508 "PDM_BLK_CACHE", \
509 "PDM_DEVICE", \
510 "PDM_DRIVER", \
511 "PDM_LDR", \
512 "PDM_QUEUE", \
513 "PGM", \
514 "PGM_DYNMAP", \
515 "PGM_PHYS", \
516 "PGM_PHYS_ACCESS",\
517 "PGM_POOL", \
518 "PGM_SHARED", \
519 "REM", \
520 "REM_DISAS", \
521 "REM_HANDLER", \
522 "REM_IOPORT", \
523 "REM_MMIO", \
524 "REM_PRINTF", \
525 "REM_RUN", \
526 "SELM", \
527 "SHARED_CLIPBOARD",\
528 "SHARED_CROPENGL",\
529 "SHARED_FOLDERS",\
530 "SHARED_OPENGL",\
531 "SRV_INTNET", \
532 "SSM", \
533 "STAM", \
534 "SUP", \
535 "SUP_DRV", \
536 "TM", \
537 "TRPM", \
538 "USB_CARDREADER",\
539 "USB_DRV", \
540 "USB_FILTER", \
541 "USB_KBD", \
542 "USB_MOUSE", \
543 "USB_MSD", \
544 "USB_WEBCAM", \
545 "VBGD", \
546 "VBGL", \
547 "VD", \
548 "VD_DMG", \
549 "VD_ISCSI", \
550 "VD_PARALLELS", \
551 "VD_QCOW", \
552 "VD_QED", \
553 "VD_RAW", \
554 "VD_VDI", \
555 "VD_VHD", \
556 "VD_VMDK", \
557 "VM", \
558 "VMM", \
559 "VRDE", \
560 "VRDP", \
561 "VSCSI", \
562 "WEBSERVICE", \
563}
564
565/** @} */
566#endif
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