VirtualBox

Changeset 90859 in vbox


Ignore:
Timestamp:
Aug 24, 2021 9:36:42 PM (3 years ago)
Author:
vboxsync
Message:

VMMR0,SUPDrv: Need to override RTLogDefaultInstanceEx rather than RTLogGetDefaultInstanceEx for debug logging. bugref:10086

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r87728 r90859  
    22272227SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void);
    22282228
     2229/** @copydoc RTLogDefaultInstanceEx
     2230 * @remarks To allow overriding RTLogDefaultInstanceEx locally. */
     2231SUPR0DECL(struct RTLOGGER *) SUPR0DefaultLogInstanceEx(uint32_t fFlagsAndGroup);
    22292232/** @copydoc RTLogGetDefaultInstanceEx
    22302233 * @remarks To allow overriding RTLogGetDefaultInstanceEx locally. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r90829 r90859  
    290290    { "RTLogDefaultInstance",                   (void *)(uintptr_t)RTLogDefaultInstance },
    291291    { "RTLogDefaultInstanceEx",                 (void *)(uintptr_t)RTLogDefaultInstanceEx },
     292    { "SUPR0DefaultLogInstanceEx",              (void *)(uintptr_t)SUPR0DefaultLogInstanceEx },
    292293    { "RTLogGetDefaultInstance",                (void *)(uintptr_t)RTLogGetDefaultInstance },
    293294    { "RTLogGetDefaultInstanceEx",              (void *)(uintptr_t)RTLogGetDefaultInstanceEx },
     
    299300    { "SUPR0GetDefaultLogRelInstanceEx",        (void *)(uintptr_t)SUPR0GetDefaultLogRelInstanceEx },
    300301    { "RTLogSetDefaultInstanceThread",          (void *)(uintptr_t)RTLogSetDefaultInstanceThread },
     302    { "RTLogSetFlushCallback",                  (void *)(uintptr_t)RTLogSetFlushCallback },
    301303    { "RTLogSetR0ThreadNameF",                  (void *)(uintptr_t)RTLogSetR0ThreadNameF },
    302304    { "RTMemAllocExTag",                        (void *)(uintptr_t)RTMemAllocExTag },
     
    32593261
    32603262
     3263/** @copydoc RTLogDefaultInstanceEx
     3264 * @remarks To allow overriding RTLogDefaultInstanceEx locally. */
     3265SUPR0DECL(struct RTLOGGER *) SUPR0DefaultLogInstanceEx(uint32_t fFlagsAndGroup)
     3266{
     3267    return RTLogDefaultInstanceEx(fFlagsAndGroup);
     3268}
     3269SUPR0_EXPORT_SYMBOL(SUPR0DefaultLogInstanceEx);
     3270
     3271
    32613272/** @copydoc RTLogGetDefaultInstanceEx
    32623273 * @remarks To allow overriding RTLogGetDefaultInstanceEx locally. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r90829 r90859  
    223223 *          - Remove pvVMMR0 from SUPLDRLOAD.
    224224 */
    225 #define SUPDRV_IOC_VERSION                              0x00300004
     225#define SUPDRV_IOC_VERSION                              0x00300005
    226226
    227227/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r90829 r90859  
    279279        CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION;
    280280        const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x00300000
    281                                    ? 0x00300004
     281                                   ? 0x00300005
    282282                                   : SUPDRV_IOC_VERSION & 0xffff0000;
    283283        CookieReq.u.In.u32MinVersion = uMinVersion;
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r90829 r90859  
    30523052
    30533053/*
    3054  * Override RTLogGetDefaultInstanceEx so we can do logging from EMTs in ring-0.
    3055  */
    3056 DECLEXPORT(PRTLOGGER) RTLogGetDefaultInstanceEx(uint32_t fFlagsAndGroup)
     3054 * Override RTLogDefaultInstanceEx so we can do logging from EMTs in ring-0.
     3055 */
     3056DECLEXPORT(PRTLOGGER) RTLogDefaultInstanceEx(uint32_t fFlagsAndGroup)
    30573057{
    30583058#ifdef LOG_ENABLED
     
    30733073    }
    30743074#endif
    3075     return SUPR0GetDefaultLogInstanceEx(fFlagsAndGroup);
     3075    return SUPR0DefaultLogInstanceEx(fFlagsAndGroup);
    30763076}
    30773077
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