VirtualBox

Changeset 40371 in vbox


Ignore:
Timestamp:
Mar 6, 2012 10:07:48 AM (13 years ago)
Author:
vboxsync
Message:

EM tracking.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r40356 r40371  
    4444#include <VBox/vmm/iom.h>
    4545#include <VBox/vmm/dbgf.h>
     46#include <VBox/vmm/dbgftrace.h>
    4647#include <VBox/vmm/pgm.h>
    4748#ifdef VBOX_WITH_REM
     
    21112112            if (enmOldState != enmNewState)
    21122113            {
     2114#ifdef DBGFTRACE_ENABLED
     2115                RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-outer %d: %d -> %d", rc, enmOldState, enmNewState);
     2116#endif
    21132117                /* Clear MWait flags. */
    21142118                if (   enmOldState == EMSTATE_HALTED
     
    21252129                }
    21262130            }
     2131#ifdef DBGFTRACE_ENABLED
     2132            else
     2133                RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-outer %d: %d", rc, enmOldState);
     2134#endif
    21272135
    21282136            STAM_PROFILE_ADV_STOP(&pVCpu->em.s.StatTotal, x); /* (skip this in release) */
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r40356 r40371  
    3030#include <VBox/vmm/iom.h>
    3131#include <VBox/vmm/dbgf.h>
     32#include <VBox/vmm/dbgftrace.h>
    3233#include <VBox/vmm/pgm.h>
    3334#ifdef VBOX_WITH_REM
     
    13831384            ||  VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_HIGH_PRIORITY_PRE_RAW_MASK))
    13841385        {
     1386#ifdef DBGFTRACE_ENABLED
     1387            RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw ff %08x/%08x pre", pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
     1388#endif
    13851389            rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
    13861390            if (rc != VINF_SUCCESS)
     
    14491453            rc = VMMR3RawRunGC(pVM, pVCpu);
    14501454            STAM_PROFILE_STOP(&pVCpu->em.s.StatRAWExec, c);
     1455#ifdef DBGFTRACE_ENABLED
     1456            RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw run => %d", rc);
     1457#endif
    14511458        }
    14521459        else
     
    15421549        {
    15431550            Assert(pCtx->eflags.Bits.u1VM || (pCtx->ss & X86_SEL_RPL) != 1);
     1551#ifdef DBGFTRACE_ENABLED
     1552            RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw ff %08x/%08x post", pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
     1553#endif
    15441554
    15451555            STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatRAWTotal, a);
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