Changeset 25158 in vbox for trunk/src/VBox/Devices/VirtIO/Virtio.h
- Timestamp:
- Dec 3, 2009 9:43:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/Virtio.h
r25007 r25158 212 212 STAMCOUNTER StatIntsRaised; 213 213 STAMCOUNTER StatIntsSkipped; 214 STAMPROFILE StatCsGC; 215 STAMPROFILE StatCsHC; 214 216 #endif /* VBOX_WITH_STATISTICS */ 215 217 }; … … 267 269 const char *pcszName); 268 270 269 271 #define VPCI_CS 270 272 DECLINLINE(int) vpciCsEnter(VPCISTATE *pState, int iBusyRc) 271 273 { 272 return PDMCritSectEnter(&pState->cs, iBusyRc); 274 #ifdef VPCI_CS 275 STAM_PROFILE_START(&pState->CTXSUFF(StatCs), a); 276 int rc = PDMCritSectEnter(&pState->cs, iBusyRc); 277 STAM_PROFILE_STOP(&pState->CTXSUFF(StatCs), a); 278 return rc; 279 #else 280 return VINF_SUCCESS; 281 #endif 273 282 } 274 283 275 284 DECLINLINE(void) vpciCsLeave(VPCISTATE *pState) 276 285 { 286 #ifdef VPCI_CS 277 287 PDMCritSectLeave(&pState->cs); 288 #endif 278 289 } 279 290
Note:
See TracChangeset
for help on using the changeset viewer.