mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
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.
20 lines
486 B
Bash
Executable File
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
|