VirtualBox

Changeset 18532 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Mar 30, 2009 12:01:20 PM (16 years ago)
Author:
vboxsync
Message:

PDMCritSect: Increased the padding size on 32-bit (+32 bytes) for saving the name. Added PDMR3CritSectCountOwned(). Promoted three of the stats to release stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r13898 r18532  
    5757    NOREF(rcBusy);
    5858
    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); });
    6061    int rc = RTCritSectEnter(&pCritSect->s.Core);
    6162    STAM_STATS({ if (pCritSect->s.Core.cNestings == 1) STAM_PROFILE_ADV_START(&pCritSect->s.StatLocked, l); });
     
    9596     */
    9697    LogFlow(("PDMCritSectEnter: locked => R3 (%Rrc)\n", rcBusy));
    97     STAM_COUNTER_INC(&pCritSect->s.StatContentionRZLock);
     98    STAM_REL_COUNTER_INC(&pCritSect->s.StatContentionRZLock);
    9899    return rcBusy;
    99100#endif /* !IN_RING3 */
     
    203204    VM_FF_SET(pVM, VM_FF_PDM_CRITSECT);
    204205    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);
    207208#endif /* !IN_RING3 */
    208209}
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