mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 21:14:27 +01:00
fs_bigLITTLE: patch gem5 like a pro without checkout
This commit is contained in:
@@ -5516,7 +5516,7 @@ arch=aarch64
|
|||||||
# Generate a checkpoint after Linux boots.
|
# Generate a checkpoint after Linux boots.
|
||||||
# The boot takes a while, be patient young Padawan.
|
# The boot takes a while, be patient young Padawan.
|
||||||
printf 'm5 exit' > data/readfile
|
printf 'm5 exit' > data/readfile
|
||||||
./run -a "$arch" -g -F 'm5 checkpoint;m5 readfile > a.sh;sh a.sh'
|
./run -a "$arch" -g -F '/5 checkpoint;m5 readfile > a.sh;sh a.sh'
|
||||||
|
|
||||||
# Restore the checkpoint, and run the benchmark with parameter 1.000.
|
# Restore the checkpoint, and run the benchmark with parameter 1.000.
|
||||||
# We skip the boot completely, saving time!
|
# We skip the boot completely, saving time!
|
||||||
@@ -6522,7 +6522,6 @@ The `-X-b` option enables the alternative `configs/example/arm/fs_bigLITTLE.py`
|
|||||||
First apply:
|
First apply:
|
||||||
|
|
||||||
....
|
....
|
||||||
cd gem5/gem5
|
|
||||||
echo '
|
echo '
|
||||||
diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py
|
diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py
|
||||||
index 7d66c03a6..d71e714fe 100644
|
index 7d66c03a6..d71e714fe 100644
|
||||||
@@ -6537,7 +6536,7 @@ index 7d66c03a6..d71e714fe 100644
|
|||||||
"rw",
|
"rw",
|
||||||
"init=%s" % options.kernel_init,
|
"init=%s" % options.kernel_init,
|
||||||
"vmalloc=768MB",
|
"vmalloc=768MB",
|
||||||
' | patch -p1
|
' | patch -d gem5/gem5 -p1
|
||||||
....
|
....
|
||||||
|
|
||||||
then:
|
then:
|
||||||
|
|||||||
Reference in New Issue
Block a user