From b205ffc3a6bd39d6575f7a051e1d0a8b1137c1ab Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 19 Sep 2011 12:33:34 +0100 Subject: 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. --- mutrace.in | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'mutrace.in') diff --git a/mutrace.in b/mutrace.in index 93e49ae..9bfabe1 100755 --- a/mutrace.in +++ b/mutrace.in @@ -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 ;; -- cgit