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

log.h

Go to the documentation of this file.
/** @file
 * VirtualBox - Logging.
 */

/*
 * Copyright (C) 2006-2007 innotek GmbH
 *
 * 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 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.
 */

#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 */
00036 #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 _
 */
00049 typedef enum LOGGROUP
{
    /** The default VBox group. */
00052     LOG_GROUP_DEFAULT = RTLOGGROUP_FIRST_USER,
    /** CFGM group. */
00054     LOG_GROUP_CFGM,
    /** CPUM group. */
00056     LOG_GROUP_CPUM,
    /** CSAM group. */
00058     LOG_GROUP_CSAM,
    /** Debug Console group. */
00060     LOG_GROUP_DBGC,
    /** DBGF group. */
00062     LOG_GROUP_DBGF,
    /** DBGF info group. */
00064     LOG_GROUP_DBGF_INFO,
    /** The debugger gui. */
00066     LOG_GROUP_DBGG,
    /** Generic Device group. */
00068     LOG_GROUP_DEV,
    /** ACPI Device group. */
00070     LOG_GROUP_DEV_ACPI,
    /** APIC Device group. */
00072     LOG_GROUP_DEV_APIC,
    /** Audio Device group. */
00074     LOG_GROUP_DEV_AUDIO,
    /** DMA Controller group. */
00076     LOG_GROUP_DEV_DMA,
    /** Gigabit Ethernet Device group. */
00078     LOG_GROUP_DEV_E1000,
    /** Floppy Controller Device group. */
00080     LOG_GROUP_DEV_FDC,
    /** IDE Device group. */
00082     LOG_GROUP_DEV_IDE,
    /** The internal networking IP stack Device group. */
00084     LOG_GROUP_DEV_INIP,
    /** KeyBoard Controller Device group. */
00086     LOG_GROUP_DEV_KBD,
    /** NE2000 Device group. */
00088     LOG_GROUP_DEV_NE2000,
    /** Parallel Device group */
00090     LOG_GROUP_DEV_PARALLEL,
    /** PC Device group. */
00092     LOG_GROUP_DEV_PC,
    /** PC Architecture Device group. */
00094     LOG_GROUP_DEV_PC_ARCH,
    /** PC BIOS Device group. */
00096     LOG_GROUP_DEV_PC_BIOS,
    /** PCI Device group. */
00098     LOG_GROUP_DEV_PCI,
    /** PCNet Device group. */
00100     LOG_GROUP_DEV_PCNET,
    /** PIC Device group. */
00102     LOG_GROUP_DEV_PIC,
    /** PIT Device group. */
00104     LOG_GROUP_DEV_PIT,
    /** RTC Device group. */
00106     LOG_GROUP_DEV_RTC,
    /** Serial Device group */
00108     LOG_GROUP_DEV_SERIAL,
    /** USB Device group. */
00110     LOG_GROUP_DEV_USB,
    /** VGA Device group. */
00112     LOG_GROUP_DEV_VGA,
    /** VMM Device group. */
00114     LOG_GROUP_DEV_VMM,
    /** VMM Device group for backdoor logging. */
00116     LOG_GROUP_DEV_VMM_BACKDOOR,
    /** VMM Device group for logging guest backdoor logging to stderr. */
00118     LOG_GROUP_DEV_VMM_STDERR,
    /** Disassembler group. */
00120     LOG_GROUP_DIS,
    /** Generic driver group. */
00122     LOG_GROUP_DRV,
    /** ACPI driver group */
00124     LOG_GROUP_DRV_ACPI,
    /** Block driver group. */
00126     LOG_GROUP_DRV_BLOCK,
    /** Char driver group. */
00128     LOG_GROUP_DRV_CHAR,
    /** Floppy media driver group. */
00130     LOG_GROUP_DRV_FLOPPY,
    /** Host Base block driver group. */
00132     LOG_GROUP_DRV_HOST_BASE,
    /** Host DVD block driver group. */
00134     LOG_GROUP_DRV_HOST_DVD,
    /** Host floppy block driver group. */
00136     LOG_GROUP_DRV_HOST_FLOPPY,
    /** Host hard disk (raw partition) media driver group. */
00138     LOG_GROUP_DRV_HOST_HDD,
    /** Host Parallel Driver group */
00140     LOG_GROUP_DRV_HOST_PARALLEL,
    /** Host Serial Driver Group */
00142     LOG_GROUP_DRV_HOST_SERIAL,
    /** The internal networking transport driver group. */
00144     LOG_GROUP_DRV_INTNET,
    /** iSCSI Initiator driver group. */
00146     LOG_GROUP_DRV_ISCSI,
    /** iSCSI TCP transport driver group. */
00148     LOG_GROUP_DRV_ISCSI_TRANSPORT_TCP,
    /** ISO (CD/DVD) media driver group. */
00150     LOG_GROUP_DRV_ISO,
    /** Keyboard Queue driver group. */
00152     LOG_GROUP_DRV_KBD_QUEUE,
    /** lwIP IP stack driver group. */
00154     LOG_GROUP_DRV_LWIP,
    /** Mouse Queue driver group. */
00156     LOG_GROUP_DRV_MOUSE_QUEUE,
    /** Named Pipe stream driver group. */
00158     LOG_GROUP_DRV_NAMEDPIPE,
    /** NAT network transport driver group */
00160     LOG_GROUP_DRV_NAT,
    /** Raw image driver group */
00162     LOG_GROUP_DRV_RAW_IMAGE,
    /** TUN network transport driver group */
00164     LOG_GROUP_DRV_TUN,
    /** USB Proxy driver group. */
00166     LOG_GROUP_DRV_USBPROXY,
    /** VBoxHDD media driver group. */
00168     LOG_GROUP_DRV_VBOXHDD,
    /** VBox HDD container media driver group. */
00170     LOG_GROUP_DRV_VD,
    /** Virtual Switch transport driver group */
00172     LOG_GROUP_DRV_VSWITCH,
    /** VUSB driver group */
00174     LOG_GROUP_DRV_VUSB,
    /** EM group. */
00176     LOG_GROUP_EM,
    /** GUI group. */
00178     LOG_GROUP_GUI,
    /** HGCM group */
00180     LOG_GROUP_HGCM,
    /** HWACCM group. */
00182     LOG_GROUP_HWACCM,
    /** IOM group. */
00184     LOG_GROUP_IOM,
    /** XPCOM IPC group. */
00186     LOG_GROUP_IPC,
    /** Main group. */
00188     LOG_GROUP_MAIN,
    /** Misc. group intended for external use only. */
00190     LOG_GROUP_MISC,
    /** MM group. */
00192     LOG_GROUP_MM,
    /** MM group. */
00194     LOG_GROUP_MM_HEAP,
    /** MM group. */
00196     LOG_GROUP_MM_HYPER,
    /** MM Hypervisor Heap group. */
00198     LOG_GROUP_MM_HYPER_HEAP,
    /** MM Physical/Ram group. */
00200     LOG_GROUP_MM_PHYS,
    /** MM Page pool group. */
00202     LOG_GROUP_MM_POOL,
    /** PATM group. */
00204     LOG_GROUP_PATM,
    /** PDM group. */
00206     LOG_GROUP_PDM,
    /** PDM Device group. */
00208     LOG_GROUP_PDM_DEVICE,
    /** PDM Driver group. */
00210     LOG_GROUP_PDM_DRIVER,
    /** PDM Loader group. */
00212     LOG_GROUP_PDM_LDR,
    /** PDM Loader group. */
00214     LOG_GROUP_PDM_QUEUE,
    /** PGM group. */
00216     LOG_GROUP_PGM,
    /** PGMCACHE group. */
00218     LOG_GROUP_PGMCACHE,
    /** PGM physical group. */
00220     LOG_GROUP_PGM_PHYS,
    /** PGM physical access group. */
00222     LOG_GROUP_PGM_PHYS_ACCESS,
    /** PGM shadow page pool group. */
00224     LOG_GROUP_PGM_POOL,
    /** REM group. */
00226     LOG_GROUP_REM,
    /** REM disassembly handler group. */
00228     LOG_GROUP_REM_DISAS,
    /** REM access handler group. */
00230     LOG_GROUP_REM_HANDLER,
    /** REM I/O port access group. */
00232     LOG_GROUP_REM_IOPORT,
    /** REM MMIO access group. */
00234     LOG_GROUP_REM_MMIO,
    /** REM Printf. */
00236     LOG_GROUP_REM_PRINTF,
    /** REM running group. */
00238     LOG_GROUP_REM_RUN,
    /** RT group. */
00240     LOG_GROUP_RT,
    /** RT group. */
00242     LOG_GROUP_RT_THREAD,
    /** SELM group. */
00244     LOG_GROUP_SELM,
    /** Shared folders host service group. */
00246     LOG_GROUP_SHARED_FOLDERS,
    /** OpenGL host service group. */
00248     LOG_GROUP_SHARED_OPENGL,
    /** The internal networking service group. */
00250     LOG_GROUP_SRV_INTNET,
    /** SSM group. */
00252     LOG_GROUP_SSM,
    /** STAM group. */
00254     LOG_GROUP_STAM,
    /** SUP group. */
00256     LOG_GROUP_SUP,
    /** TM group. */
00258     LOG_GROUP_TM,
    /** TRPM group. */
00260     LOG_GROUP_TRPM,
    /** Generic virtual disk layer. */
00262     LOG_GROUP_VD,
    /** VMDK virtual disk backend. */
00264     LOG_GROUP_VD_VMDK,
    /** VM group. */
00266     LOG_GROUP_VM,
    /** VMM group. */
00268     LOG_GROUP_VMM,
    /** VRDP group */
00270     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
 */
00288 #define VBOX_LOGGROUP_NAMES \
{                   \
    RT_LOGGROUP_NAMES, \
    "DEFAULT",      \
    "CFGM",         \
    "CPUM",         \
    "CSAM",         \
    "DBGC",         \
    "DBGF",         \
    "DBGF_INFO",    \
    "DBGG",         \
    "DEV",          \
    "DEV_ACPI",     \
    "DEV_APIC",     \
    "DEV_AUDIO",    \
    "DEV_DMA",      \
    "DEV_E1000",    \
    "DEV_FDC",      \
    "DEV_IDE",      \
    "DEV_INIP",     \
    "DEV_KBD",      \
    "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_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_HDD", \
    "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_TUN",      \
    "DRV_USBPROXY", \
    "DRV_VBOXHDD",  \
    "DRV_VD",       \
    "DRV_VSWITCH",  \
    "DRV_VUSB",     \
    "EM",           \
    "GUI",          \
    "HGCM",         \
    "HWACCM",       \
    "IOM",          \
    "IPC",          \
    "MAIN",         \
    "MISC",         \
    "MM",           \
    "MM_HEAP",      \
    "MM_HYPER",     \
    "MM_HYPER_HEAP",\
    "MM_PHYS",      \
    "MM_POOL",      \
    "PATM",         \
    "PDM",          \
    "PDM_DEVICE",   \
    "PDM_DRIVER",   \
    "PDM_LDR",      \
    "PDM_QUEUE",    \
    "PGM",          \
    "PGMCACHE",     \
    "PGM_PHYS",     \
    "PGM_PHYS_ACCESS",\
    "PGM_POOL",     \
    "REM",          \
    "REM_DISAS",    \
    "REM_HANDLER",  \
    "REM_IOPORT",   \
    "REM_MMIO",     \
    "REM_PRINTF",   \
    "REM_RUN",      \
    "RT",           \
    "RT_THREAD",    \
    "SELM",         \
    "SHARED_FOLDERS",\
    "SHARED_OPENGL",\
    "SRV_INTNET",   \
    "SSM",          \
    "STAM",         \
    "SUP",          \
    "TM",           \
    "TRPM",         \
    "VD",           \
    "VD_VMDK",      \
    "VM",           \
    "VMM",          \
    "VRDP",         \
}

/** @} */
#endif


Generated by  Doxygen 1.6.0   Back to index