VirtualBox

Changeset 9033 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 21, 2008 4:09:35 PM (17 years ago)
Author:
vboxsync
Message:

Statistics for SVM_EXIT_NPF

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

Legend:

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

    r9031 r9033  
    175175            AssertRC(rc);
    176176        }
     177        int rc = STAMR3Register(pVM, &pVM->hwaccm.s.StatExitReasonNPF, STAMTYPE_COUNTER, STAMVISIBILITY_USED, "/HWACCM/Exit/Reason/#NPF", STAMUNIT_OCCURENCES, "Exit reason");
     178        AssertRC(rc);
    177179    }
    178180    pVM->hwaccm.s.pStatExitReasonR0 = MMHyperR3ToR0(pVM, pVM->hwaccm.s.pStatExitReason);
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r9021 r9033  
    331331    STAMCOUNTER             StatSwitchToR3;
    332332
     333    STAMCOUNTER             StatExitReasonNPF;
    333334    R3PTRTYPE(PSTAMCOUNTER) pStatExitReason;
    334335    R0PTRTYPE(PSTAMCOUNTER) pStatExitReasonR0;
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r9029 r9033  
    10721072            pVM->hwaccm.s.Event.errCode  = 0;
    10731073    }
    1074     STAM_COUNTER_INC(&pVM->hwaccm.s.pStatExitReasonR0[exitCode & MASK_EXITREASON_STAT]);
     1074#ifdef VBOX_WITH_STATISTICS
     1075    if (exitCode == SVM_EXIT_NPF)
     1076        STAM_COUNTER_INC(&pVM->hwaccm.s.StatExitReasonNPF);
     1077    else
     1078        STAM_COUNTER_INC(&pVM->hwaccm.s.pStatExitReasonR0[exitCode & MASK_EXITREASON_STAT]);
     1079#endif
    10751080
    10761081    /* Deal with the reason of the VM-exit. */
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