Files
linux-kernel-module-cheat/gem5-bench
Ciro Santilli 2eff007f7c GEM5 checkpoint switch to HPI for benchmarking.
Don't pass -e on checkpoint restore.

Add benchmarks to how much GEM5 is slower than QEMU.

Rename Kernel boot command line arguments to match kernel docs name.

Document how to pass extra options to GEM5.

Start listing interesting benchmarks to run on GEM5.

Add an openmp hello world.
2018-02-25 10:59:28 +00:00

20 lines
486 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="$@"
statfile=m5out/stats.txt
if "$replay"; then
./run -a arm -g -- --caches -r 1 --restore-with-cpu=HPI
awk '/^system.switch_cpus.numCycles /{ print $2 }' "$statfile"
else
./run -a arm -e 'init=/eval.sh - lkmc_eval="m5 checkpoint;m5 resetstats;'"$bench"';m5 exit"' -g
awk '/^system.cpu.numCycles /{ print $2 }' "$statfile"
fi