Swapnil Haria has uploaded this change for review. (
https://gem5-review.googlesource.com/5585
Change subject: Adding scripts
......................................................................
Adding scripts
Change-Id: I14e7792cf4868f50a02b56a719bde8f0dc8c4554
---
A configs/boot/atlas-queue-nvm.rcS
A configs/boot/atlas-queue.rcS
A configs/boot/clflush.rcS
M configs/system/run-cpu-fs.py
A run-queue.sh
M run_qemu.sh
6 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/configs/boot/atlas-queue-nvm.rcS
b/configs/boot/atlas-queue-nvm.rcS
new file mode 100644
index 0000000..cafac52
--- /dev/null
+++ b/configs/boot/atlas-queue-nvm.rcS
@@ -0,0 +1,10 @@
+#!/bin/sh
+echo "Hello World"
+#/sbin/m5 checkpoint # To change CPUs
+cd /home/swapnilh/atlas/runtime/build/tests/data_structures/
+./queue_nvm
+sync
+sleep 5
+print 'DONE'
+print 'OKAY BYE NOW'
+/sbin/m5 exit
diff --git a/configs/boot/atlas-queue.rcS b/configs/boot/atlas-queue.rcS
new file mode 100644
index 0000000..e710254
--- /dev/null
+++ b/configs/boot/atlas-queue.rcS
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo "Hello World"
+/sbin/m5 checkpoint # To change CPUs
+cd /home/swapnilh/atlas/runtime/build/tests/data_structures/
+./queue
+sync
+/sbin/m5 exit
diff --git a/configs/boot/clflush.rcS b/configs/boot/clflush.rcS
new file mode 100644
index 0000000..60b062e
--- /dev/null
+++ b/configs/boot/clflush.rcS
@@ -0,0 +1,8 @@
+#!/bin/sh
+echo "Hello World"
+cd /home/swapnilh/microbenchmarks
+make -j10
+/sbin/m5 checkpoint 0 0 # change cpus
+./clflush
+sync
+/sbin/m5 exit
diff --git a/configs/system/run-cpu-fs.py b/configs/system/run-cpu-fs.py
index 50238fd..8b4ae93 100644
--- a/configs/system/run-cpu-fs.py
+++ b/configs/system/run-cpu-fs.py
@@ -130,7 +130,8 @@
else:
break
- if exit_event.getCause() == "work started count reach":
+ if exit_event.getCause() == "work started count reach"\
+ or exit_event.getCause() == "checkpoint":
print "ROI found"
print "Warmup begins!"
system.mem_mode = 'timing'
diff --git a/run-queue.sh b/run-queue.sh
new file mode 100644
index 0000000..7115881
--- /dev/null
+++ b/run-queue.sh
@@ -0,0 +1,3 @@
+#./build/X86_FLUSHOPT/gem5.opt -d clflushopt_atlas_queue
configs/system/run-cpu-fs.py --script=configs/boot/atlas-queue.rcS
+./build/X86_FLUSHOPT/gem5.opt -d clflushopt_atlas_queue_nvm
configs/system/run-cpu-fs.py --script=configs/boot/atlas-queue-nvm.rcS
+#./build/X86_CLWB/gem5.opt -d clwb_atlas_queue_nvm
configs/system/run-cpu-fs.py --script=configs/boot/atlas-queue-nvm.rcS
diff --git a/run_qemu.sh b/run_qemu.sh
index 670d6ce..eb80e55 100644
--- a/run_qemu.sh
+++ b/run_qemu.sh
@@ -1,3 +1,4 @@
-qemu-system-x86_64 -hda ubuntu-test.img -m 1024 -enable-kvm
+qemu-system-x86_64 -hda ubuntu.img -m 1024 -enable-kvm
+#Uncomment Execstart in /lib/systemd/system/[email protected]
#username: swapnilh
#passwd: t..o
--
To view, visit https://gem5-review.googlesource.com/5585
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I14e7792cf4868f50a02b56a719bde8f0dc8c4554
Gerrit-Change-Number: 5585
Gerrit-PatchSet: 1
Gerrit-Owner: Swapnil Haria <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev