Markers: remove channel name from trace_mark()
[ust.git] / tests / tracepoint / benchmark / runtest.sh
CommitLineData
91594b71
MD
1#!/bin/sh
2
3#UST scalability test
4
5REPORT=/tmp/testreport
6
7rm $REPORT
8
9echo "Userspace tracing scalability test report" |tee >> $REPORT
10
11for 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 sync
17 /usr/bin/time -o /tmp/testlog ./.libs/tracepoint_benchmark ${nr_threads}
18 cat /tmp/testlog >> $REPORT
19
20 #flight recorder, don't record trace to disk.
21 export UST_AUTOCOLLECT=0
22 export UST_OVERWRITE=1
23 export UST_SUBBUF_NUM=16
24 #default buffer size is 4k
25
26 #Collect traces to disk
27 #export UST_AUTOCOLLECT=1
28 #export UST_OVERWRITE=0
29 #export UST_SUBBUF_NUM=16
30 #default buffer size is 4k
31
32 echo "* Flight recorder" | tee >> $REPORT
33 sync
34 /usr/bin/time -o /tmp/testlog usttrace ./.libs/tracepoint_benchmark ${nr_threads}
35 cat /tmp/testlog >> $REPORT
36done
37
38cat /tmp/testreport
This page took 0.024581 seconds and 4 git commands to generate.