summaryrefslogtreecommitdiff
path: root/configs/boot/bbench-gb.rcS
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2012-06-11 11:07:42 -0400
committerAnthony Gutierrez <atgutier@umich.edu>2012-06-11 11:07:42 -0400
commitce9ac3834293ee2d695d10147f8fb2b8f7865973 (patch)
treea8699e182b3c8744e4c71583203d980ca4206255 /configs/boot/bbench-gb.rcS
parent9764cde7f2961116ac83f020f9c1598b00587ae0 (diff)
downloadgem5-ce9ac3834293ee2d695d10147f8fb2b8f7865973.tar.xz
configs: add run scripts for ics/gb versions of android and bbench
1) Modifies Benchmarks.py to add support for Android ICS and BBench on Android ICS. 2) An rcS script is added for BBench on ICS. 3) Separates benchmark entries and rcS scripts for GB/ICS 4) Removes the debugging output from the existing BBench run script. These print statements were used for debugging and they seemed to confuse users into believing they should see some terminal output.
Diffstat (limited to 'configs/boot/bbench-gb.rcS')
-rw-r--r--configs/boot/bbench-gb.rcS38
1 files changed, 38 insertions, 0 deletions
diff --git a/configs/boot/bbench-gb.rcS b/configs/boot/bbench-gb.rcS
new file mode 100644
index 000000000..e9225c02f
--- /dev/null
+++ b/configs/boot/bbench-gb.rcS
@@ -0,0 +1,38 @@
+#!/system/bin/sh
+
+#Author: Anthony Gutierrez
+# run script for bbench on gingerbread
+
+stop_m5() {
+ /sbin/m5 exit
+
+ return
+}
+
+wait_bb_finishfifo() {
+ echo "<html><head>FINISH</head><body><h1>FINISH</h1></body></html>" > /data/bbench/finish_fifo.html
+
+ return
+}
+
+mkfifo_bbench() {
+ mkfifo /data/bbench/finish_fifo.html
+
+ return
+}
+
+run_bbench_test() {
+ mkfifo_bbench
+ am start -n com.android.browser/.BrowserActivity
+ wait_bb_finishfifo
+
+ rm /data/bbench/finish_fifo.html
+ stop_m5
+
+ return
+}
+
+sleep 10
+/sbin/m5 dumpstats
+/sbin/m5 resetstats
+run_bbench_test