VirtualBox

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

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

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.1 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 (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 /** CPUM group. */
65 LOG_GROUP_CPUM,
66 /** CSAM group. */
67 LOG_GROUP_CSAM,
68 /** Debug Console group. */
69 LOG_GROUP_DBGC,
70 /** DBGF group. */
71 LOG_GROUP_DBGF,
72 /** DBGF info group. */
73 LOG_GROUP_DBGF_INFO,
74 /** The debugger gui. */
75 LOG_GROUP_DBGG,
76 /** Generic Device group. */
77 LOG_GROUP_DEV,
78 /** ACPI Device group. */
79 LOG_GROUP_DEV_ACPI,
80 /** AHCI Device group. */
81 LOG_GROUP_DEV_AHCI,
82 /** APIC Device group. */
83 LOG_GROUP_DEV_APIC,
84 /** Audio Device group. */
85 LOG_GROUP_DEV_AUDIO,
86 /** DMA Controller group. */
87 LOG_GROUP_DEV_DMA,
88 /** Gigabit Ethernet Device group. */
89 LOG_GROUP_DEV_E1000,
90 /** Floppy Controller Device group. */
91 LOG_GROUP_DEV_FDC,
92 /** IDE Device group. */
93 LOG_GROUP_DEV_IDE,
94 /** The internal networking IP stack Device group. */
95 LOG_GROUP_DEV_INIP,
96 /** KeyBoard Controller Device group. */
97 LOG_GROUP_DEV_KBD,
98 /** NE2000 Device group. */
99 LOG_GROUP_DEV_NE2000,
100 /** Parallel Device group */
101 LOG_GROUP_DEV_PARALLEL,
102 /** PC Device group. */
103 LOG_GROUP_DEV_PC,
104 /** PC Architecture Device group. */
105 LOG_GROUP_DEV_PC_ARCH,
106 /** PC BIOS Device group. */
107 LOG_GROUP_DEV_PC_BIOS,
108 /** PCI Device group. */
109 LOG_GROUP_DEV_PCI,
110 /** PCNet Device group. */
111 LOG_GROUP_DEV_PCNET,
112 /** PIC Device group. */
113 LOG_GROUP_DEV_PIC,
114 /** PIT Device group. */
115 LOG_GROUP_DEV_PIT,
116 /** RTC Device group. */
117 LOG_GROUP_DEV_RTC,
118 /** Serial Device group */
119 LOG_GROUP_DEV_SERIAL,
120 /** USB Device group. */
121 LOG_GROUP_DEV_USB,
122 /** VGA Device group. */
123 LOG_GROUP_DEV_VGA,
124 /** VMM Device group. */
125 LOG_GROUP_DEV_VMM,
126 /** VMM Device group for backdoor logging. */
127 LOG_GROUP_DEV_VMM_BACKDOOR,
128 /** VMM Device group for logging guest backdoor logging to stderr. */
129 LOG_GROUP_DEV_VMM_STDERR,
130 /** Disassembler group. */
131 LOG_GROUP_DIS,
132 /** Generic driver group. */
133 LOG_GROUP_DRV,
134 /** ACPI driver group */
135 LOG_GROUP_DRV_ACPI,
136 /** Block driver group. */
137 LOG_GROUP_DRV_BLOCK,
138 /** Char driver group. */
139 LOG_GROUP_DRV_CHAR,
140 /** Floppy media driver group. */
141 LOG_GROUP_DRV_FLOPPY,
142 /** Host Base block driver group. */
143 LOG_GROUP_DRV_HOST_BASE,
144 /** Host DVD block driver group. */
145 LOG_GROUP_DRV_HOST_DVD,
146 /** Host floppy block driver group. */
147 LOG_GROUP_DRV_HOST_FLOPPY,
148 /** Host hard disk (raw partition) media driver group. */
149 LOG_GROUP_DRV_HOST_HDD,
150 /** Host Parallel Driver group */
151 LOG_GROUP_DRV_HOST_PARALLEL,
152 /** Host Serial Driver Group */
153 LOG_GROUP_DRV_HOST_SERIAL,
154 /** The internal networking transport driver group. */
155 LOG_GROUP_DRV_INTNET,
156 /** iSCSI Initiator driver group. */
157 LOG_GROUP_DRV_ISCSI,
158 /** iSCSI TCP transport driver group. */
159 LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
160 /** ISO (CD/DVD) media driver group. */
161 LOG_GROUP_DRV_ISO,
162 /** Keyboard Queue driver group. */
163 LOG_GROUP_DRV_KBD_QUEUE,
164 /** lwIP IP stack driver group. */
165 LOG_GROUP_DRV_LWIP,
166 /** Mouse Queue driver group. */
167 LOG_GROUP_DRV_MOUSE_QUEUE,
168 /** Named Pipe stream driver group. */
169 LOG_GROUP_DRV_NAMEDPIPE,
170 /** NAT network transport driver group */
171 LOG_GROUP_DRV_NAT,
172 /** Raw image driver group */
173 LOG_GROUP_DRV_RAW_IMAGE,
174 /** TUN network transport driver group */
175 LOG_GROUP_DRV_TUN,
176 /** USB Proxy driver group. */
177 LOG_GROUP_DRV_USBPROXY,
178 /** VBoxHDD media driver group. */
179 LOG_GROUP_DRV_VBOXHDD,
180 /** VBox HDD container media driver group. */
181 LOG_GROUP_DRV_VD,
182 /** Virtual Switch transport driver group */
183 LOG_GROUP_DRV_VSWITCH,
184 /** VUSB driver group */
185 LOG_GROUP_DRV_VUSB,
186 /** EM group. */
187 LOG_GROUP_EM,
188 /** GMM group. */
189 LOG_GROUP_GMM,
190 /** GUI group. */
191 LOG_GROUP_GUI,
192 /** GVMM group. */
193 LOG_GROUP_GVMM,
194 /** HGCM group */
195 LOG_GROUP_HGCM,
196 /** HWACCM group. */
197 LOG_GROUP_HWACCM,
198 /** IOM group. */
199 LOG_GROUP_IOM,
200 /** XPCOM IPC group. */
201 LOG_GROUP_IPC,
202 /** Main group. */
203 LOG_GROUP_MAIN,
204 /** Misc. group intended for external use only. */
205 LOG_GROUP_MISC,
206 /** MM group. */
207 LOG_GROUP_MM,
208 /** MM group. */
209 LOG_GROUP_MM_HEAP,
210 /** MM group. */
211 LOG_GROUP_MM_HYPER,
212 /** MM Hypervisor Heap group. */
213 LOG_GROUP_MM_HYPER_HEAP,
214 /** MM Physical/Ram group. */
215 LOG_GROUP_MM_PHYS,
216 /** MM Page pool group. */
217 LOG_GROUP_MM_POOL,
218 /** PATM group. */
219 LOG_GROUP_PATM,
220 /** PDM group. */
221 LOG_GROUP_PDM,
222 /** PDM Async completion group. */
223 LOG_GROUP_PDM_ASYNC_COMPLETION,
224 /** PDM Device group. */
225 LOG_GROUP_PDM_DEVICE,
226 /** PDM Driver group. */
227 LOG_GROUP_PDM_DRIVER,
228 /** PDM Loader group. */
229 LOG_GROUP_PDM_LDR,
230 /** PDM Loader group. */
231 LOG_GROUP_PDM_QUEUE,
232 /** PGM group. */
233 LOG_GROUP_PGM,
234 /** PGMCACHE group. */
235 LOG_GROUP_PGMCACHE,
236 /** PGM physical group. */
237 LOG_GROUP_PGM_PHYS,
238 /** PGM physical access group. */
239 LOG_GROUP_PGM_PHYS_ACCESS,
240 /** PGM shadow page pool group. */
241 LOG_GROUP_PGM_POOL,
242 /** REM group. */
243 LOG_GROUP_REM,
244 /** REM disassembly handler group. */
245 LOG_GROUP_REM_DISAS,
246 /** REM access handler group. */
247 LOG_GROUP_REM_HANDLER,
248 /** REM I/O port access group. */
249 LOG_GROUP_REM_IOPORT,
250 /** REM MMIO access group. */
251 LOG_GROUP_REM_MMIO,
252 /** REM Printf. */
253 LOG_GROUP_REM_PRINTF,
254 /** REM running group. */
255 LOG_GROUP_REM_RUN,
256 /** SELM group. */
257 LOG_GROUP_SELM,
258 /** Shared folders host service group. */
259 LOG_GROUP_SHARED_FOLDERS,
260 /** OpenGL host service group. */
261 LOG_GROUP_SHARED_OPENGL,
262 /** The internal networking service group. */
263 LOG_GROUP_SRV_INTNET,
264 /** SSM group. */
265 LOG_GROUP_SSM,
266 /** STAM group. */
267 LOG_GROUP_STAM,
268 /** SUP group. */
269 LOG_GROUP_SUP,
270 /** TM group. */
271 LOG_GROUP_TM,
272 /** TRPM group. */
273 LOG_GROUP_TRPM,
274 /** Generic virtual disk layer. */
275 LOG_GROUP_VD,
276 /** VMDK virtual disk backend. */
277 LOG_GROUP_VD_VMDK,
278 /** VM group. */
279 LOG_GROUP_VM,
280 /** VMM group. */
281 LOG_GROUP_VMM,
282 /** VRDP group */
283 LOG_GROUP_VRDP
284 /* !!!ALPHABETICALLY!!! */
285} VBOX_LOGGROUP;
286
287
288/** @def VBOX_LOGGROUP_NAMES
289 * VirtualBox Logging group names.
290 *
291 * Must correspond 100% to LOGGROUP!
292 * Don't forget commas!
293 *
294 * @remark It should be pretty obvious, but just to have
295 * mentioned it, the values are sorted alphabetically (using the
296 * english alphabet) except for _DEFAULT which is always first.
297 *
298 * If anyone might be wondering what the alphabet looks like:
299 * 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
300 */
301#define VBOX_LOGGROUP_NAMES \
302{ \
303 RT_LOGGROUP_NAMES, \
304 "DEFAULT", \
305 "CFGM", \
306 "CPUM", \
307 "CSAM", \
308 "DBGC", \
309 "DBGF", \
310 "DBGF_INFO", \
311 "DBGG", \
312 "DEV", \
313 "DEV_ACPI", \
314 "DEV_AHCI", \
315 "DEV_APIC", \
316 "DEV_AUDIO", \
317 "DEV_DMA", \
318 "DEV_E1000", \
319 "DEV_FDC", \
320 "DEV_IDE", \
321 "DEV_INIP", \
322 "DEV_KBD", \
323 "DEV_NE2000", \
324 "DEV_PARALLEL", \
325 "DEV_PC", \
326 "DEV_PC_ARCH", \
327 "DEV_PC_BIOS", \
328 "DEV_PCI", \
329 "DEV_PCNET", \
330 "DEV_PIC", \
331 "DEV_PIT", \
332 "DEV_RTC", \
333 "DEV_SERIAL", \
334 "DEV_USB", \
335 "DEV_VGA", \
336 "DEV_VMM", \
337 "DEV_VMM_BACKDOOR", \
338 "DEV_VMM_STDERR",\
339 "DIS", \
340 "DRV", \
341 "DRV_ACPI", \
342 "DRV_BLOCK", \
343 "DRV_CHAR", \
344 "DRV_FLOPPY", \
345 "DRV_HOST_BASE", \
346 "DRV_HOST_DVD", \
347 "DRV_HOST_FLOPPY", \
348 "DRV_HOST_HDD", \
349 "DRV_HOST_PARALLEL", \
350 "DRV_HOST_SERIAL", \
351 "DRV_INTNET", \
352 "DRV_ISCSI", \
353 "DRV_ISCSI_TRANSPORT_TCP", \
354 "DRV_ISO", \
355 "DRV_KBD_QUEUE", \
356 "DRV_LWIP", \
357 "DRV_MOUSE_QUEUE", \
358 "DRV_NAMEDPIPE", \
359 "DRV_NAT", \
360 "DRV_RAW_IMAGE", \
361 "DRV_TUN", \
362 "DRV_USBPROXY", \
363 "DRV_VBOXHDD", \
364 "DRV_VD", \
365 "DRV_VSWITCH", \
366 "DRV_VUSB", \
367 "EM", \
368 "GMM", \
369 "GUI", \
370 "GVMM", \
371 "HGCM", \
372 "HWACCM", \
373 "IOM", \
374 "IPC", \
375 "MAIN", \
376 "MISC", \
377 "MM", \
378 "MM_HEAP", \
379 "MM_HYPER", \
380 "MM_HYPER_HEAP",\
381 "MM_PHYS", \
382 "MM_POOL", \
383 "PATM", \
384 "PDM", \
385 "PDM_ASYNC_COMPLETION", \
386 "PDM_DEVICE", \
387 "PDM_DRIVER", \
388 "PDM_LDR", \
389 "PDM_QUEUE", \
390 "PGM", \
391 "PGMCACHE", \
392 "PGM_PHYS", \
393 "PGM_PHYS_ACCESS",\
394 "PGM_POOL", \
395 "REM", \
396 "REM_DISAS", \
397 "REM_HANDLER", \
398 "REM_IOPORT", \
399 "REM_MMIO", \
400 "REM_PRINTF", \
401 "REM_RUN", \
402 "SELM", \
403 "SHARED_FOLDERS",\
404 "SHARED_OPENGL",\
405 "SRV_INTNET", \
406 "SSM", \
407 "STAM", \
408 "SUP", \
409 "TM", \
410 "TRPM", \
411 "VD", \
412 "VD_VMDK", \
413 "VM", \
414 "VMM", \
415 "VRDP", \
416}
417
418/** @} */
419#endif
420
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