Files
linux-kernel-module-cheat/gem5-bench
Ciro Santilli 42d86576cd Move to the more automated gem5-bench benchmarking script.
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.
2018-02-24 05:32:30 +00:00

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