|
From: Matthieu C. <ma...@us...> - 2005-07-26 12:18:11
|
Update of /cvsroot/nptltracetool/trace/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9766 Modified Files: check contention contention2 Log Message: convert comment Index: contention2 =================================================================== RCS file: /cvsroot/nptltracetool/trace/script/contention2,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- contention2 25 Jul 2005 15:09:09 -0000 1.2 +++ contention2 26 Jul 2005 12:18:01 -0000 1.3 @@ -1,25 +1,25 @@ -#! /usr/bin/gawk -f -/* this script try to compute the time spent in NPTL */ -/* a summary is display for each thread */ -/* you could use -E options to filter only *_IN,*_OUT events */ -/* also if -T options is'nt used, be sure to have C locale (LC_ALL=C) */ +#! /usr/bin/awk -f +# this script try to compute the time spent in NPTL +# a summary is display for each thread +# you could use -E options to filter only *_IN,*_OUT events +# also if -T options is'nt used, be sure to have C locale (LC_ALL=C) { if(match($3, ".*_IN$")) { SUM[$7]-=$1; IN[$7]++; - /*print "in" $3 */ + #print "in" $3 } if(match($3, ".*_OUT$")) { SUM[$7]+=$1; OUT[$7]++; - /*print "out" $3 */ + #print "out" $3 } LAST=$1 } END { for (i in SUM) { - /* we miss the last out */ + # we miss the last out if (IN[i] == OUT[i] + 1) SUM[i]+=LAST Index: contention =================================================================== RCS file: /cvsroot/nptltracetool/trace/script/contention,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- contention 25 Jul 2005 15:09:09 -0000 1.2 +++ contention 26 Jul 2005 12:18:01 -0000 1.3 @@ -1,8 +1,8 @@ -#! /usr/bin/gawk -f -/* this script try to compute the time spent in kernel lock */ -/* a summary is display for each thread */ -/* you could use -e options to filter only THREAD_STATE event */ -/* also if -T options is'nt used, be sure to have C locale (LC_ALL=C) */ +#! /usr/bin/awk -f +# this script try to compute the time spent in kernel lock +# a summary is display for each thread +# you could use -e options to filter only THREAD_STATE event +# also if -T options is'nt used, be sure to have C locale (LC_ALL=C) { if($3 == "THREAD_STATE_WAIT") { Index: check =================================================================== RCS file: /cvsroot/nptltracetool/trace/script/check,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- check 26 Jul 2005 11:51:03 -0000 1.5 +++ check 26 Jul 2005 12:18:01 -0000 1.6 @@ -1,5 +1,5 @@ -#! /usr/bin/gawk -f -/* this script check there are no missing THREAD_STATE */ +#! /usr/bin/awk -f +# this script check there are no missing THREAD_STATE { if(match($3, "_IN$")) { |