aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2016-04-06 17:15:45 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2016-04-06 17:18:51 -0400
commite4f64bb8f90c51eb1ff76457364b032ee8e29901 (patch)
treeb58c2dba6febcb73fac5ebcd60ff673b3ddf6fef
parent7e3b5e89110237698a43c447ab42340fc482b31d (diff)
tracer scripts: silence error message in case PID directory is empty
If the directory has not yet been populated by any of the tracers, the user doesn't need to know about it.
-rwxr-xr-xft-trace-overheads4
-rwxr-xr-xst-trace-schedule4
2 files changed, 4 insertions, 4 deletions
diff --git a/ft-trace-overheads b/ft-trace-overheads
index c1f597d..79453a5 100755
--- a/ft-trace-overheads
+++ b/ft-trace-overheads
@@ -116,11 +116,11 @@ do
116 COUNT=$((COUNT + 1)) 116 COUNT=$((COUNT + 1))
117done 117done
118 118
119READY=`ls $DIR/*.pid | wc -l` 119READY=`ls $DIR/*.pid 2>/dev/null | wc -l`
120while [[ $READY != $COUNT ]] 120while [[ $READY != $COUNT ]]
121do 121do
122 sleep 0.5 122 sleep 0.5
123 READY=`ls $DIR/*.pid | wc -l` 123 READY=`ls $DIR/*.pid 2>/dev/null | wc -l`
124done 124done
125 125
126rm $DIR/*.pid 126rm $DIR/*.pid
diff --git a/st-trace-schedule b/st-trace-schedule
index 3bcd511..52f9400 100755
--- a/st-trace-schedule
+++ b/st-trace-schedule
@@ -92,11 +92,11 @@ do
92 COUNT=$((COUNT + 1)) 92 COUNT=$((COUNT + 1))
93done 93done
94 94
95READY=`ls $DIR/*.pid | wc -l` 95READY=`ls $DIR/*.pid 2>/dev/null | wc -l`
96while [[ $READY != $COUNT ]] 96while [[ $READY != $COUNT ]]
97do 97do
98 sleep 0.5 98 sleep 0.5
99 READY=`ls $DIR/*.pid | wc -l` 99 READY=`ls $DIR/*.pid 2>/dev/null | wc -l`
100done 100done
101 101
102rm $DIR/*.pid 102rm $DIR/*.pid