|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View page history| {warning:title=Warning}This page is under construction - do not use!{warning} |
| {anchor:top} h1. {anchor:CHP-PLOCKSTAT} {{plockstat}} Provider |
... |
| h2. {anchor:CHP-PLOCKSTAT-2} Mutex Probes _Mutexes_ enforce mutual exclusion to critical sections. When a thread attempts to acquire a mutex held by another thread using {{mutex_lock(3C)}} or {{pthread_mutex_lock(3C)}}, it will determine if the owning thread is running on a different CPU. If it is, the acquiring thread will _spin_ for a short while waiting for the mutex to become available. If the owner is not executing on another CPU, the acquiring thread will _block_.\\ |
| \\The four {{plockstat}} probes pertaining to mutexes are listed in [Table 31–1|#tbl-umutex]. 31–1|#TBL-UMUTEX]. For each probe, {{arg0}} contains a pointer to the {{mutex_t}} or {{pthread_mutex_t}} structure (these are identical types) that represents the mutex. |
| h6. {anchor:TBL-UMUTEX} Mutex Probes |{{mutex-acquire}}|Hold event probe that fires immediately after a mutex is acquired. {{arg1}} contains a boolean value that indicates whether the acquisition was recursive on a recursive mutex. {{arg2}} indicates the number of iterations that the acquiring thread spent spinning on this mutex. {{arg2}} will be non-zero only if the {{mutex-spin}} probe fired on this mutex acquisition.| |
... |
| h2. {anchor:CHP-PLOCKSTAT-3} Reader/Writer Lock Probes _Reader/write locks_ permit multiple readers _or_ a single writer, but not both, to be in a critical section at one time. These locks are typically used for structures that are searched more frequently than they are modified, or when threads spend substantial time in a critical section. Users interact with reader/writer locks using the Solaris {{rwlock(3C)}} or POSIX {{pthread_rwlock_init(3C)}} interfaces.\\ |
| \\The probes pertaining to readers/writer locks are in [Table 31–2|#tbl-urwlock]. 31–2|#TBL-URWLOCK]. For each probe, {{arg0}} contains a pointer to the {{rwlock_t}} or {{pthread_rwlock_t}}structure (these are identical types) that represents the adaptive lock. {{arg1}} contains a boolean value that indicates whether the operation was as a writer. |
| h6. {anchor:TBL-URWLOCK} Readers/Writer Lock Probes |{{rw-acquire}}|Hold event probe that fires immediately after a readers/writer lock is acquired.| |
... |
| [Top|#top] h2. {anchor:CHP-PLOCKSTAT-STABILITY} Stability |
| The {{plockstat}} provider uses DTrace's stability mechanism to describe its stabilities, as shown in the following table. For more information about the stability mechanism, see [Chapter 39, Stability FIX|Title]. Stability|Stability]. |
| ||Element||Name stability||Data stability||Dependency class|| |Provider|Evolving|Evolving|ISA| |
... |