VirtualBox

Changeset 716 in vbox


Ignore:
Timestamp:
Feb 6, 2007 3:56:35 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18357
Message:

More stats

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/TRPM.cpp

    r624 r716  
    513513    STAM_REG(pVM, &pVM->trpm.s.StatForwardProfHC,       STAMTYPE_PROFILE_ADV, "/TRPM/ForwardRaw/Prof/HC",         STAMUNIT_TICKS_PER_CALL, "Profiling TRPMForwardTrap.");
    514514
     515    STAM_REG(pVM, &pVM->trpm.s.StatTrap0dDisasm,        STAMTYPE_PROFILE_ADV, "/TRPM/Trap0d/Prof/Disasm",         STAMUNIT_TICKS_PER_CALL, "Profiling trpmGCTrap0dHandler.");
     516
    515517    /*
    516518     * Default action when entering raw mode for the first time
  • trunk/src/VBox/VMM/TRPMInternal.h

    r624 r716  
    159159    STAMPROFILEADV  StatForwardProfGC;
    160160    STAMPROFILEADV  StatForwardProfHC;
     161    STAMPROFILEADV  StatTrap0dDisasm;
    161162
    162163    /* R3: Statistics for interrupt handlers (allocated on the hypervisor heap). */
  • trunk/src/VBox/VMM/TRPMInternal.mac

    r624 r716  
    6666    .StatForwardProfGC        resb STAMPROFILEADV_size
    6767    .StatForwardProfHC        resb STAMPROFILEADV_size
     68    .StatTrap0dDisasm         resb STAMPROFILEADV_size
    6869
    6970    .paStatForwardedIRQR3  RTR3PTR_RES 1
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r715 r716  
    694694#endif
    695695
     696    STAM_PROFILE_ADV_START(&pVM->trpm.s.StatTrap0dDisasm, a);
    696697    /*
    697698     * Decode the instruction.
     
    703704        Log(("trpmGCTrap0dHandler: Failed to convert %RTsel:%RX32 (cpl=%d) - rc=%Vrc !!\n",
    704705             pRegFrame->cs, pRegFrame->eip, pRegFrame->ss & X86_SEL_RPL, rc));
     706        STAM_PROFILE_ADV_STOP(&pVM->trpm.s.StatTrap0dDisasm, a);
    705707        return trpmGCExitTrap(pVM, VINF_EM_RAW_GUEST_TRAP, pRegFrame);
    706708    }
     
    710712    rc = EMInterpretDisasOneEx(pVM, (RTGCUINTPTR)PC, pRegFrame, &Cpu, &cbOp);
    711713    if (VBOX_FAILURE(rc))
     714    {
     715        STAM_PROFILE_ADV_STOP(&pVM->trpm.s.StatTrap0dDisasm, a);
    712716        return trpmGCExitTrap(pVM, VINF_EM_RAW_EMULATE_INSTR, pRegFrame);
     717    }
     718    STAM_PROFILE_ADV_STOP(&pVM->trpm.s.StatTrap0dDisasm, a);
    713719
    714720    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette