VirtualBox

Changeset 4707 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Sep 11, 2007 12:35:12 PM (17 years ago)
Author:
vboxsync
Message:

Added backdoor logging to the Linux kernel modules, with full logging capability in debug builds

Location:
trunk/src/VBox/Additions/linux
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r4328 r4707  
    2121        vboxmod.o \
    2222        GenericRequest.o \
     23        HGCMInternal.o \
     24        Init.o \
    2325        PhysHeap.o \
    2426        SysHlp.o \
    25         Init.o \
    2627        VMMDev.o \
    27         HGCMInternal.o \
    2828        r0drv/alloc-r0drv.o \
    2929        r0drv/linux/alloc-r0drv-linux.o \
    3030        r0drv/linux/semaphore-r0drv-linux.o
     31#ifdef DEBUG
     32OBJS  += \
     33        logbackdoor.o \
     34        logformat.o \
     35        strformat.o \
     36        strformatrt.o \
     37        strformat-vbox.o \
     38        udivdi3.o \
     39        umoddi3.o \
     40        qdivrem.o
     41#endif
    3142
    3243ifneq ($(MAKECMDGOALS),clean)
     
    96107 export INCL
    97108endif
    98 KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 \
    99             -DVBGL_VBOXGUEST -DVBOX_HGCM -DLOG_TO_BACKDOOR
    100 #ifeq ($(BUILD_TYPE),debug) - you'll have to enable this manually to get debug stuff.
    101 #KFLAGS   += -DDEBUG
     109KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ \
     110            -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_HGCM \
     111            -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE
     112#ifeq ($(BUILD_TYPE),debug)
     113KFLAGS   += -DDEBUG
    102114#endif
    103115
  • trunk/src/VBox/Additions/linux/module/files_vboxadd

    r4071 r4707  
    1414
    1515FILES_VBOXADD_NOBIN=" \
     16    ${PATH_ROOT}/include/iprt/nocrt/limits.h=>include/iprt/nocrt/limits.h \
    1617    ${PATH_ROOT}/include/iprt/alloca.h=>include/iprt/alloca.h \
    1718    ${PATH_ROOT}/include/iprt/alloc.h=>include/iprt/alloc.h \
     
    2728    ${PATH_ROOT}/include/iprt/stdint.h=>include/iprt/stdint.h \
    2829    ${PATH_ROOT}/include/iprt/string.h=>include/iprt/string.h \
     30    ${PATH_ROOT}/include/iprt/time.h=>include/iprt/time.h \
    2931    ${PATH_ROOT}/include/iprt/types.h=>include/iprt/types.h \
    3032    ${PATH_ROOT}/include/VBox/cdefs.h=>include/VBox/cdefs.h \
     
    4547    ${PATH_ROOT}/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \
    4648    ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
     49    ${PATH_ROOT}/src/VBox/Runtime/include/internal/string.h=>include/internal/string.h \
     50    ${PATH_ROOT}/src/VBox/Runtime/math/gcc/qdivrem.c=>qdivrem.c \
     51    ${PATH_ROOT}/src/VBox/Runtime/math/gcc/quad.h=>quad.h \
     52    ${PATH_ROOT}/src/VBox/Runtime/math/gcc/udivdi3.c=>udivdi3.c \
     53    ${PATH_ROOT}/src/VBox/Runtime/math/gcc/umoddi3.c=>umoddi3.c \
    4754    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \
    4855    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \
     
    5158    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/string.h=>r0drv/linux/string.h \
    5259    ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h=>r0drv/linux/the-linux-kernel.h \
     60    ${PATH_ROOT}/src/VBox/Runtime/VBox/logbackdoor.cpp=>logbackdoor.c \
     61    ${PATH_ROOT}/src/VBox/Runtime/VBox/strformat-vbox.cpp=>strformat-vbox.c \
     62    ${PATH_ROOT}/src/VBox/Runtime/logformat.cpp=>logformat.c \
     63    ${PATH_ROOT}/src/VBox/Runtime/strformat.cpp=>strformat.c \
     64    ${PATH_ROOT}/src/VBox/Runtime/strformatrt.cpp=>strformatrt.c \
    5365    ${PATH_ROOT}/src/VBox/Additions/linux/module/vboxmod.c=>vboxmod.c \
    5466    ${PATH_ROOT}/src/VBox/Additions/linux/module/cmc.c=>cmc.c \
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk

    r4071 r4707  
    4646vboxvfs_DEFS           := KBUILD_MODNAME=KBUILD_STR\(vboxadd\) KBUILD_BASENAME=KBUILD_STR\(vboxadd\) MODULE IN_RING0 IN_RT_R0 VBOXGUEST VBOX_HGCM
    4747vboxvfs_LIBS            = $(PATH_LIB)/VBoxGuestLibLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
    48 vboxvfs_SOURCES         = vfsmod.c vfs-utils.c
     48vboxvfs_SOURCES         = vfsmod.c
    4949vboxvfs_NOINST          = 1
    5050vboxvfs_CFLAGS         += -fshort-wchar
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r4328 r4707  
    1818OBJS   = \
    1919        vfsmod.o \
    20         vfs-utils.o \
    2120        GenericRequest.o \
    2221        SysHlp.o \
     
    9796 export INCL
    9897endif
    99 KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 \
    100             -DVBOX_HGCM -DLOG_TO_BACKDOOR
    101 #ifeq ($(BUILD_TYPE),debug) - you'll have to enable this manually to get debug stuff.
    102 #KFLAGS   += -DDEBUG
    103 #endif
     98KFLAGS   := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 \
     99            -DIN_SUP_R0 -DVBOX -DVBOX_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE
     100ifeq ($(BUILD_TYPE),debug)
     101KFLAGS   += -DDEBUG
     102endif
    104103
    105104ifeq ($(KERN_VERSION), 24)
  • trunk/src/VBox/Additions/linux/sharedfolders/files_vboxvfs

    r4071 r4707  
    6161    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/regops.c=>regops.c \
    6262    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/utils.c=>utils.c \
    63     ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/vfs-utils.c=>vfs-utils.c \
    6463    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/vbsfmount.h=>vbsfmount.h \
    6564    ${PATH_ROOT}/src/VBox/Additions/linux/sharedfolders/vfsmod.c=>vfsmod.c \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette