From 211f1a9e33a1cac33a7b9a88000faaf56258f281 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Sep 2009 04:36:19 +0200 Subject: optionally track RT status of threads using a mutex --- mutrace.in | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mutrace.in') diff --git a/mutrace.in b/mutrace.in index 0d06ec3..8225f03 100755 --- a/mutrace.in +++ b/mutrace.in @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Lesser General Public # License along with mutrace. If not, see . -if ! TEMP=`getopt -o h --long hash-size:,frames:,locked-min:,owner-changed-min:,contended-min:,max:,trap,help,all -n mutrace -- "$@"` ; then +if ! TEMP=`getopt -o +arh --long hash-size:,frames:,locked-min:,owner-changed-min:,contended-min:,max:,trap,help,all -n mutrace -- "$@"` ; then exit 1 fi @@ -60,7 +60,12 @@ while : ; do shift 1 ;; - --all) + -r|--track-rt) + export MUTRACE_TRACK_RT=1 + shift 1 + ;; + + -a|--all) export MUTRACE_LOCKED_MIN=0 export MUTRACE_OWNER_CHANGED_MIN=0 export MUTRACE_CONTENDED_MIN=0 @@ -72,7 +77,7 @@ while : ; do cat <