--- /dev/null
+#!/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
--- /dev/null
+#!/system/bin/sh
+
+#Author: Anthony Gutierrez
+# run script for bbench on ics
+
+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() {
+ /sbin/busybox mkfifo /data/bbench/finish_fifo.html
+
+ return
+}
+
+run_bbench_test() {
+ mkfifo_bbench
+ am start -a android.intent.action.VIEW -d file:///data/bbench/index.html -t application/x-webarchive-xml
+ wait_bb_finishfifo
+
+ rm /data/bbench/finish_fifo.html
+ stop_m5
+
+ return
+}
+
+sleep 10
+/sbin/m5 dumpstats
+/sbin/m5 resetstats
+run_bbench_test
'ValStreamCopy': [SysConfig('micro_streamcopy.rcS', '512MB')],
'MutexTest': [SysConfig('mutex-test.rcS', '128MB')],
- 'ArmAndroid': [SysConfig('null.rcS', '256MB',
- 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.clean.img')],
- 'bbench': [SysConfig('bbench.rcS', '256MB',
- 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.img')]
+ 'ArmAndroid-GB': [SysConfig('null.rcS', '256MB',
+ 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.clean.img')],
+ 'bbench-gb': [SysConfig('bbench-gb.rcS', '256MB',
+ 'ARMv7a-Gingerbread-Android.SMP.mouse.nolock.img')],
+ 'ArmAndroid-ICS': [SysConfig('null.rcS', '256MB',
+ 'ARMv7a-ICS-Android.SMP.nolock.clean.img')],
+ 'bbench-ics': [SysConfig('bbench-ics.rcS', '256MB',
+ 'ARMv7a-ICS-Android.SMP.nolock.img')]
}
benchs = Benchmarks.keys()