VirtualBox

Changeset 21989 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 5, 2009 12:22:13 PM (15 years ago)
Author:
vboxsync
Message:

More statistics

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

Legend:

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

    r21987 r21989  
    401401
    402402#ifdef VBOX_WITH_STATISTICS
    403     STAM_REG(pVM, &pVM->hwaccm.s.StatPatchSuccess, STAMTYPE_COUNTER, "/HWACCM/Patch/Success", STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched.");
    404     STAM_REG(pVM, &pVM->hwaccm.s.StatPatchFailure, STAMTYPE_COUNTER, "/HWACCM/Patch/Failed",  STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts.");
     403    STAM_REG(pVM, &pVM->hwaccm.s.StatTPRPatchSuccess, STAMTYPE_COUNTER,   "/HWACCM/TPR/Patch/Success", STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched.");
     404    STAM_REG(pVM, &pVM->hwaccm.s.StatTPRPatchFailure, STAMTYPE_COUNTER,   "/HWACCM/TPR/Patch/Failed",  STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts.");
     405    STAM_REG(pVM, &pVM->hwaccm.s.StatTPRReplaceSuccess, STAMTYPE_COUNTER, "/HWACCM/TPR/Replace/Success", STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched.");
     406    STAM_REG(pVM, &pVM->hwaccm.s.StatTPRReplaceFailure, STAMTYPE_COUNTER, "/HWACCM/TPR/Replace/Failed",  STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts.");
    405407   
    406408    /*
     
    16431645
    16441646        pVM->hwaccm.s.svm.cPatches++;
     1647        STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRReplaceSuccess);
    16451648        return VINF_SUCCESS;
    16461649    }
     
    16621665    AssertRC(rc);
    16631666    pVM->hwaccm.s.svm.cPatches++;
     1667    STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRReplaceFailure);
    16641668    return VINF_SUCCESS;
    16651669}
    16661670
    16671671/**
    1668  * Callback to patch a TPR instruction (vmmcall or mov cr8)
     1672 * Callback to patch a TPR instruction (jump to generated code)
    16691673 *
    16701674 * @returns VBox status code.
     
    18661870            pVM->hwaccm.s.svm.cPatches++;
    18671871            pVM->hwaccm.s.svm.fTPRPatchingActive = true;
     1872            STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRPatchSuccess);
    18681873            return VINF_SUCCESS;
    18691874        }
     
    18871892    AssertRC(rc);
    18881893    pVM->hwaccm.s.svm.cPatches++;
     1894    STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRPatchFailure);
    18891895    return VINF_SUCCESS;
    18901896}
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r21987 r21989  
    451451    bool                    u8Alignment[7];
    452452
    453     STAMCOUNTER             StatPatchSuccess;
    454     STAMCOUNTER             StatPatchFailure;
     453    STAMCOUNTER             StatTPRPatchSuccess;
     454    STAMCOUNTER             StatTPRPatchFailure;
     455    STAMCOUNTER             StatTPRReplaceSuccess;
     456    STAMCOUNTER             StatTPRReplaceFailure;
    455457} HWACCM;
    456458/** Pointer to HWACCM VM instance data. */
  • trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp

    r21987 r21989  
    313313    CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.hostCR4, 8);
    314314    CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.msr.feature_ctrl, 8);
    315     CHECK_MEMBER_ALIGNMENT(HWACCM, StatPatchSuccess, 8);
     315    CHECK_MEMBER_ALIGNMENT(HWACCM, StatTPRPatchSuccess, 8);
    316316    CHECK_MEMBER_ALIGNMENT(HWACCMCPU, StatEntry, 8);
    317317    CHECK_MEMBER_ALIGNMENT(HWACCMCPU, vmx.proc_ctls, 8);
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