]> rtime.felk.cvut.cz Git - jailhouse-test.git/blobdiff - buildroot-overlay/root/cell-bench.sh
jailhouse: Improve benchmark and add cmdline parameter passing into launch script.
[jailhouse-test.git] / buildroot-overlay / root / cell-bench.sh
index 25f972a91c5ddc817495cecdce74efaeaaca38c7..5b877185c838686f65eaf31c4760f48390fca64d 100755 (executable)
@@ -1,6 +1,13 @@
-echo "creating hpet-demo cell..."
+echo "creating bench cell..."
 jailhouse cell create /jailhouse/configs/bench.cell
 echo "loading binary into cell..."
-jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000
+
+set -e;
+if [ -n "$*" ]; then
+       jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000 -s "$*" -a 0xf0000
+else
+       jailhouse cell load bench /jailhouse/inmates/Membench.bin -a 0xf0000
+fi
+
 echo "starting it..."
-jailhouse cell start bench
\ No newline at end of file
+jailhouse cell start bench