Reorganize the benchmark section.

Automate Linux kernel measures and move them into that new section.
This commit is contained in:
Ciro Santilli
2018-04-05 08:52:30 +01:00
parent e38a1dea92
commit 32920fd25d
6 changed files with 277 additions and 126 deletions

11
common
View File

@@ -1,19 +1,12 @@
#!/usr/bin/env bash
eeval() (
cmd="$1"
echo "$cmd" | tee -a "${2:-/dev/null}"
eval "$cmd"
)
set_common_vars() {
arch="$1"
gem5="$2"
root_dir="$(pwd)"
buildroot_dir="${root_dir}/buildroot"
arch_dir="$arch"
if "$gem5" && [ ! "$arch" = aarch64 ]; then
arch_dir="${arch}-gem5"
fi
out_dir="${root_dir}/out"
out_arch_dir="${out_dir}/${arch_dir}"
buildroot_out_dir="${out_arch_dir}/buildroot"
build_dir="${buildroot_out_dir}/build"
@@ -21,8 +14,10 @@ set_common_vars() {
gem5_out_dir="${out_arch_dir}/gem5"
m5out_dir="${gem5_out_dir}/m5out"
qemu_out_dir="${out_arch_dir}/qemu"
common_dir="${out_dir}/common"
}
root_dir="$(pwd)"
out_dir="${root_dir}/out"
common_dir="${out_dir}/common"
f=cli.gitignore
if [ -f "$f" ]; then
. "$f"