X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftracepoint%2Fbenchmark%2Frunstap.sh;fp=tests%2Ftracepoint%2Fbenchmark%2Frunstap.sh;h=3a3f4c4115c9df5dd3c80b16694d4f50e50b30e0;hb=91594b712729c0d855efeab849c2093706336941;hp=0000000000000000000000000000000000000000;hpb=df39c97f33c65bc39945b5ebe429526fb38f3406;p=lttng-ust.git diff --git a/tests/tracepoint/benchmark/runstap.sh b/tests/tracepoint/benchmark/runstap.sh new file mode 100644 index 00000000..3a3f4c41 --- /dev/null +++ b/tests/tracepoint/benchmark/runstap.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +#SystemTAP benchmark + +REPORT=/tmp/testreport + +rm $REPORT + +echo "Userspace tracing scalability test report" |tee >> $REPORT + +for nr_threads in 1 2 4 8; do + echo "" | tee >> $REPORT + echo Number of threads: $nr_threads | tee >> $REPORT + echo "* Baseline" | tee >> $REPORT + + killall stapio + sleep 3 + + sync + /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} + cat /tmp/testlog >> $REPORT + + echo "* Flight recorder" | tee >> $REPORT + #For flight recorder + #stap testutrace.stp -F + + #Writing to disk + stap testutrace.stp -o /tmp/stapconsole-$nr_threads & + + sleep 2 + sync + /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} + cat /tmp/testlog >> $REPORT +done + +cat /tmp/testreport