echo -e "UST tracer - Testing high events throughput"
echo -e "-------------------------------------------"
-if [ ! -e "$CURDIR/$BIN_NAME" ]; then
+if [ ! -x "$CURDIR/$BIN_NAME" ]; then
echo -e "No UST nevents binary detected. Passing."
exit 0
fi
./$CURDIR/$BIN_NAME & >/dev/null 2>&1
done
-echo "Waiting for all tracing to settle"
-sleep 5
+echo "Waiting for applications to end"
+while [ -n "$(pidof $BIN_NAME)" ]; do
+ echo -n "."
+ sleep 0.5
+done
+echo ""
stop_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME