diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2011-09-19 12:33:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-19 23:58:41 +0200 |
commit | b205ffc3a6bd39d6575f7a051e1d0a8b1137c1ab (patch) | |
tree | d8c93b087b68c4bcb9f6ad97e1549aa321600b52 /mutrace.in | |
parent | 90949bf1b46e69b040b303b16b8799b232335501 (diff) |
Expand support for rwlocks to count read and write locks separately
All counters such as n_locked are now split into two: one for reads and one
for writes. Normal mutexes just use the write counters, whereas rwlocks now
use both the read and write counters as appropriate.
In order to display all this new data, rwlocks are now printed as two lines
in the summary table: the first is for the write counters and the second is
for the read counters. There is currently no way to print out the sum of
any two such counters, or order by this sum.
Diffstat (limited to 'mutrace.in')
-rwxr-xr-x | mutrace.in | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -119,18 +119,31 @@ OPTIONS: ORDER COLUMN NAMES: id Mutex number - n-locked Total number of times mutex was locked + n-locked Total number of times mutex was locked for + writing + n-read-locked Total number of times mutex was locked for + reading + n-contended Total number of times mutex was contended for + writing + n-read-contended Total number of times mutex was contended for + reading n-owner-changed Total number of times mutex ownership changed - n-contended Total number of times mutex was contested nsec-locked-total Total time mutex was locked for writing nsec-locked-max Maximum time mutex was continuously locked for writing nsec-locked-avg Average time mutex was continuously locked for writing + nsec-read-locked-total Total time mutex was locked for reading + nsec-read-locked-max Maximum time mutex was continuously locked for + reading + nsec-read-locked-avg Average time mutex was continuously locked for + reading nsec-contended-total Total time mutex was contended for writing nsec-contended-avg Average time mutex was continuously contended for writing nsec-read-contended-total Total time mutex was contended for reading + nsec-read-contended-avg Average time mutex was continuously contended + for reading EOF exit 0 ;; |