@@ -33,24 +33,21 @@ orig_cmd="$*"
3333tool_group=" default"
3434config=" "
3535stress=0
36- rteval=0
37- rteval_workdir=/tmp
3836cpu=" "
3937
4038# Process options and arguments
41- opts=$( getopt -q -o C:c:r:s:e --longoptions " cpu:,stress,config:,runtime:,runtimes:,tool-group:,rteval " -n " getopt.sh" -- " $@ " ) ;
39+ opts=$( getopt -q -o C:c:r:s --longoptions " cpu:,stress,config:,runtime:,runtimes:,tool-group:" -n " getopt.sh" -- " $@ " ) ;
4240
4341if [ $? -ne 0 ]; then
4442 printf -- " $0 $* \n"
4543 printf " \n"
4644 printf " \t${benchmark} : you specified an invalid option\n\n"
4745 printf " \tThe following options are available:\n\n"
48- printf -- " \t\t-c str --config=str\t name of the test config\n"
49- printf -- " \t\t-r --runtime[s]\t\t int[s|m|h][,int[s|m|h] one or more test measurement periods. s=sec, m=min, h=hours (default is $runtimes )\n"
50- printf -- " \t\t-C --cpu int\t\t cpu to bind to\n"
51- printf -- " \t\t-s --stress\t\t run stress process on the same cpu as --cpu\n"
52- printf -- " \t\t--tool-group=str\t which pbench tool group to use (defaults to default)\n"
53- printf -- " \t\t-e --rteval\t\t run rteval --onlyloads on a NON-isolated core\n"
46+ printf -- " \t\t-c str --config=str name of the test config\n"
47+ printf -- " \t\t-r --runtime[s] int[s|m|h][,int[s|m|h] one or more test measurement periods. s=seconds, m=minutes, h=hours (default is $runtimes )\n"
48+ printf -- " \t\t-C --cpu int cpu to bind to\n"
49+ printf -- " \t\t-s --stress run stress process on the same cpu as --cpu\n"
50+ printf -- " \t\t--tool-group=str\n"
5451 exit 1
5552fi
5653eval set -- " $opts " ;
@@ -89,10 +86,6 @@ while true; do
8986 shift ;
9087 fi
9188 ;;
92- -e|--rteval)
93- shift ;
94- rteval=1
95- ;;
9689 --)
9790 shift ;
9891 break ;
@@ -107,9 +100,6 @@ verify_tool_group $tool_group
107100
108101# # Ensure the right version of the benchmark is installed
109102check_install_rpm $benchmark_rpm $ver
110- check_install_rpm rteval
111- check_install_rpm kernel-headers
112-
113103if [[ $? -ne 0 ]]; then
114104 error_log " Failed to install the benchmark RPM $benchmark_rpm -$ver "
115105 exit 1
@@ -142,17 +132,8 @@ if [ $stress ]; then
142132 stress_pid=$!
143133 fi
144134fi
145-
146- if [ $rteval ]; then
147- rteval_cmd=" rteval --onlyload --duration=$runtimes --verbose > $benchmark_run_dir /rteval.log"
148- # we need to ensure any previous rteval-build dirs are cleaned up before re-running.
149- rm -rf $rteval_workdir /rteval-build
150- $rteval_cmd
151- $rteval_pid =$!
152- fi
153-
154135for runtime in ` echo $runtimes | sed -e s/,/" " /g` ; do
155- benchmark_cmd=" cyclictest -m -n -q -p99 -h60 -N -v -i 200 - D $runtimes "
136+ benchmark_cmd=" cyclictest -m -n -q -p99 -h60 -D $runtime "
156137 iteration=" ${count} -runtime_$runtime "
157138 if [ ! -z " $cpu " ]; then
158139 iteration=" $iteration -cpu_$cpu "
@@ -165,7 +146,7 @@ for runtime in `echo $runtimes | sed -e s/,/" "/g`; do
165146 chmod +x $benchmark_cmd_file
166147 debug_log " going to run $benchmark_cmd "
167148 start-tools --group=$tool_group --iteration=$iteration --dir=$benchmark_results_dir
168- $benchmark_cmd_file > $result_file
149+ $benchmark_cmd_file | tee $result_file
169150 stop-tools --group=$tool_group --iteration=$iteration --dir=$benchmark_results_dir
170151 postprocess-tools --group=$tool_group --iteration=$iteration --dir=$benchmark_results_dir
171152 min=` grep " Min Latencies:" $result_file | awk ' {print $4}' `
@@ -174,18 +155,9 @@ for runtime in `echo $runtimes | sed -e s/,/" "/g`; do
174155 printf " %20s%20s%20s%20s\n" " $iteration " " $min " " $avg " " $max " >> $benchmark_summary_txt_file
175156 let count=$count +1
176157done
177-
178158if [ $stress ]; then
179- kill -9 $stress_pid
180- kill -9 $stress_pid
181- fi
182-
183- if [ $rteval ]; then
184- kill -9 $rteval_pid
185- kill -9 $rteval_pid
186- rm -rf $rteval_workdir /rteval-build
159+ kill $stress_pid
187160fi
188-
189161collect-sysinfo --group=$tool_group --dir=$benchmark_run_dir end
190162cat $benchmark_summary_txt_file
191163
0 commit comments