VirtualBox

Changeset 715 in vbox


Ignore:
Timestamp:
Feb 6, 2007 3:24:18 PM (18 years ago)
Author:
vboxsync
Message:

Prevent statistics pollution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r624 r715  
    122122static int trpmGCExitTrap(PVM pVM, int rc, PCPUMCTXCORE pRegFrame)
    123123{
     124    uint32_t uOldActiveVector = pVM->trpm.s.uActiveVector;
     125
    124126    /* Reset trap? */
    125127    if (    rc != VINF_EM_RAW_GUEST_TRAP
     
    193195            Assert(rc != VINF_SUCCESS);
    194196
     197            /* Stop the profile counter that was started in TRPMGCHandlersA.asm */
     198            Assert(uOldActiveVector <= 16);
     199            STAM_PROFILE_ADV_STOP(&pVM->trpm.s.aStatGCTraps[uOldActiveVector], a);
     200
    195201            /* Assert the trap and go to the recompiler to dispatch it. */
    196202            TRPMAssertTrap(pVM, u8Interrupt, false);
     203
     204            STAM_PROFILE_ADV_START(&pVM->trpm.s.aStatGCTraps[uOldActiveVector], a);
    197205            rc = VINF_EM_RAW_INTERRUPT_PENDING;
    198206        }
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