VirtualBox

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

Last change on this file since 36832 was 36832, checked in by vboxsync, 14 years ago

VBox/log.h: Added LOG_GROUP_IEM.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.9 KB
Line 
1/** @file
2 * VirtualBox - Logging.
3 */
4
5/*
6 * Copyright (C) 2006-2007 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 /** CFGM group. */
63 LOG_GROUP_CFGM,
64 /** Core Dumper group. **/
65 LOG_GROUP_CORE_DUMPER,
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 /** Floppy media driver group. */
163 LOG_GROUP_DRV_FLOPPY,
164 /** Host Base block driver group. */
165 LOG_GROUP_DRV_HOST_BASE,
166 /** Host DVD block driver group. */
167 LOG_GROUP_DRV_HOST_DVD,
168 /** Host floppy block driver group. */
169 LOG_GROUP_DRV_HOST_FLOPPY,
170 /** Host Parallel Driver group */
171 LOG_GROUP_DRV_HOST_PARALLEL,
172 /** Host Serial Driver Group */
173 LOG_GROUP_DRV_HOST_SERIAL,
174 /** The internal networking transport driver group. */
175 LOG_GROUP_DRV_INTNET,
176 /** ISO (CD/DVD) media driver group. */
177 LOG_GROUP_DRV_ISO,
178 /** Keyboard Queue driver group. */
179 LOG_GROUP_DRV_KBD_QUEUE,
180 /** lwIP IP stack driver group. */
181 LOG_GROUP_DRV_LWIP,
182 /** Mouse Queue driver group. */
183 LOG_GROUP_DRV_MOUSE_QUEUE,
184 /** Named Pipe stream driver group. */
185 LOG_GROUP_DRV_NAMEDPIPE,
186 /** NAT network transport driver group */
187 LOG_GROUP_DRV_NAT,
188 /** Raw image driver group */
189 LOG_GROUP_DRV_RAW_IMAGE,
190 /** SCSI driver group. */
191 LOG_GROUP_DRV_SCSI,
192 /** Host SCSI driver group. */
193 LOG_GROUP_DRV_SCSIHOST,
194 /** Async transport driver group */
195 LOG_GROUP_DRV_TRANSPORT_ASYNC,
196 /** TUN network transport driver group */
197 LOG_GROUP_DRV_TUN,
198 /** USB Proxy driver group. */
199 LOG_GROUP_DRV_USBPROXY,
200 /** VBoxHDD media driver group. */
201 LOG_GROUP_DRV_VBOXHDD,
202 /** VBox HDD container media driver group. */
203 LOG_GROUP_DRV_VD,
204 /** Virtual Switch transport driver group */
205 LOG_GROUP_DRV_VSWITCH,
206 /** VUSB driver group */
207 LOG_GROUP_DRV_VUSB,
208 /** EM group. */
209 LOG_GROUP_EM,
210 /** FTM group. */
211 LOG_GROUP_FTM,
212 /** GMM group. */
213 LOG_GROUP_GMM,
214 /** GUI group. */
215 LOG_GROUP_GUI,
216 /** GVMM group. */
217 LOG_GROUP_GVMM,
218 /** HGCM group */
219 LOG_GROUP_HGCM,
220 /** HWACCM group. */
221 LOG_GROUP_HWACCM,
222 /** IEM group. */
223 LOG_GROUP_IEM,
224 /** IOM group. */
225 LOG_GROUP_IOM,
226 /** XPCOM IPC group. */
227 LOG_GROUP_IPC,
228 /** Main group. */
229 LOG_GROUP_MAIN,
230 /** Misc. group intended for external use only. */
231 LOG_GROUP_MISC,
232 /** MM group. */
233 LOG_GROUP_MM,
234 /** MM group. */
235 LOG_GROUP_MM_HEAP,
236 /** MM group. */
237 LOG_GROUP_MM_HYPER,
238 /** MM Hypervisor Heap group. */
239 LOG_GROUP_MM_HYPER_HEAP,
240 /** MM Physical/Ram group. */
241 LOG_GROUP_MM_PHYS,
242 /** MM Page pool group. */
243 LOG_GROUP_MM_POOL,
244 /** The NAT service group */
245 LOG_GROUP_NAT_SERVICE,
246 /** The network adaptor driver group. */
247 LOG_GROUP_NET_ADP_DRV,
248 /** The network filter driver group. */
249 LOG_GROUP_NET_FLT_DRV,
250 /** The common network service group */
251 LOG_GROUP_NET_SERVICE,
252 /** PATM group. */
253 LOG_GROUP_PATM,
254 /** PDM group. */
255 LOG_GROUP_PDM,
256 /** PDM Async completion group. */
257 LOG_GROUP_PDM_ASYNC_COMPLETION,
258 /** PDM Block cache group. */
259 LOG_GROUP_PDM_BLK_CACHE,
260 /** PDM Device group. */
261 LOG_GROUP_PDM_DEVICE,
262 /** PDM Driver group. */
263 LOG_GROUP_PDM_DRIVER,
264 /** PDM Loader group. */
265 LOG_GROUP_PDM_LDR,
266 /** PDM Loader group. */
267 LOG_GROUP_PDM_QUEUE,
268 /** PGM group. */
269 LOG_GROUP_PGM,
270 /** PGM dynamic mapping group. */
271 LOG_GROUP_PGM_DYNMAP,
272 /** PGM physical group. */
273 LOG_GROUP_PGM_PHYS,
274 /** PGM physical access group. */
275 LOG_GROUP_PGM_PHYS_ACCESS,
276 /** PGM shadow page pool group. */
277 LOG_GROUP_PGM_POOL,
278 /** PGM shared paging group. */
279 LOG_GROUP_PGM_SHARED,
280 /** REM group. */
281 LOG_GROUP_REM,
282 /** REM disassembly handler group. */
283 LOG_GROUP_REM_DISAS,
284 /** REM access handler group. */
285 LOG_GROUP_REM_HANDLER,
286 /** REM I/O port access group. */
287 LOG_GROUP_REM_IOPORT,
288 /** REM MMIO access group. */
289 LOG_GROUP_REM_MMIO,
290 /** REM Printf. */
291 LOG_GROUP_REM_PRINTF,
292 /** REM running group. */
293 LOG_GROUP_REM_RUN,
294 /** SELM group. */
295 LOG_GROUP_SELM,
296 /** Shared clipboard host service group. */
297 LOG_GROUP_SHARED_CLIPBOARD,
298 /** Chromium OpenGL host service group. */
299 LOG_GROUP_SHARED_CROPENGL,
300 /** Shared folders host service group. */
301 LOG_GROUP_SHARED_FOLDERS,
302 /** OpenGL host service group. */
303 LOG_GROUP_SHARED_OPENGL,
304 /** The internal networking service group. */
305 LOG_GROUP_SRV_INTNET,
306 /** SSM group. */
307 LOG_GROUP_SSM,
308 /** STAM group. */
309 LOG_GROUP_STAM,
310 /** SUP group. */
311 LOG_GROUP_SUP,
312 /** SUPport driver group. */
313 LOG_GROUP_SUP_DRV,
314 /** TM group. */
315 LOG_GROUP_TM,
316 /** TRPM group. */
317 LOG_GROUP_TRPM,
318 /** USB driver group. */
319 LOG_GROUP_USB_DRV,
320 /** USBFilter group. */
321 LOG_GROUP_USB_FILTER,
322 /** USB keyboard device group. */
323 LOG_GROUP_USB_KBD,
324 /** MSD USB device group. */
325 LOG_GROUP_USB_MSD,
326 /** USB webcam. */
327 LOG_GROUP_USB_WEBCAM,
328 /** Generic virtual disk layer. */
329 LOG_GROUP_VD,
330 /** iSCSI virtual disk backend. */
331 LOG_GROUP_VD_ISCSI,
332 /** Parallels HDD virtual disk backend. */
333 LOG_GROUP_VD_PARALLELS,
334 /** Raw virtual disk backend. */
335 LOG_GROUP_VD_RAW,
336 /** VDI virtual disk backend. */
337 LOG_GROUP_VD_VDI,
338 /** VHD virtual disk backend. */
339 LOG_GROUP_VD_VHD,
340 /** VMDK virtual disk backend. */
341 LOG_GROUP_VD_VMDK,
342 /** VM group. */
343 LOG_GROUP_VM,
344 /** VMM group. */
345 LOG_GROUP_VMM,
346 /** VRDP group */
347 LOG_GROUP_VRDP,
348 /** VSCSI group */
349 LOG_GROUP_VSCSI,
350 /** Webservice group. */
351 LOG_GROUP_WEBSERVICE
352 /* !!!ALPHABETICALLY!!! */
353} VBOX_LOGGROUP;
354
355
356/** @def VBOX_LOGGROUP_NAMES
357 * VirtualBox Logging group names.
358 *
359 * Must correspond 100% to LOGGROUP!
360 * Don't forget commas!
361 *
362 * @remark It should be pretty obvious, but just to have
363 * mentioned it, the values are sorted alphabetically (using the
364 * english alphabet) except for _DEFAULT which is always first.
365 *
366 * If anyone might be wondering what the alphabet looks like:
367 * 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
368 */
369#define VBOX_LOGGROUP_NAMES \
370{ \
371 RT_LOGGROUP_NAMES, \
372 "DEFAULT", \
373 "CFGM", \
374 "CORE_DUMPER", \
375 "CPUM", \
376 "CSAM", \
377 "DBGC", \
378 "DBGF", \
379 "DBGF_INFO", \
380 "DBGG", \
381 "DEV", \
382 "DEV_ACPI", \
383 "DEV_AHCI", \
384 "DEV_APIC", \
385 "DEV_AUDIO", \
386 "DEV_BUSLOGIC", \
387 "DEV_DMA", \
388 "DEV_E1000", \
389 "DEV_EFI", \
390 "DEV_FDC", \
391 "DEV_HPET", \
392 "DEV_IDE", \
393 "DEV_INIP", \
394 "DEV_KBD", \
395 "DEV_LPC", \
396 "DEV_LSILOGICSCSI", \
397 "DEV_NE2000", \
398 "DEV_PARALLEL", \
399 "DEV_PC", \
400 "DEV_PC_ARCH", \
401 "DEV_PC_BIOS", \
402 "DEV_PCI", \
403 "DEV_PCI_RAW", \
404 "DEV_PCNET", \
405 "DEV_PIC", \
406 "DEV_PIT", \
407 "DEV_RTC", \
408 "DEV_SERIAL", \
409 "DEV_SMC", \
410 "DEV_USB", \
411 "DEV_VGA", \
412 "DEV_VIRTIO", \
413 "DEV_VIRTIO_NET", \
414 "DEV_VMM", \
415 "DEV_VMM_BACKDOOR", \
416 "DEV_VMM_STDERR",\
417 "DIS", \
418 "DRV", \
419 "DRV_ACPI", \
420 "DRV_BLOCK", \
421 "DRV_CHAR", \
422 "DRV_DISK_INTEGRITY", \
423 "DRV_FLOPPY", \
424 "DRV_HOST_BASE", \
425 "DRV_HOST_DVD", \
426 "DRV_HOST_FLOPPY", \
427 "DRV_HOST_PARALLEL", \
428 "DRV_HOST_SERIAL", \
429 "DRV_INTNET", \
430 "DRV_ISO", \
431 "DRV_KBD_QUEUE", \
432 "DRV_LWIP", \
433 "DRV_MOUSE_QUEUE", \
434 "DRV_NAMEDPIPE", \
435 "DRV_NAT", \
436 "DRV_RAW_IMAGE", \
437 "DRV_SCSI", \
438 "DRV_SCSIHOST", \
439 "DRV_TRANSPORT_ASYNC", \
440 "DRV_TUN", \
441 "DRV_USBPROXY", \
442 "DRV_VBOXHDD", \
443 "DRV_VD", \
444 "DRV_VSWITCH", \
445 "DRV_VUSB", \
446 "EM", \
447 "FTM", \
448 "GMM", \
449 "GUI", \
450 "GVMM", \
451 "HGCM", \
452 "HWACCM", \
453 "IEM", \
454 "IOM", \
455 "IPC", \
456 "MAIN", \
457 "MISC", \
458 "MM", \
459 "MM_HEAP", \
460 "MM_HYPER", \
461 "MM_HYPER_HEAP",\
462 "MM_PHYS", \
463 "MM_POOL", \
464 "NAT_SERVICE", \
465 "NET_ADP_DRV", \
466 "NET_FLT_DRV", \
467 "NET_SERVICE", \
468 "PATM", \
469 "PDM", \
470 "PDM_ASYNC_COMPLETION", \
471 "PDM_BLK_CACHE", \
472 "PDM_DEVICE", \
473 "PDM_DRIVER", \
474 "PDM_LDR", \
475 "PDM_QUEUE", \
476 "PGM", \
477 "PGM_DYNMAP", \
478 "PGM_PHYS", \
479 "PGM_PHYS_ACCESS",\
480 "PGM_POOL", \
481 "PGM_SHARED", \
482 "REM", \
483 "REM_DISAS", \
484 "REM_HANDLER", \
485 "REM_IOPORT", \
486 "REM_MMIO", \
487 "REM_PRINTF", \
488 "REM_RUN", \
489 "SELM", \
490 "SHARED_CLIPBOARD",\
491 "SHARED_CROPENGL",\
492 "SHARED_FOLDERS",\
493 "SHARED_OPENGL",\
494 "SRV_INTNET", \
495 "SSM", \
496 "STAM", \
497 "SUP", \
498 "SUP_DRV", \
499 "TM", \
500 "TRPM", \
501 "USB_DRV", \
502 "USB_FILTER", \
503 "USB_KBD", \
504 "USB_MSD", \
505 "USB_WEBCAM", \
506 "VD", \
507 "VD_ISCSI", \
508 "VD_PARALLELS", \
509 "VD_RAW", \
510 "VD_VDI", \
511 "VD_VHD", \
512 "VD_VMDK", \
513 "VM", \
514 "VMM", \
515 "VRDP", \
516 "VSCSI", \
517 "WEBSERVICE", \
518}
519
520/** @} */
521#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