Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

log.h

Go to the documentation of this file.
/** @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;
 * you can redistribute it and/or modify it under the terms of the GNU
 * 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

#include <iprt/log.h>


/** @defgroup grp_rt_vbox_log    VirtualBox Logging
 * @ingroup grp_rt_vbox
 * @{
 */

/** PC port for debug output */
00049 #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 _
 */
00062 typedef enum LOGGROUP
{
    /** The default VBox group. */
00065     LOG_GROUP_DEFAULT = RTLOGGROUP_FIRST_USER,
    /** CFGM group. */
00067     LOG_GROUP_CFGM,
    /** CPUM group. */
00069     LOG_GROUP_CPUM,
    /** CSAM group. */
00071     LOG_GROUP_CSAM,
    /** Debug Console group. */
00073     LOG_GROUP_DBGC,
    /** DBGF group. */
00075     LOG_GROUP_DBGF,
    /** DBGF info group. */
00077     LOG_GROUP_DBGF_INFO,
    /** The debugger gui. */
00079     LOG_GROUP_DBGG,
    /** Generic Device group. */
00081     LOG_GROUP_DEV,
    /** ACPI Device group. */
00083     LOG_GROUP_DEV_ACPI,
    /** AHCI Device group. */
00085     LOG_GROUP_DEV_AHCI,
    /** APIC Device group. */
00087     LOG_GROUP_DEV_APIC,
    /** Audio Device group. */
00089     LOG_GROUP_DEV_AUDIO,
    /** BusLogic SCSI host adapter group. */
00091     LOG_GROUP_DEV_BUSLOGIC,
    /** DMA Controller group. */
00093     LOG_GROUP_DEV_DMA,
    /** Gigabit Ethernet Device group. */
00095     LOG_GROUP_DEV_E1000,
    /** Extensible Firmware Interface Device group. */
00097     LOG_GROUP_DEV_EFI,
    /** Floppy Controller Device group. */
00099     LOG_GROUP_DEV_FDC,
    /** High Precision Event Timer Device group. */
00101     LOG_GROUP_DEV_HPET,
    /** IDE Device group. */
00103     LOG_GROUP_DEV_IDE,
    /** The internal networking IP stack Device group. */
00105     LOG_GROUP_DEV_INIP,
    /** KeyBoard Controller Device group. */
00107     LOG_GROUP_DEV_KBD,
    /** Low Pin Count Device group. */
00109     LOG_GROUP_DEV_LPC,
    /** LsiLogic SCSI controller Device group. */
00111     LOG_GROUP_DEV_LSILOGICSCSI,
    /** NE2000 Device group. */
00113     LOG_GROUP_DEV_NE2000,
    /** Parallel Device group */
00115     LOG_GROUP_DEV_PARALLEL,
    /** PC Device group. */
00117     LOG_GROUP_DEV_PC,
    /** PC Architecture Device group. */
00119     LOG_GROUP_DEV_PC_ARCH,
    /** PC BIOS Device group. */
00121     LOG_GROUP_DEV_PC_BIOS,
    /** PCI Device group. */
00123     LOG_GROUP_DEV_PCI,
    /** PCNet Device group. */
00125     LOG_GROUP_DEV_PCNET,
    /** PIC Device group. */
00127     LOG_GROUP_DEV_PIC,
    /** PIT Device group. */
00129     LOG_GROUP_DEV_PIT,
    /** RTC Device group. */
00131     LOG_GROUP_DEV_RTC,
    /** Serial Device group */
00133     LOG_GROUP_DEV_SERIAL,
    /** System Management Controller Device group. */
00135     LOG_GROUP_DEV_SMC,
    /** USB Device group. */
00137     LOG_GROUP_DEV_USB,
    /** VGA Device group. */
00139     LOG_GROUP_DEV_VGA,
    /** VMM Device group. */
00141     LOG_GROUP_DEV_VMM,
    /** VMM Device group for backdoor logging. */
00143     LOG_GROUP_DEV_VMM_BACKDOOR,
    /** VMM Device group for logging guest backdoor logging to stderr. */
00145     LOG_GROUP_DEV_VMM_STDERR,
    /** Disassembler group. */
00147     LOG_GROUP_DIS,
    /** Generic driver group. */
00149     LOG_GROUP_DRV,
    /** ACPI driver group */
00151     LOG_GROUP_DRV_ACPI,
    /** Block driver group. */
00153     LOG_GROUP_DRV_BLOCK,
    /** Char driver group. */
00155     LOG_GROUP_DRV_CHAR,
    /** Floppy media driver group. */
00157     LOG_GROUP_DRV_FLOPPY,
    /** Host Base block driver group. */
00159     LOG_GROUP_DRV_HOST_BASE,
    /** Host DVD block driver group. */
00161     LOG_GROUP_DRV_HOST_DVD,
    /** Host floppy block driver group. */
00163     LOG_GROUP_DRV_HOST_FLOPPY,
    /** Host Parallel Driver group */
00165     LOG_GROUP_DRV_HOST_PARALLEL,
    /** Host Serial Driver Group */
00167     LOG_GROUP_DRV_HOST_SERIAL,
    /** The internal networking transport driver group. */
00169     LOG_GROUP_DRV_INTNET,
    /** iSCSI Initiator driver group. */
00171     LOG_GROUP_DRV_ISCSI,
    /** iSCSI TCP transport driver group. */
00173     LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
    /** ISO (CD/DVD) media driver group. */
00175     LOG_GROUP_DRV_ISO,
    /** Keyboard Queue driver group. */
00177     LOG_GROUP_DRV_KBD_QUEUE,
    /** lwIP IP stack driver group. */
00179     LOG_GROUP_DRV_LWIP,
    /** Mouse Queue driver group. */
00181     LOG_GROUP_DRV_MOUSE_QUEUE,
    /** Named Pipe stream driver group. */
00183     LOG_GROUP_DRV_NAMEDPIPE,
    /** NAT network transport driver group */
00185     LOG_GROUP_DRV_NAT,
    /** Raw image driver group */
00187     LOG_GROUP_DRV_RAW_IMAGE,
    /** SCSI driver group. */
00189     LOG_GROUP_DRV_SCSI,
    /** Host SCSI driver group. */
00191     LOG_GROUP_DRV_SCSIHOST,
    /** Async transport driver group */
00193     LOG_GROUP_DRV_TRANSPORT_ASYNC,
    /** TUN network transport driver group */
00195     LOG_GROUP_DRV_TUN,
    /** USB Proxy driver group. */
00197     LOG_GROUP_DRV_USBPROXY,
    /** VBoxHDD media driver group. */
00199     LOG_GROUP_DRV_VBOXHDD,
    /** VBox HDD container media driver group. */
00201     LOG_GROUP_DRV_VD,
    /** Virtual Switch transport driver group */
00203     LOG_GROUP_DRV_VSWITCH,
    /** VUSB driver group */
00205     LOG_GROUP_DRV_VUSB,
    /** EM group. */
00207     LOG_GROUP_EM,
    /** GMM group. */
00209     LOG_GROUP_GMM,
    /** GUI group. */
00211     LOG_GROUP_GUI,
    /** GVMM group. */
00213     LOG_GROUP_GVMM,
    /** HGCM group */
00215     LOG_GROUP_HGCM,
    /** HWACCM group. */
00217     LOG_GROUP_HWACCM,
    /** IOM group. */
00219     LOG_GROUP_IOM,
    /** XPCOM IPC group. */
00221     LOG_GROUP_IPC,
    /** Main group. */
00223     LOG_GROUP_MAIN,
    /** Misc. group intended for external use only. */
00225     LOG_GROUP_MISC,
    /** MM group. */
00227     LOG_GROUP_MM,
    /** MM group. */
00229     LOG_GROUP_MM_HEAP,
    /** MM group. */
00231     LOG_GROUP_MM_HYPER,
    /** MM Hypervisor Heap group. */
00233     LOG_GROUP_MM_HYPER_HEAP,
    /** MM Physical/Ram group. */
00235     LOG_GROUP_MM_PHYS,
    /** MM Page pool group. */
00237     LOG_GROUP_MM_POOL,
    /** The network adaptor driver group. */
00239     LOG_GROUP_NET_ADP_DRV,
    /** The network filter driver group. */
00241     LOG_GROUP_NET_FLT_DRV,
    /** PATM group. */
00243     LOG_GROUP_PATM,
    /** PDM group. */
00245     LOG_GROUP_PDM,
    /** PDM Async completion group. */
00247     LOG_GROUP_PDM_ASYNC_COMPLETION,
    /** PDM Device group. */
00249     LOG_GROUP_PDM_DEVICE,
    /** PDM Driver group. */
00251     LOG_GROUP_PDM_DRIVER,
    /** PDM Loader group. */
00253     LOG_GROUP_PDM_LDR,
    /** PDM Loader group. */
00255     LOG_GROUP_PDM_QUEUE,
    /** PGM group. */
00257     LOG_GROUP_PGM,
    /** PGM physical group. */
00259     LOG_GROUP_PGM_PHYS,
    /** PGM physical access group. */
00261     LOG_GROUP_PGM_PHYS_ACCESS,
    /** PGM shadow page pool group. */
00263     LOG_GROUP_PGM_POOL,
    /** REM group. */
00265     LOG_GROUP_REM,
    /** REM disassembly handler group. */
00267     LOG_GROUP_REM_DISAS,
    /** REM access handler group. */
00269     LOG_GROUP_REM_HANDLER,
    /** REM I/O port access group. */
00271     LOG_GROUP_REM_IOPORT,
    /** REM MMIO access group. */
00273     LOG_GROUP_REM_MMIO,
    /** REM Printf. */
00275     LOG_GROUP_REM_PRINTF,
    /** REM running group. */
00277     LOG_GROUP_REM_RUN,
    /** SELM group. */
00279     LOG_GROUP_SELM,
    /** Shared clipboard host service group. */
00281     LOG_GROUP_SHARED_CLIPBOARD,
    /** Chromium OpenGL host service group. */
00283     LOG_GROUP_SHARED_CROPENGL,
    /** Shared folders host service group. */
00285     LOG_GROUP_SHARED_FOLDERS,
    /** OpenGL host service group. */
00287     LOG_GROUP_SHARED_OPENGL,
    /** The internal networking service group. */
00289     LOG_GROUP_SRV_INTNET,
    /** SSM group. */
00291     LOG_GROUP_SSM,
    /** STAM group. */
00293     LOG_GROUP_STAM,
    /** SUP group. */
00295     LOG_GROUP_SUP,
    /** SUPport driver group. */
00297     LOG_GROUP_SUP_DRV,
    /** TM group. */
00299     LOG_GROUP_TM,
    /** TRPM group. */
00301     LOG_GROUP_TRPM,
    /** USB driver group. */
00303     LOG_GROUP_USB_DRV,
    /** USBFilter group. */
00305     LOG_GROUP_USB_FILTER,
    /** Generic virtual disk layer. */
00307     LOG_GROUP_VD,
    /** iSCSI virtual disk backend. */
00309     LOG_GROUP_VD_ISCSI,
    /** Raw virtual disk backend. */
00311     LOG_GROUP_VD_RAW,
    /** VDI virtual disk backend. */
00313     LOG_GROUP_VD_VDI,
    /** VHD virtual disk backend. */
00315     LOG_GROUP_VD_VHD,
    /** VMDK virtual disk backend. */
00317     LOG_GROUP_VD_VMDK,
    /** VM group. */
00319     LOG_GROUP_VM,
    /** VMM group. */
00321     LOG_GROUP_VMM,
    /** VRDP group */
00323     LOG_GROUP_VRDP
    /* !!!ALPHABETICALLY!!! */
} VBOX_LOGGROUP;


/** @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
 */
00341 #define VBOX_LOGGROUP_NAMES \
{                   \
    RT_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_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",      \
    "NET_ADP_DRV",  \
    "NET_FLT_DRV",  \
    "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",         \
}

/** @} */
#endif

Generated by  Doxygen 1.6.0   Back to index