mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
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.
This commit is contained in:
17
gem5-bench
Executable file
17
gem5-bench
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user