mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5.sh: simplify, and do m5 resetstats and m5 exit
This covers the most common use case of running a benchmark after restore.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
# This covers the most common setup to run a benchmark in gem5 and exit.
|
||||
m5 checkpoint
|
||||
script=/tmp/readfile
|
||||
m5 readfile > "$script"
|
||||
if [ -s "$script" ]; then
|
||||
sh "$script"
|
||||
fi
|
||||
m5 resetstats
|
||||
m5 readfile | sh
|
||||
m5 exit
|
||||
|
||||
Reference in New Issue
Block a user