Changeset 21989 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 5, 2009 12:22:13 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r21987 r21989 401 401 402 402 #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."); 405 407 406 408 /* … … 1643 1645 1644 1646 pVM->hwaccm.s.svm.cPatches++; 1647 STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRReplaceSuccess); 1645 1648 return VINF_SUCCESS; 1646 1649 } … … 1662 1665 AssertRC(rc); 1663 1666 pVM->hwaccm.s.svm.cPatches++; 1667 STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRReplaceFailure); 1664 1668 return VINF_SUCCESS; 1665 1669 } 1666 1670 1667 1671 /** 1668 * Callback to patch a TPR instruction ( vmmcall or mov cr8)1672 * Callback to patch a TPR instruction (jump to generated code) 1669 1673 * 1670 1674 * @returns VBox status code. … … 1866 1870 pVM->hwaccm.s.svm.cPatches++; 1867 1871 pVM->hwaccm.s.svm.fTPRPatchingActive = true; 1872 STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRPatchSuccess); 1868 1873 return VINF_SUCCESS; 1869 1874 } … … 1887 1892 AssertRC(rc); 1888 1893 pVM->hwaccm.s.svm.cPatches++; 1894 STAM_COUNTER_INC(&pVM->hwaccm.s.StatTPRPatchFailure); 1889 1895 return VINF_SUCCESS; 1890 1896 } -
trunk/src/VBox/VMM/HWACCMInternal.h
r21987 r21989 451 451 bool u8Alignment[7]; 452 452 453 STAMCOUNTER StatPatchSuccess; 454 STAMCOUNTER StatPatchFailure; 453 STAMCOUNTER StatTPRPatchSuccess; 454 STAMCOUNTER StatTPRPatchFailure; 455 STAMCOUNTER StatTPRReplaceSuccess; 456 STAMCOUNTER StatTPRReplaceFailure; 455 457 } HWACCM; 456 458 /** Pointer to HWACCM VM instance data. */ -
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r21987 r21989 313 313 CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.hostCR4, 8); 314 314 CHECK_MEMBER_ALIGNMENT(HWACCM, vmx.msr.feature_ctrl, 8); 315 CHECK_MEMBER_ALIGNMENT(HWACCM, Stat PatchSuccess, 8);315 CHECK_MEMBER_ALIGNMENT(HWACCM, StatTPRPatchSuccess, 8); 316 316 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, StatEntry, 8); 317 317 CHECK_MEMBER_ALIGNMENT(HWACCMCPU, vmx.proc_ctls, 8);
Note:
See TracChangeset
for help on using the changeset viewer.