VirtualBox

Changeset 86452 in vbox for trunk


Ignore:
Timestamp:
Oct 5, 2020 5:25:53 PM (4 years ago)
Author:
vboxsync
Message:

VMM: Added VMMR0GetReleaseLogger for debugging/whatever (we don't currently use the release log in ring-0, I think). bugref:9841

Location:
trunk
Files:
2 edited

Legend:

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

    r85121 r86452  
    470470VMMR0_INT_DECL(void) VMMR0ThreadCtxHookDisable(PVMCPUCC pVCpu);
    471471VMMR0_INT_DECL(bool) VMMR0ThreadCtxHookIsEnabled(PVMCPUCC pVCpu);
     472VMMR0_INT_DECL(PRTLOGGER) VMMR0GetReleaseLogger(PVMCPUCC pVCpu);
    472473
    473474# ifdef LOG_ENABLED
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r85187 r86452  
    10581058
    10591059
     1060/**
     1061 * Returns the ring-0 release logger instance.
     1062 *
     1063 * @returns Pointer to release logger, NULL if not configured.
     1064 * @param   pVCpu       The cross context virtual CPU structure of the caller.
     1065 * @thread  EMT(pVCpu)
     1066 */
     1067VMMR0_INT_DECL(PRTLOGGER) VMMR0GetReleaseLogger(PVMCPUCC pVCpu)
     1068{
     1069    PVMMR0LOGGER pLogger = pVCpu->vmm.s.pR0RelLoggerR0;
     1070    if (pLogger)
     1071        return &pLogger->Logger;
     1072    return NULL;
     1073}
     1074
     1075
    10601076#ifdef VBOX_WITH_STATISTICS
    10611077/**
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