VirtualBox

Ignore:
Timestamp:
Mar 6, 2012 1:37:23 PM (13 years ago)
Author:
vboxsync
Message:

VMM: flow tracing.

File:
1 edited

Legend:

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

    r40371 r40375  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3030#include <VBox/vmm/iom.h>
    3131#include <VBox/vmm/dbgf.h>
    32 #include <VBox/vmm/dbgftrace.h>
    3332#include <VBox/vmm/pgm.h>
    3433#ifdef VBOX_WITH_REM
     
    4948#include <VBox/disopcode.h>
    5049#include <VBox/vmm/dbgf.h>
     50#include "VMMTracing.h"
    5151
    5252#include <VBox/log.h>
     
    173173        {
    174174            rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
     175            VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
    175176            if (rc != VINF_SUCCESS)
    176177                return rc;
     
    12011202VMMR3DECL(int) EMR3CheckRawForcedActions(PVM pVM, PVMCPU pVCpu)
    12021203{
    1203     return emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx);
     1204    int rc = emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx);
     1205    VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
     1206    return rc;
    12041207}
    12051208
     
    12221225     * Also note that SELMR3UpdateFromCPUM may trigger VM_FF_SELM_SYNC_TSS.
    12231226     */
    1224 
     1227    VBOXVMMR3_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
    12251228
    12261229    /*
     
    13841387            ||  VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_HIGH_PRIORITY_PRE_RAW_MASK))
    13851388        {
    1386 #ifdef DBGFTRACE_ENABLED
    1387             RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw ff %08x/%08x pre", pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);
    1388 #endif
    13891389            rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
     1390            VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
    13901391            if (rc != VINF_SUCCESS)
    13911392                break;
     
    14181419            {
    14191420                rc = emR3RawForcedActions(pVM, pVCpu, pCtx);
     1421                VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc);
    14201422                if (rc != VINF_SUCCESS)
    14211423                {
     
    14511453        {
    14521454            STAM_PROFILE_START(&pVCpu->em.s.StatRAWExec, c);
     1455            VBOXVMMR3_EM_RAW_RUN_PRE(pVCpu, pCtx);
    14531456            rc = VMMR3RawRunGC(pVM, pVCpu);
     1457            VBOXVMMR3_EM_RAW_RUN_RET(pVCpu, pCtx, rc);
    14541458            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
    14581459        }
    14591460        else
     
    15491550        {
    15501551            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
    15541552
    15551553            STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatRAWTotal, a);
    15561554            rc = emR3ForcedActions(pVM, pVCpu, rc);
     1555            VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc);
    15571556            STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatRAWTotal, a);
    15581557            if (    rc != VINF_SUCCESS
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