mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Reorganize the benchmark section.
Automate Linux kernel measures and move them into that new section.
This commit is contained in:
11
common
11
common
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user