VirtualBox

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

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

LsiLogic: Update

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