VirtualBox

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

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

GuestHost/SharedClipboard: pass pointers instead of using globals whereever possible

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.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 /** BusLogic SCSI host adapter group. */
91 LOG_GROUP_DEV_BUSLOGIC,
92 /** DMA Controller group. */
93 LOG_GROUP_DEV_DMA,
94 /** Gigabit Ethernet Device group. */
95 LOG_GROUP_DEV_E1000,
96 /** Extensible Firmware Interface Device group. */
97 LOG_GROUP_DEV_EFI,
98 /** Floppy Controller Device group. */
99 LOG_GROUP_DEV_FDC,
100 /** High Precision Event Timer Device group. */
101 LOG_GROUP_DEV_HPET,
102 /** IDE Device group. */
103 LOG_GROUP_DEV_IDE,
104 /** The internal networking IP stack Device group. */
105 LOG_GROUP_DEV_INIP,
106 /** KeyBoard Controller Device group. */
107 LOG_GROUP_DEV_KBD,
108 /** Low Pin Count Device group. */
109 LOG_GROUP_DEV_LPC,
110 /** LsiLogic SCSI controller Device group. */
111 LOG_GROUP_DEV_LSILOGICSCSI,
112 /** NE2000 Device group. */
113 LOG_GROUP_DEV_NE2000,
114 /** Parallel Device group */
115 LOG_GROUP_DEV_PARALLEL,
116 /** PC Device group. */
117 LOG_GROUP_DEV_PC,
118 /** PC Architecture Device group. */
119 LOG_GROUP_DEV_PC_ARCH,
120 /** PC BIOS Device group. */
121 LOG_GROUP_DEV_PC_BIOS,
122 /** PCI Device group. */
123 LOG_GROUP_DEV_PCI,
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 /** VMM Device group. */
141 LOG_GROUP_DEV_VMM,
142 /** VMM Device group for backdoor logging. */
143 LOG_GROUP_DEV_VMM_BACKDOOR,
144 /** VMM Device group for logging guest backdoor logging to stderr. */
145 LOG_GROUP_DEV_VMM_STDERR,
146 /** Disassembler group. */
147 LOG_GROUP_DIS,
148 /** Generic driver group. */
149 LOG_GROUP_DRV,
150 /** ACPI driver group */
151 LOG_GROUP_DRV_ACPI,
152 /** Block driver group. */
153 LOG_GROUP_DRV_BLOCK,
154 /** Char driver group. */
155 LOG_GROUP_DRV_CHAR,
156 /** Floppy media driver group. */
157 LOG_GROUP_DRV_FLOPPY,
158 /** Host Base block driver group. */
159 LOG_GROUP_DRV_HOST_BASE,
160 /** Host DVD block driver group. */
161 LOG_GROUP_DRV_HOST_DVD,
162 /** Host floppy block driver group. */
163 LOG_GROUP_DRV_HOST_FLOPPY,
164 /** Host Parallel Driver group */
165 LOG_GROUP_DRV_HOST_PARALLEL,
166 /** Host Serial Driver Group */
167 LOG_GROUP_DRV_HOST_SERIAL,
168 /** The internal networking transport driver group. */
169 LOG_GROUP_DRV_INTNET,
170 /** iSCSI Initiator driver group. */
171 LOG_GROUP_DRV_ISCSI,
172 /** iSCSI TCP transport driver group. */
173 LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
174 /** ISO (CD/DVD) media driver group. */
175 LOG_GROUP_DRV_ISO,
176 /** Keyboard Queue driver group. */
177 LOG_GROUP_DRV_KBD_QUEUE,
178 /** lwIP IP stack driver group. */
179 LOG_GROUP_DRV_LWIP,
180 /** Mouse Queue driver group. */
181 LOG_GROUP_DRV_MOUSE_QUEUE,
182 /** Named Pipe stream driver group. */
183 LOG_GROUP_DRV_NAMEDPIPE,
184 /** NAT network transport driver group */
185 LOG_GROUP_DRV_NAT,
186 /** Raw image driver group */
187 LOG_GROUP_DRV_RAW_IMAGE,
188 /** SCSI driver group. */
189 LOG_GROUP_DRV_SCSI,
190 /** Host SCSI driver group. */
191 LOG_GROUP_DRV_SCSIHOST,
192 /** Async transport driver group */
193 LOG_GROUP_DRV_TRANSPORT_ASYNC,
194 /** TUN network transport driver group */
195 LOG_GROUP_DRV_TUN,
196 /** USB Proxy driver group. */
197 LOG_GROUP_DRV_USBPROXY,
198 /** VBoxHDD media driver group. */
199 LOG_GROUP_DRV_VBOXHDD,
200 /** VBox HDD container media driver group. */
201 LOG_GROUP_DRV_VD,
202 /** Virtual Switch transport driver group */
203 LOG_GROUP_DRV_VSWITCH,
204 /** VUSB driver group */
205 LOG_GROUP_DRV_VUSB,
206 /** EM group. */
207 LOG_GROUP_EM,
208 /** GMM group. */
209 LOG_GROUP_GMM,
210 /** GUI group. */
211 LOG_GROUP_GUI,
212 /** GVMM group. */
213 LOG_GROUP_GVMM,
214 /** HGCM group */
215 LOG_GROUP_HGCM,
216 /** HWACCM group. */
217 LOG_GROUP_HWACCM,
218 /** IOM group. */
219 LOG_GROUP_IOM,
220 /** XPCOM IPC group. */
221 LOG_GROUP_IPC,
222 /** Main group. */
223 LOG_GROUP_MAIN,
224 /** Misc. group intended for external use only. */
225 LOG_GROUP_MISC,
226 /** MM group. */
227 LOG_GROUP_MM,
228 /** MM group. */
229 LOG_GROUP_MM_HEAP,
230 /** MM group. */
231 LOG_GROUP_MM_HYPER,
232 /** MM Hypervisor Heap group. */
233 LOG_GROUP_MM_HYPER_HEAP,
234 /** MM Physical/Ram group. */
235 LOG_GROUP_MM_PHYS,
236 /** MM Page pool group. */
237 LOG_GROUP_MM_POOL,
238 /** The network adaptor driver group. */
239 LOG_GROUP_NET_ADP_DRV,
240 /** The network filter driver group. */
241 LOG_GROUP_NET_FLT_DRV,
242 /** PATM group. */
243 LOG_GROUP_PATM,
244 /** PDM group. */
245 LOG_GROUP_PDM,
246 /** PDM Async completion group. */
247 LOG_GROUP_PDM_ASYNC_COMPLETION,
248 /** PDM Device group. */
249 LOG_GROUP_PDM_DEVICE,
250 /** PDM Driver group. */
251 LOG_GROUP_PDM_DRIVER,
252 /** PDM Loader group. */
253 LOG_GROUP_PDM_LDR,
254 /** PDM Loader group. */
255 LOG_GROUP_PDM_QUEUE,
256 /** PGM group. */
257 LOG_GROUP_PGM,
258 /** PGM physical group. */
259 LOG_GROUP_PGM_PHYS,
260 /** PGM physical access group. */
261 LOG_GROUP_PGM_PHYS_ACCESS,
262 /** PGM shadow page pool group. */
263 LOG_GROUP_PGM_POOL,
264 /** REM group. */
265 LOG_GROUP_REM,
266 /** REM disassembly handler group. */
267 LOG_GROUP_REM_DISAS,
268 /** REM access handler group. */
269 LOG_GROUP_REM_HANDLER,
270 /** REM I/O port access group. */
271 LOG_GROUP_REM_IOPORT,
272 /** REM MMIO access group. */
273 LOG_GROUP_REM_MMIO,
274 /** REM Printf. */
275 LOG_GROUP_REM_PRINTF,
276 /** REM running group. */
277 LOG_GROUP_REM_RUN,
278 /** SELM group. */
279 LOG_GROUP_SELM,
280 /** Shared clipboard host service group. */
281 LOG_GROUP_SHARED_CLIPBOARD,
282 /** Chromium OpenGL host service group. */
283 LOG_GROUP_SHARED_CROPENGL,
284 /** Shared folders host service group. */
285 LOG_GROUP_SHARED_FOLDERS,
286 /** OpenGL host service group. */
287 LOG_GROUP_SHARED_OPENGL,
288 /** The internal networking service group. */
289 LOG_GROUP_SRV_INTNET,
290 /** SSM group. */
291 LOG_GROUP_SSM,
292 /** STAM group. */
293 LOG_GROUP_STAM,
294 /** SUP group. */
295 LOG_GROUP_SUP,
296 /** SUPport driver group. */
297 LOG_GROUP_SUP_DRV,
298 /** TM group. */
299 LOG_GROUP_TM,
300 /** TRPM group. */
301 LOG_GROUP_TRPM,
302 /** USB driver group. */
303 LOG_GROUP_USB_DRV,
304 /** USBFilter group. */
305 LOG_GROUP_USB_FILTER,
306 /** Generic virtual disk layer. */
307 LOG_GROUP_VD,
308 /** iSCSI virtual disk backend. */
309 LOG_GROUP_VD_ISCSI,
310 /** Raw virtual disk backend. */
311 LOG_GROUP_VD_RAW,
312 /** VDI virtual disk backend. */
313 LOG_GROUP_VD_VDI,
314 /** VHD virtual disk backend. */
315 LOG_GROUP_VD_VHD,
316 /** VMDK virtual disk backend. */
317 LOG_GROUP_VD_VMDK,
318 /** VM group. */
319 LOG_GROUP_VM,
320 /** VMM group. */
321 LOG_GROUP_VMM,
322 /** VRDP group */
323 LOG_GROUP_VRDP
324 /* !!!ALPHABETICALLY!!! */
325} VBOX_LOGGROUP;
326
327
328/** @def VBOX_LOGGROUP_NAMES
329 * VirtualBox Logging group names.
330 *
331 * Must correspond 100% to LOGGROUP!
332 * Don't forget commas!
333 *
334 * @remark It should be pretty obvious, but just to have
335 * mentioned it, the values are sorted alphabetically (using the
336 * english alphabet) except for _DEFAULT which is always first.
337 *
338 * If anyone might be wondering what the alphabet looks like:
339 * 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
340 */
341#define VBOX_LOGGROUP_NAMES \
342{ \
343 RT_LOGGROUP_NAMES, \
344 "DEFAULT", \
345 "CFGM", \
346 "CPUM", \
347 "CSAM", \
348 "DBGC", \
349 "DBGF", \
350 "DBGF_INFO", \
351 "DBGG", \
352 "DEV", \
353 "DEV_ACPI", \
354 "DEV_AHCI", \
355 "DEV_APIC", \
356 "DEV_AUDIO", \
357 "DEV_BUSLOGIC", \
358 "DEV_DMA", \
359 "DEV_E1000", \
360 "DEV_EFI", \
361 "DEV_FDC", \
362 "DEV_HPET", \
363 "DEV_IDE", \
364 "DEV_INIP", \
365 "DEV_KBD", \
366 "DEV_LPC", \
367 "DEV_LSILOGICSCSI", \
368 "DEV_NE2000", \
369 "DEV_PARALLEL", \
370 "DEV_PC", \
371 "DEV_PC_ARCH", \
372 "DEV_PC_BIOS", \
373 "DEV_PCI", \
374 "DEV_PCNET", \
375 "DEV_PIC", \
376 "DEV_PIT", \
377 "DEV_RTC", \
378 "DEV_SERIAL", \
379 "DEV_SMC", \
380 "DEV_USB", \
381 "DEV_VGA", \
382 "DEV_VMM", \
383 "DEV_VMM_BACKDOOR", \
384 "DEV_VMM_STDERR",\
385 "DIS", \
386 "DRV", \
387 "DRV_ACPI", \
388 "DRV_BLOCK", \
389 "DRV_CHAR", \
390 "DRV_FLOPPY", \
391 "DRV_HOST_BASE", \
392 "DRV_HOST_DVD", \
393 "DRV_HOST_FLOPPY", \
394 "DRV_HOST_PARALLEL", \
395 "DRV_HOST_SERIAL", \
396 "DRV_INTNET", \
397 "DRV_ISCSI", \
398 "DRV_ISCSI_TRANSPORT_TCP", \
399 "DRV_ISO", \
400 "DRV_KBD_QUEUE", \
401 "DRV_LWIP", \
402 "DRV_MOUSE_QUEUE", \
403 "DRV_NAMEDPIPE", \
404 "DRV_NAT", \
405 "DRV_RAW_IMAGE", \
406 "DRV_SCSI", \
407 "DRV_SCSIHOST", \
408 "DRV_TRANSPORT_ASYNC", \
409 "DRV_TUN", \
410 "DRV_USBPROXY", \
411 "DRV_VBOXHDD", \
412 "DRV_VD", \
413 "DRV_VSWITCH", \
414 "DRV_VUSB", \
415 "EM", \
416 "GMM", \
417 "GUI", \
418 "GVMM", \
419 "HGCM", \
420 "HWACCM", \
421 "IOM", \
422 "IPC", \
423 "MAIN", \
424 "MISC", \
425 "MM", \
426 "MM_HEAP", \
427 "MM_HYPER", \
428 "MM_HYPER_HEAP",\
429 "MM_PHYS", \
430 "MM_POOL", \
431 "NET_ADP_DRV", \
432 "NET_FLT_DRV", \
433 "PATM", \
434 "PDM", \
435 "PDM_ASYNC_COMPLETION", \
436 "PDM_DEVICE", \
437 "PDM_DRIVER", \
438 "PDM_LDR", \
439 "PDM_QUEUE", \
440 "PGM", \
441 "PGM_PHYS", \
442 "PGM_PHYS_ACCESS",\
443 "PGM_POOL", \
444 "REM", \
445 "REM_DISAS", \
446 "REM_HANDLER", \
447 "REM_IOPORT", \
448 "REM_MMIO", \
449 "REM_PRINTF", \
450 "REM_RUN", \
451 "SELM", \
452 "SHARED_CLIPBOARD",\
453 "SHARED_CROPENGL",\
454 "SHARED_FOLDERS",\
455 "SHARED_OPENGL",\
456 "SRV_INTNET", \
457 "SSM", \
458 "STAM", \
459 "SUP", \
460 "SUP_DRV", \
461 "TM", \
462 "TRPM", \
463 "USB_DRV", \
464 "USB_FILTER", \
465 "VD", \
466 "VD_ISCSI", \
467 "VD_RAW", \
468 "VD_VDI", \
469 "VD_VHD", \
470 "VD_VMDK", \
471 "VM", \
472 "VMM", \
473 "VRDP", \
474}
475
476/** @} */
477#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