VirtualBox

Ignore:
Timestamp:
Dec 3, 2009 9:43:03 AM (15 years ago)
Author:
vboxsync
Message:

#4507: Virtio: csRx removed, cs moved out of GC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio.h

    r25007 r25158  
    212212    STAMCOUNTER            StatIntsRaised;
    213213    STAMCOUNTER            StatIntsSkipped;
     214    STAMPROFILE            StatCsGC;
     215    STAMPROFILE            StatCsHC;
    214216#endif /* VBOX_WITH_STATISTICS */
    215217};
     
    267269                     const char *pcszName);
    268270
    269 
     271#define VPCI_CS
    270272DECLINLINE(int) vpciCsEnter(VPCISTATE *pState, int iBusyRc)
    271273{
    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
    273282}
    274283
    275284DECLINLINE(void) vpciCsLeave(VPCISTATE *pState)
    276285{
     286#ifdef VPCI_CS
    277287    PDMCritSectLeave(&pState->cs);
     288#endif
    278289}
    279290
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette