summaryrefslogtreecommitdiff
path: root/configs/boot
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2011-12-15 00:43:35 -0500
committerAnthony Gutierrez <atgutier@umich.edu>2011-12-15 00:43:35 -0500
commit19e65a650266a526ca47389188f21bbde79d5054 (patch)
treebce6d2b14de64f3e2239cba8f73209ba1d0f1197 /configs/boot
parent94ce9712787c59720727890893ded8a533158e2d (diff)
downloadgem5-19e65a650266a526ca47389188f21bbde79d5054.tar.xz
ARM: Update config files for Android/BBench images available on website.
--HG-- extra : rebase_source : ca98021c3f96422374fbd4500da312a5a9dd00df
Diffstat (limited to 'configs/boot')
-rw-r--r--configs/boot/bbench.rcS43
1 files changed, 43 insertions, 0 deletions
diff --git a/configs/boot/bbench.rcS b/configs/boot/bbench.rcS
new file mode 100644
index 000000000..fd2ac0f52
--- /dev/null
+++ b/configs/boot/bbench.rcS
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+#Author: Anthony Gutierrez
+
+stop_m5() {
+ echo "FINISHED";
+ /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() {
+ echo "STARTING BBENCH"
+
+ mkfifo_bbench
+
+ am start -n com.android.browser/.BrowserActivity
+ wait_bb_finishfifo
+
+ echo "END OF BBENCH RUN"
+
+ rm /data/bbench/finish_fifo.html
+ stop_m5
+
+ return
+}
+
+sleep 10
+/sbin/m5 dumpstats
+/sbin/m5 resetstats
+run_bbench_test