log.h revision 38ffbe9d3bbeb49e4100cccc7cbfc38e9703f148
/** @file
* VirtualBox - Logging.
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ___VBox_log_h
#define ___VBox_log_h
/*
* Set the default loggroup.
*/
#ifndef LOG_GROUP
# define LOG_GROUP LOG_GROUP_DEFAULT
#endif
/** @defgroup grp_rt_vbox_log VirtualBox Logging
* @ingroup grp_rt_vbox
* @{
*/
/** PC port for debug output */
#define RTLOG_DEBUG_PORT 0x504
/**
* VirtualBox Logging Groups.
* (Remember to update LOGGROUP_NAMES!)
*
* @remark It should be pretty obvious, but just to have
* mentioned it, the values are sorted alphabetically (using the
* english alphabet) except for _DEFAULT which is always first.
*
* If anyone might be wondering what the alphabet looks like:
* 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 _
*/
typedef enum LOGGROUP
{
/** The default VBox group. */
/** CFGM group. */
/** CPUM group. */
/** CSAM group. */
/** Debug Console group. */
/** DBGF group. */
/** DBGF info group. */
/** The debugger gui. */
/** Generic Device group. */
/** ACPI Device group. */
/** AHCI Device group. */
/** APIC Device group. */
/** Audio Device group. */
/** BusLogic SCSI host adapter group. */
/** DMA Controller group. */
/** Gigabit Ethernet Device group. */
/** Extensible Firmware Interface Device group. */
/** Floppy Controller Device group. */
/** High Precision Event Timer Device group. */
/** IDE Device group. */
/** The internal networking IP stack Device group. */
/** KeyBoard Controller Device group. */
/** Low Pin Count Device group. */
/** LsiLogic SCSI controller Device group. */
/** NE2000 Device group. */
/** Parallel Device group */
/** PC Device group. */
/** PC Architecture Device group. */
/** PC BIOS Device group. */
/** PCI Device group. */
/** PCNet Device group. */
/** PIC Device group. */
/** PIT Device group. */
/** RTC Device group. */
/** Serial Device group */
/** System Management Controller Device group. */
/** USB Device group. */
/** VGA Device group. */
/** Virtio PCI Device group. */
/** Virtio Network Device group. */
/** VMM Device group. */
/** VMM Device group for backdoor logging. */
/** VMM Device group for logging guest backdoor logging to stderr. */
/** Disassembler group. */
/** Generic driver group. */
/** ACPI driver group */
/** Block driver group. */
/** Char driver group. */
/** Floppy media driver group. */
/** Host Base block driver group. */
/** Host DVD block driver group. */
/** Host floppy block driver group. */
/** Host Parallel Driver group */
/** Host Serial Driver Group */
/** The internal networking transport driver group. */
/** iSCSI Initiator driver group. */
/** iSCSI TCP transport driver group. */
/** Keyboard Queue driver group. */
/** lwIP IP stack driver group. */
/** Mouse Queue driver group. */
/** Named Pipe stream driver group. */
/** NAT network transport driver group */
/** Raw image driver group */
/** SCSI driver group. */
/** Host SCSI driver group. */
/** Async transport driver group */
/** TUN network transport driver group */
/** USB Proxy driver group. */
/** VBoxHDD media driver group. */
/** VBox HDD container media driver group. */
/** Virtual Switch transport driver group */
/** VUSB driver group */
/** EM group. */
/** GMM group. */
/** GUI group. */
/** GVMM group. */
/** HGCM group */
/** HWACCM group. */
/** IOM group. */
/** XPCOM IPC group. */
/** Main group. */
/** Misc. group intended for external use only. */
/** MM group. */
/** MM group. */
/** MM group. */
/** MM Hypervisor Heap group. */
/** MM Page pool group. */
/** The NAT service group */
/** The network adaptor driver group. */
/** The network filter driver group. */
/** The common network service group */
/** PATM group. */
/** PDM group. */
/** PDM Async completion group. */
/** PDM Device group. */
/** PDM Driver group. */
/** PDM Loader group. */
/** PDM Loader group. */
/** PGM group. */
/** PGM physical group. */
/** PGM physical access group. */
/** PGM shadow page pool group. */
/** REM group. */
/** REM disassembly handler group. */
/** REM access handler group. */
/** REM I/O port access group. */
/** REM MMIO access group. */
/** REM Printf. */
/** REM running group. */
/** SELM group. */
/** Shared clipboard host service group. */
/** Chromium OpenGL host service group. */
/** Shared folders host service group. */
/** OpenGL host service group. */
/** The internal networking service group. */
/** SSM group. */
/** STAM group. */
/** SUP group. */
/** SUPport driver group. */
/** TM group. */
/** TRPM group. */
/** USB driver group. */
/** USBFilter group. */
/** Generic virtual disk layer. */
/** iSCSI virtual disk backend. */
/** Raw virtual disk backend. */
/** VDI virtual disk backend. */
/** VHD virtual disk backend. */
/** VMDK virtual disk backend. */
/** VM group. */
/** VMM group. */
/** VRDP group */
/** Webservice group. */
/* !!!ALPHABETICALLY!!! */
/** @def VBOX_LOGGROUP_NAMES
* VirtualBox Logging group names.
*
* Must correspond 100% to LOGGROUP!
* Don't forget commas!
*
* @remark It should be pretty obvious, but just to have
* mentioned it, the values are sorted alphabetically (using the
* english alphabet) except for _DEFAULT which is always first.
*
* If anyone might be wondering what the alphabet looks like:
* 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
*/
#define VBOX_LOGGROUP_NAMES \
{ \
"DEFAULT", \
"CFGM", \
"CPUM", \
"CSAM", \
"DBGC", \
"DBGF", \
"DBGF_INFO", \
"DBGG", \
"DEV", \
"DEV_ACPI", \
"DEV_AHCI", \
"DEV_APIC", \
"DEV_AUDIO", \
"DEV_BUSLOGIC", \
"DEV_DMA", \
"DEV_E1000", \
"DEV_EFI", \
"DEV_FDC", \
"DEV_HPET", \
"DEV_IDE", \
"DEV_INIP", \
"DEV_KBD", \
"DEV_LPC", \
"DEV_LSILOGICSCSI", \
"DEV_NE2000", \
"DEV_PARALLEL", \
"DEV_PC", \
"DEV_PC_ARCH", \
"DEV_PC_BIOS", \
"DEV_PCI", \
"DEV_PCNET", \
"DEV_PIC", \
"DEV_PIT", \
"DEV_RTC", \
"DEV_SERIAL", \
"DEV_SMC", \
"DEV_USB", \
"DEV_VGA", \
"DEV_VIRTIO", \
"DEV_VIRTIO_NET", \
"DEV_VMM", \
"DEV_VMM_BACKDOOR", \
"DEV_VMM_STDERR",\
"DIS", \
"DRV", \
"DRV_ACPI", \
"DRV_BLOCK", \
"DRV_CHAR", \
"DRV_FLOPPY", \
"DRV_HOST_BASE", \
"DRV_HOST_DVD", \
"DRV_HOST_FLOPPY", \
"DRV_HOST_PARALLEL", \
"DRV_HOST_SERIAL", \
"DRV_INTNET", \
"DRV_ISCSI", \
"DRV_ISCSI_TRANSPORT_TCP", \
"DRV_ISO", \
"DRV_KBD_QUEUE", \
"DRV_LWIP", \
"DRV_MOUSE_QUEUE", \
"DRV_NAMEDPIPE", \
"DRV_NAT", \
"DRV_RAW_IMAGE", \
"DRV_SCSI", \
"DRV_SCSIHOST", \
"DRV_TRANSPORT_ASYNC", \
"DRV_TUN", \
"DRV_USBPROXY", \
"DRV_VBOXHDD", \
"DRV_VD", \
"DRV_VSWITCH", \
"DRV_VUSB", \
"EM", \
"GMM", \
"GUI", \
"GVMM", \
"HGCM", \
"HWACCM", \
"IOM", \
"IPC", \
"MAIN", \
"MISC", \
"MM", \
"MM_HEAP", \
"MM_HYPER", \
"MM_HYPER_HEAP",\
"MM_PHYS", \
"MM_POOL", \
"NAT_SERVICE", \
"NET_ADP_DRV", \
"NET_FLT_DRV", \
"NET_SERVICE", \
"PATM", \
"PDM", \
"PDM_ASYNC_COMPLETION", \
"PDM_DEVICE", \
"PDM_DRIVER", \
"PDM_LDR", \
"PDM_QUEUE", \
"PGM", \
"PGM_PHYS", \
"PGM_PHYS_ACCESS",\
"PGM_POOL", \
"REM", \
"REM_DISAS", \
"REM_HANDLER", \
"REM_IOPORT", \
"REM_MMIO", \
"REM_PRINTF", \
"REM_RUN", \
"SELM", \
"SHARED_CLIPBOARD",\
"SHARED_CROPENGL",\
"SHARED_FOLDERS",\
"SHARED_OPENGL",\
"SRV_INTNET", \
"SSM", \
"STAM", \
"SUP", \
"SUP_DRV", \
"TM", \
"TRPM", \
"USB_DRV", \
"USB_FILTER", \
"VD", \
"VD_ISCSI", \
"VD_RAW", \
"VD_VDI", \
"VD_VHD", \
"VD_VMDK", \
"VM", \
"VMM", \
"VRDP", \
"WEBSERVICE", \
}
/** @} */
#endif