projects
/
benchmarks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only run the appropriate cleanup command on stap
[benchmarks.git]
/
ust-systemtap-tracepoints
/
runtest.sh
diff --git
a/ust-systemtap-tracepoints/runtest.sh
b/ust-systemtap-tracepoints/runtest.sh
index 752916b8030c42909c61f91ce512753482a359f3..f4d5424cccdb23a99211d2d2725c6163259ec8ee 100644
(file)
--- a/
ust-systemtap-tracepoints/runtest.sh
+++ b/
ust-systemtap-tracepoints/runtest.sh
@@
-6,6
+6,7
@@
BINARY=tracepoint_benchmark
REPORT=/tmp/testreport
TMPLOG=/tmp/testlog
WRAPPER=""
REPORT=/tmp/testreport
TMPLOG=/tmp/testlog
WRAPPER=""
+CLEANUP=""
STAP=stap
STAPTMP=/tmp/stapconsole
STAPPROBE=testutrace.stp
STAP=stap
STAPTMP=/tmp/stapconsole
STAPPROBE=testutrace.stp
@@
-55,9
+56,11
@@
case "$1" in
;;
stap_flight_recorder)
TEST=stap_flight_recorder
;;
stap_flight_recorder)
TEST=stap_flight_recorder
+ CLEANUP="rmmod $BINARY 2>/dev/null"
;;
stap_disk)
TEST=stap_disk
;;
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 "Usage : $0 {ust_flight_recorder|ust_disk|stap_flight_recorder|stap_disk}"
@@
-70,9
+73,7
@@
for nr_threads in 1 2 4 8; do
echo Number of threads: $nr_threads | tee >> $REPORT
echo -n "* Baseline : " | tee >> $REPORT
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}
sync
/usr/bin/time -f "%E" -o $TMPLOG ./$BINARY ${nr_threads}
This page took
0.024272 seconds
and
4
git commands to generate.