Changeset 57884 in vbox for trunk/src/VBox/VMM/VMMR3/HM.cpp
- Timestamp:
- Sep 24, 2015 4:43:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r57482 r57884 671 671 STAM_REG(pVM, &pVM->hm.s.StatTprPatchSuccess, STAMTYPE_COUNTER, "/HM/TPR/Patch/Success", STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched."); 672 672 STAM_REG(pVM, &pVM->hm.s.StatTprPatchFailure, STAMTYPE_COUNTER, "/HM/TPR/Patch/Failed", STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts."); 673 STAM_REG(pVM, &pVM->hm.s.StatTprReplaceSuccess, STAMTYPE_COUNTER, "/HM/TPR/Replace/Success",STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched."); 674 STAM_REG(pVM, &pVM->hm.s.StatTprReplaceFailure, STAMTYPE_COUNTER, "/HM/TPR/Replace/Failed", STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts."); 673 STAM_REG(pVM, &pVM->hm.s.StatTprReplaceSuccessCr8, STAMTYPE_COUNTER, "/HM/TPR/Replace/SuccessCR8",STAMUNIT_OCCURENCES, "Number of instruction replacements by MOV CR8."); 674 STAM_REG(pVM, &pVM->hm.s.StatTprReplaceSuccessVmc, STAMTYPE_COUNTER, "/HM/TPR/Replace/SuccessVMC",STAMUNIT_OCCURENCES, "Number of instruction replacements by VMMCALL."); 675 STAM_REG(pVM, &pVM->hm.s.StatTprReplaceFailure, STAMTYPE_COUNTER, "/HM/TPR/Replace/Failed", STAMUNIT_OCCURENCES, "Number of unsuccessful replace attempts."); 675 676 #endif 676 677 … … 1994 1995 memcpy(pPatch->aNewOpcode, s_abVMMCall, sizeof(s_abVMMCall)); 1995 1996 pPatch->cbNewOp = sizeof(s_abVMMCall); 1997 STAM_COUNTER_INC(&pVM->hm.s.StatTprReplaceSuccessVmc); 1996 1998 } 1997 1999 else … … 2046 2048 memcpy(pPatch->aNewOpcode, abInstr, pPatch->cbOp); 2047 2049 pPatch->cbNewOp = pPatch->cbOp; 2050 STAM_COUNTER_INC(&pVM->hm.s.StatTprReplaceSuccessCr8); 2048 2051 2049 2052 Log(("Acceptable read/shr candidate!\n")); … … 2060 2063 memcpy(pPatch->aNewOpcode, s_abVMMCall, sizeof(s_abVMMCall)); 2061 2064 pPatch->cbNewOp = sizeof(s_abVMMCall); 2065 STAM_COUNTER_INC(&pVM->hm.s.StatTprReplaceSuccessVmc); 2062 2066 Log(("hmR3ReplaceTprInstr: HMTPRINSTR_READ %u\n", pPatch->uDstOperand)); 2063 2067 } … … 2069 2073 2070 2074 pVM->hm.s.cPatches++; 2071 STAM_COUNTER_INC(&pVM->hm.s.StatTprReplaceSuccess);2072 2075 return VINF_SUCCESS; 2073 2076 }
Note:
See TracChangeset
for help on using the changeset viewer.