19e65a6502
--HG-- extra : rebase_source : ca98021c3f96422374fbd4500da312a5a9dd00df
43 lines
623 B
Bash
43 lines
623 B
Bash
#!/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
|