Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
REPORT=/tmp/testreport
TMPLOG=/tmp/testlog
WRAPPER=""
+CLEANUP=""
STAP=stap
STAPTMP=/tmp/stapconsole
STAPPROBE=testutrace.stp
;;
stap_flight_recorder)
TEST=stap_flight_recorder
+ CLEANUP="rmmod $BINARY 2>/dev/null"
;;
stap_disk)
TEST=stap_disk
+ CLEANUP="killall stapio 2>/dev/null"
;;
*)
echo "Usage : $0 {ust_flight_recorder|ust_disk|stap_flight_recorder|stap_disk}"
echo Number of threads: $nr_threads | tee >> $REPORT
echo -n "* Baseline : " | tee >> $REPORT
- # just some cleanup
- killall stapio 2>/dev/null
- rmmod $BINARY 2>/dev/null
+ $CLEANUP
sync
/usr/bin/time -f "%E" -o $TMPLOG ./$BINARY ${nr_threads}