Files
linux-kernel-module-cheat/rootfs_overlay/lkmc/gem5.sh
Ciro Santilli 六四事件 法轮功 2abb994752 stuff
2020-11-20 00:00:00 +00:00

11 lines
202 B
Bash
Executable File

#!/bin/sh
# https://cirosantilli.com/linux-kernel-module-cheat#gem5-restore-new-script
m5 checkpoint
tmp="$(mktemp)"
m5 readfile > "$tmp"
if [ -s "$tmp" ]; then
m5 resetstats
sh "$tmp"
m5 exit
fi