Changeset 18532 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Mar 30, 2009 12:01:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp
r13898 r18532 57 57 NOREF(rcBusy); 58 58 59 STAM_STATS({ if (pCritSect->s.Core.cLockers >= 0 && !RTCritSectIsOwner(&pCritSect->s.Core)) STAM_COUNTER_INC(&pCritSect->s.StatContentionR3); }); 59 STAM_REL_STATS({if (pCritSect->s.Core.cLockers >= 0 && !RTCritSectIsOwner(&pCritSect->s.Core)) 60 STAM_COUNTER_INC(&pCritSect->s.StatContentionR3); }); 60 61 int rc = RTCritSectEnter(&pCritSect->s.Core); 61 62 STAM_STATS({ if (pCritSect->s.Core.cNestings == 1) STAM_PROFILE_ADV_START(&pCritSect->s.StatLocked, l); }); … … 95 96 */ 96 97 LogFlow(("PDMCritSectEnter: locked => R3 (%Rrc)\n", rcBusy)); 97 STAM_ COUNTER_INC(&pCritSect->s.StatContentionRZLock);98 STAM_REL_COUNTER_INC(&pCritSect->s.StatContentionRZLock); 98 99 return rcBusy; 99 100 #endif /* !IN_RING3 */ … … 203 204 VM_FF_SET(pVM, VM_FF_PDM_CRITSECT); 204 205 VM_FF_SET(pVM, VM_FF_TO_R3); 205 STAM_ COUNTER_INC(&pVM->pdm.s.StatQueuedCritSectLeaves);206 STAM_ COUNTER_INC(&pCritSect->s.StatContentionRZUnlock);206 STAM_REL_COUNTER_INC(&pVM->pdm.s.StatQueuedCritSectLeaves); 207 STAM_REL_COUNTER_INC(&pCritSect->s.StatContentionRZUnlock); 207 208 #endif /* !IN_RING3 */ 208 209 }
Note:
See TracChangeset
for help on using the changeset viewer.