VirtualBox

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

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

Fix forgotten log group define.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.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 (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 Parallel Driver group */
149 LOG_GROUP_DRV_HOST_PARALLEL,
150 /** Host Serial Driver Group */
151 LOG_GROUP_DRV_HOST_SERIAL,
152 /** The internal networking transport driver group. */
153 LOG_GROUP_DRV_INTNET,
154 /** iSCSI Initiator driver group. */
155 LOG_GROUP_DRV_ISCSI,
156 /** iSCSI TCP transport driver group. */
157 LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
158 /** ISO (CD/DVD) media driver group. */
159 LOG_GROUP_DRV_ISO,
160 /** Keyboard Queue driver group. */
161 LOG_GROUP_DRV_KBD_QUEUE,
162 /** lwIP IP stack driver group. */
163 LOG_GROUP_DRV_LWIP,
164 /** Mouse Queue driver group. */
165 LOG_GROUP_DRV_MOUSE_QUEUE,
166 /** Named Pipe stream driver group. */
167 LOG_GROUP_DRV_NAMEDPIPE,
168 /** NAT network transport driver group */
169 LOG_GROUP_DRV_NAT,
170 /** Raw image driver group */
171 LOG_GROUP_DRV_RAW_IMAGE,
172 /** Async transport driver group */
173 LOG_GROUP_DRV_TRANSPORT_ASYNC,
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 /** Raw virtual disk backend. */
277 LOG_GROUP_VD_RAW,
278 /** VDI virtual disk backend. */
279 LOG_GROUP_VD_VDI,
280 /** VHD virtual disk backend. */
281 LOG_GROUP_VD_VHD,
282 /** VMDK virtual disk backend. */
283 LOG_GROUP_VD_VMDK,
284 /** VM group. */
285 LOG_GROUP_VM,
286 /** VMM group. */
287 LOG_GROUP_VMM,
288 /** VRDP group */
289 LOG_GROUP_VRDP
290 /* !!!ALPHABETICALLY!!! */
291} VBOX_LOGGROUP;
292
293
294/** @def VBOX_LOGGROUP_NAMES
295 * VirtualBox Logging group names.
296 *
297 * Must correspond 100% to LOGGROUP!
298 * Don't forget commas!
299 *
300 * @remark It should be pretty obvious, but just to have
301 * mentioned it, the values are sorted alphabetically (using the
302 * english alphabet) except for _DEFAULT which is always first.
303 *
304 * If anyone might be wondering what the alphabet looks like:
305 * 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
306 */
307#define VBOX_LOGGROUP_NAMES \
308{ \
309 RT_LOGGROUP_NAMES, \
310 "DEFAULT", \
311 "CFGM", \
312 "CPUM", \
313 "CSAM", \
314 "DBGC", \
315 "DBGF", \
316 "DBGF_INFO", \
317 "DBGG", \
318 "DEV", \
319 "DEV_ACPI", \
320 "DEV_AHCI", \
321 "DEV_APIC", \
322 "DEV_AUDIO", \
323 "DEV_DMA", \
324 "DEV_E1000", \
325 "DEV_FDC", \
326 "DEV_IDE", \
327 "DEV_INIP", \
328 "DEV_KBD", \
329 "DEV_NE2000", \
330 "DEV_PARALLEL", \
331 "DEV_PC", \
332 "DEV_PC_ARCH", \
333 "DEV_PC_BIOS", \
334 "DEV_PCI", \
335 "DEV_PCNET", \
336 "DEV_PIC", \
337 "DEV_PIT", \
338 "DEV_RTC", \
339 "DEV_SERIAL", \
340 "DEV_USB", \
341 "DEV_VGA", \
342 "DEV_VMM", \
343 "DEV_VMM_BACKDOOR", \
344 "DEV_VMM_STDERR",\
345 "DIS", \
346 "DRV", \
347 "DRV_ACPI", \
348 "DRV_BLOCK", \
349 "DRV_CHAR", \
350 "DRV_FLOPPY", \
351 "DRV_HOST_BASE", \
352 "DRV_HOST_DVD", \
353 "DRV_HOST_FLOPPY", \
354 "DRV_HOST_PARALLEL", \
355 "DRV_HOST_SERIAL", \
356 "DRV_INTNET", \
357 "DRV_ISCSI", \
358 "DRV_ISCSI_TRANSPORT_TCP", \
359 "DRV_ISO", \
360 "DRV_KBD_QUEUE", \
361 "DRV_LWIP", \
362 "DRV_MOUSE_QUEUE", \
363 "DRV_NAMEDPIPE", \
364 "DRV_NAT", \
365 "DRV_RAW_IMAGE", \
366 "DRV_TRANSPORT_ASYNC", \
367 "DRV_TUN", \
368 "DRV_USBPROXY", \
369 "DRV_VBOXHDD", \
370 "DRV_VD", \
371 "DRV_VSWITCH", \
372 "DRV_VUSB", \
373 "EM", \
374 "GMM", \
375 "GUI", \
376 "GVMM", \
377 "HGCM", \
378 "HWACCM", \
379 "IOM", \
380 "IPC", \
381 "MAIN", \
382 "MISC", \
383 "MM", \
384 "MM_HEAP", \
385 "MM_HYPER", \
386 "MM_HYPER_HEAP",\
387 "MM_PHYS", \
388 "MM_POOL", \
389 "PATM", \
390 "PDM", \
391 "PDM_ASYNC_COMPLETION", \
392 "PDM_DEVICE", \
393 "PDM_DRIVER", \
394 "PDM_LDR", \
395 "PDM_QUEUE", \
396 "PGM", \
397 "PGMCACHE", \
398 "PGM_PHYS", \
399 "PGM_PHYS_ACCESS",\
400 "PGM_POOL", \
401 "REM", \
402 "REM_DISAS", \
403 "REM_HANDLER", \
404 "REM_IOPORT", \
405 "REM_MMIO", \
406 "REM_PRINTF", \
407 "REM_RUN", \
408 "SELM", \
409 "SHARED_FOLDERS",\
410 "SHARED_OPENGL",\
411 "SRV_INTNET", \
412 "SSM", \
413 "STAM", \
414 "SUP", \
415 "TM", \
416 "TRPM", \
417 "VD", \
418 "VD_RAW", \
419 "VD_VDI", \
420 "VD_VHD", \
421 "VD_VMDK", \
422 "VM", \
423 "VMM", \
424 "VRDP", \
425}
426
427/** @} */
428#endif
429
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