Changeset 9033 in vbox for trunk/src/VBox
- Timestamp:
- May 21, 2008 4:09:35 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r9031 r9033 175 175 AssertRC(rc); 176 176 } 177 int rc = STAMR3Register(pVM, &pVM->hwaccm.s.StatExitReasonNPF, STAMTYPE_COUNTER, STAMVISIBILITY_USED, "/HWACCM/Exit/Reason/#NPF", STAMUNIT_OCCURENCES, "Exit reason"); 178 AssertRC(rc); 177 179 } 178 180 pVM->hwaccm.s.pStatExitReasonR0 = MMHyperR3ToR0(pVM, pVM->hwaccm.s.pStatExitReason); -
trunk/src/VBox/VMM/HWACCMInternal.h
r9021 r9033 331 331 STAMCOUNTER StatSwitchToR3; 332 332 333 STAMCOUNTER StatExitReasonNPF; 333 334 R3PTRTYPE(PSTAMCOUNTER) pStatExitReason; 334 335 R0PTRTYPE(PSTAMCOUNTER) pStatExitReasonR0; -
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r9029 r9033 1072 1072 pVM->hwaccm.s.Event.errCode = 0; 1073 1073 } 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 1075 1080 1076 1081 /* Deal with the reason of the VM-exit. */
Note:
See TracChangeset
for help on using the changeset viewer.