mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Enable everything in the toolchain in preparation to future benchmarking to prevent future rebuilds, notably C++, Fortran and LTO support. Document compiler optimizations for benchmarking. Document graph-build for monitoring build times.
18 lines
432 B
Bash
Executable File
18 lines
432 B
Bash
Executable File
#!/usr/bin/env bash
|
|
replay=false
|
|
while getopts r OPT; do
|
|
case "$OPT" in
|
|
r)
|
|
replay=true
|
|
;;
|
|
esac
|
|
done
|
|
shift "$(($OPTIND - 1))"
|
|
bench="$@"
|
|
if "$replay"; then
|
|
./run -a arm -e 'init=/eval.sh - lkmc_eval="m5 resetstats;'"$bench"';m5 exit"' -g -- -r 1
|
|
else
|
|
./run -a arm -e 'init=/eval.sh - lkmc_eval="m5 checkpoint;m5 resetstats;'"$bench"';m5 exit"' -g
|
|
fi
|
|
awk '/^system.cpu.numCycles /{ print $2 }' m5out/stats.txt
|