aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-02-21 07:14:40 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-02-21 07:14:40 +0000
commitf051fce7b858d4f3681af170e0c8dba95d601bfa (patch)
treef16a470336f81fff3677ee797c2b95ee936f58ad
parent766927b06b61704f481e3d2859d286c6ad491a6e (diff)
run.sh: Backup an experimental run script
Change-Id: Ib8f340b8f12907c4300f09c6186c12d4aac993dd
-rwxr-xr-xrun.sh68
1 files changed, 56 insertions, 12 deletions
diff --git a/run.sh b/run.sh
index 3ad2f96..b5835ee 100755
--- a/run.sh
+++ b/run.sh
@@ -38,31 +38,68 @@ case "$(uname -m)" in
esac
sysroot=/home/maxim.kuvyrkov/$tester/sysroot/libc/lib
-bmks[1]="400.perlbench 401.bzip2 403.gcc 429.mcf 445.gobmk 456.hmmer 458.sjeng 462.libquantum 464.h264ref 471.omnetpp 473.astar 483.xalancbmk 433.milc 444.namd 447.dealII 450.soplex 453.povray 470.lbm 482.sphinx3"
-
+cpus=(1 2 3)
bmks[1]="400.perlbench 401.bzip2 403.gcc 429.mcf 445.gobmk 456.hmmer"
bmks[2]="458.sjeng 462.libquantum 464.h264ref 471.omnetpp 473.astar 483.xalancbmk 433.milc"
bmks[3]="444.namd 447.dealII 450.soplex 453.povray 470.lbm 482.sphinx3"
-cpus=(1 2 3)
+cpus=(1)
+bmks[1]="400.perlbench 401.bzip2 403.gcc 429.mcf 445.gobmk 456.hmmer 458.sjeng 462.libquantum 464.h264ref 471.omnetpp 473.astar 483.xalancbmk 433.milc 444.namd 447.dealII 450.soplex 453.povray 470.lbm 482.sphinx3"
-task=clang-3.9.1-10-20-30
-builder=test-armv8-02.tcwglab:32768
+builder=test-armv8-02.tcwglab:32769
case "$(uname -m)" in
"aarch64")
- tester=tcwg-tx1-test-123-0
- ccprefix=/home/maxim.kuvyrkov/clang+llvm-3.9.1-aarch64-linux-gnu/bin/
+ tester=tcwg-tx1-test-1-0
ldso=ld-linux-aarch64.so.1
freq_performance="performance 0 1555500 1555500"
;;
"armv7l")
tester=tcwg-tk1-test-123-0
- ccprefix=/home/maxim.kuvyrkov/releases/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
ldso=ld-linux-armhf.so.3
freq_performance="performance 0 2116500 2116500"
;;
esac
-sysroot=/home/maxim.kuvyrkov/$tester/sysroot/libc/lib
+
+task=clang-3.9.1
+toolchain="llvm"
+case "$(uname -m)" in
+ "aarch64")
+ ccprefix=/home/maxim.kuvyrkov/clang+llvm-3.9.1-aarch64-linux-gnu/bin/
+ ;;
+ "armv7l")
+ #ccprefix=/home/maxim.kuvyrkov/releases/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
+ ;;
+esac
+
+task=linaro-gcc-6
+toolchain="gnu"
+case "$(uname -m)" in
+ "aarch64")
+ ccprefix=/home/maxim.kuvyrkov/abe/builds/destdir/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-
+ ;;
+ "armv7l")
+ #ccprefix=/home/maxim.kuvyrkov/releases/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
+ ;;
+esac
+
+
+cpus=(1 2 3)
+bmks[1]="400.perlbench"
+bmks[2]="458.sjeng"
+bmks[3]="444.namd"
+task=clang-build-id-2
+toolchain="llvm"
+tester=tcwg-tx1-test-123-0
+case "$(uname -m)" in
+ "aarch64")
+ ccprefix=/home/maxim.kuvyrkov/clang+llvm-3.9.1-aarch64-linux-gnu/bin/
+ ;;
+ "armv7l")
+ #ccprefix=/home/maxim.kuvyrkov/releases/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
+ ;;
+esac
+
+#sysroot=/home/maxim.kuvyrkov/$tester/sysroot/libc/lib
# CHECKS:
@@ -79,7 +116,7 @@ sudo ~/spec2xxx-utils/set-freq.sh 0,1,2,3 $freq_performance
for cpu in ${cpus[@]}; do
:
#~/spec2xxx-utils/spec2xxx-config --config $task --build $builder --ccprefix $ccprefix --ccflags "-Wl,-dynamic-linker=$sysroot/$ldso -Wl,-rpath=$sysroot" --bind $cpu --helpercpu 0 --profiler perf -e cycles/period=20HZ/ --save-temps /home/maxim.kuvyrkov/$tester/cpu2006-$cpu
- ~/spec2xxx-utils/spec2xxx-config --config $task --build $builder --ccprefix $ccprefix --bind $cpu --helpercpu 0 --profiler perf -e cycles/period=20HZ/ --save-temps --toolchain llvm /home/maxim.kuvyrkov/$tester/cpu2006-$cpu
+ ~/spec2xxx-utils/spec2xxx-config --config $task --build $builder --ccprefix $ccprefix --bind $cpu --helpercpu 0 --profiler perf -e cycles/period=20HZ/ --save-temps --toolchain $toolchain /home/maxim.kuvyrkov/$tester/cpu2006-$cpu
done
for cpu in ${cpus[@]}; do
@@ -99,7 +136,7 @@ if [ x"$(pgrep "sleep" | wc -l)" != x"0" ]; then
fi
pushd /tmp
-taskset -c 0 perf record --cpu 1,2,3 -e cycles/period=77775000/ -- sleep 24h &
+taskset -c 0 perf record -q -N --cpu 0,1,2,3 -e cycles/period=77775000/ -- sleep 24h &
sleep_pid=$!
disown
echo "WORKAROUND SLEEP PID: $sleep_pid"
@@ -109,7 +146,14 @@ for cpu in ${cpus[@]}; do
(
cd /home/maxim.kuvyrkov/$tester/cpu2006-$cpu
. shrc
- taskset -c 0 runspec -c $task -e O2 -a run -n 1 -i ref ${bmks[$cpu]}
+ taskset -c 0 runspec -c $task -e O2 -a run -n 1 -i test ${bmks[$cpu]}
+
+ cachedir=$(mktemp -d /tmp/perf-archive-cache.XXXXXX)
+ id=$(ls result/*.log | sed "s/.*\.\([0-9]\+\)\.log/\1/" | sort | tail -n 1)
+ $(dirname $0)/perf-buildid-cache.sh --buildid-dir $cachedir -- result/perf.$id.data/*.data
+ $(dirname $0)/perf-archive.sh --buildid-dir $cachedir -o $spec/result/perf-buildid.$id.tar.bz2 -- result/perf.$id.data/*.data
+ rm -rf $cachedir
+
~/spec2xxx-utils/spec2xxx-result --dest dev-01.tcwglab:results/$tester --tag $task --part .run.$cpu ./
) &
done