Commit | Line | Data |
---|---|---|
91594b71 MD |
1 | #!/bin/sh |
2 | ||
591bd835 MD |
3 | # Copyright (C) 2010 David Goulet <david.goulet@polymtl.ca> |
4 | # Copyright (C) 2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | # | |
6 | # This library is free software; you can redistribute it and/or | |
7 | # modify it under the terms of the GNU Lesser General Public | |
8 | # License as published by the Free Software Foundation; either | |
9 | # version 2.1 of the License, or (at your option) any later version. | |
10 | # | |
11 | # This library is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # Lesser General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU Lesser General Public | |
17 | # License along with this library; if not, write to the Free Software | |
18 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
19 | ||
20 | # SystemTAP benchmark | |
91594b71 MD |
21 | |
22 | REPORT=/tmp/testreport | |
23 | ||
24 | rm $REPORT | |
25 | ||
26 | echo "Userspace tracing scalability test report" |tee >> $REPORT | |
27 | ||
28 | for nr_threads in 1 2 4 8; do | |
29 | echo "" | tee >> $REPORT | |
30 | echo Number of threads: $nr_threads | tee >> $REPORT | |
31 | echo "* Baseline" | tee >> $REPORT | |
32 | ||
33 | killall stapio | |
34 | sleep 3 | |
35 | ||
36 | sync | |
37 | /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} | |
38 | cat /tmp/testlog >> $REPORT | |
39 | ||
40 | echo "* Flight recorder" | tee >> $REPORT | |
41 | #For flight recorder | |
42 | #stap testutrace.stp -F | |
43 | ||
44 | #Writing to disk | |
45 | stap testutrace.stp -o /tmp/stapconsole-$nr_threads & | |
46 | ||
47 | sleep 2 | |
48 | sync | |
49 | /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads} | |
50 | cat /tmp/testlog >> $REPORT | |
51 | done | |
52 | ||
53 | cat /tmp/testreport |