VirtualBox

Changeset 72690 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 26, 2018 2:54:37 AM (7 years ago)
Author:
vboxsync
Message:

NEM: Separate stats for odd and alerts when stopping the CPU. bugref:9044.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r72689 r72690  
    15411541
    15421542    /* Advance the RIP. */
    1543     Assert(pMsgHdr->InstructionLength >= cbMinInstr);
     1543    Assert(pMsgHdr->InstructionLength >= cbMinInstr); RT_NOREF_PV(cbMinInstr);
    15441544    pCtx->rip += pMsgHdr->InstructionLength;
    15451545    pCtx->rflags.Bits.u1RF = 0;
     
    37593759    {
    37603760        DBGFTRACE_CUSTOM(pVCpu->CTX_SUFF(pVM), "IoCtlMessageSlotHandleAndGetNextRestart/1 %#x (f=%#x)", rcNt, fFlags);
    3761         STAM_REL_COUNTER_INC(&pVCpu->nem.s.StatStopCpuPendingOdd);
     3761        STAM_REL_COUNTER_INC(&pVCpu->nem.s.StatStopCpuPendingAlerts);
    37623762        Assert(fFlags & VID_MSHAGN_F_GET_NEXT_MESSAGE);
    37633763
     
    39263926    else
    39273927    {
     3928        /** @todo I'm not so sure about this now... */
    39283929        DBGFTRACE_CUSTOM(pVM, "nemStop#9: %#x %#x %#x", pMappingHeader->enmVidMsgType,
    39293930                         pMappingHeader->cbMessage, pMsgForTrace->Header.MessageType);
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r72687 r72690  
    12291229                            STAMR3RegisterF(pVM, &pNemCpu->StatStopCpuSuccess,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of successful CPU stops",         "/NEM/CPU%u/StopCpuSuccess", iCpu);
    12301230                            STAMR3RegisterF(pVM, &pNemCpu->StatStopCpuPending,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of pending CPU stops",            "/NEM/CPU%u/StopCpuPending", iCpu);
     1231                            STAMR3RegisterF(pVM, &pNemCpu->StatStopCpuPendingAlerts,STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of pending CPU stop alerts",      "/NEM/CPU%u/StopCpuPendingAlerts", iCpu);
    12311232                            STAMR3RegisterF(pVM, &pNemCpu->StatStopCpuPendingOdd,   STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of odd pending CPU stops (see code)", "/NEM/CPU%u/StopCpuPendingOdd", iCpu);
    12321233                            STAMR3RegisterF(pVM, &pNemCpu->StatCancelChangedState,  STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of cancel changed state",         "/NEM/CPU%u/CancelChangedState", iCpu);
  • trunk/src/VBox/VMM/include/NEMInternal.h

    r72634 r72690  
    302302    STAMCOUNTER                 StatStopCpuSuccess;
    303303    STAMCOUNTER                 StatStopCpuPending;
     304    STAMCOUNTER                 StatStopCpuPendingAlerts;
    304305    STAMCOUNTER                 StatStopCpuPendingOdd;
    305306    STAMCOUNTER                 StatCancelChangedState;
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