Commit | Line | Data |
---|---|---|
91594b71 MD |
1 | #!/bin/sh |
2 | ||
3 | #SystemTAP benchmark | |
4 | ||
5 | REPORT=/tmp/testreport | |
6 | ||
7 | rm $REPORT | |
8 | ||
9 | echo "Userspace tracing scalability test report" |tee >> $REPORT | |
10 | ||
11 | for nr_threads in 1 2 4 8; do | |
12 | echo "" | tee >> $REPORT | |
13 | echo Number of threads: $nr_threads | tee >> $REPORT | |
14 | echo "* Baseline" | tee >> $REPORT | |
15 | ||
16 | killall stapio | |
17 | sleep 3 | |
18 | ||
19 | sync | |
20 | /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} | |
21 | cat /tmp/testlog >> $REPORT | |
22 | ||
23 | echo "* Flight recorder" | tee >> $REPORT | |
24 | #For flight recorder | |
25 | #stap testutrace.stp -F | |
26 | ||
27 | #Writing to disk | |
28 | stap testutrace.stp -o /tmp/stapconsole-$nr_threads & | |
29 | ||
30 | sleep 2 | |
31 | sync | |
32 | /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} | |
33 | cat /tmp/testlog >> $REPORT | |
34 | done | |
35 | ||
36 | cat /tmp/testreport |