summaryrefslogtreecommitdiff
path: root/poky/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'poky/scripts')
-rwxr-xr-xpoky/scripts/oe-time-dd-test.sh7
-rwxr-xr-xpoky/scripts/runqemu5
2 files changed, 11 insertions, 1 deletions
diff --git a/poky/scripts/oe-time-dd-test.sh b/poky/scripts/oe-time-dd-test.sh
index 46b218b76..ccdd55e66 100755
--- a/poky/scripts/oe-time-dd-test.sh
+++ b/poky/scripts/oe-time-dd-test.sh
@@ -24,6 +24,13 @@ uptime
timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=$1 conv=fsync
if [ $? -ne 0 ]; then
echo "Timeout used: ${TIMEOUT}"
+ echo "start: top output"
top -c -b -n1 -w 512
+ echo "end: top output"
+ echo "start: iostat"
+ iostat -y -z -x 5 1
+ echo "end: iostat"
+ echo "start: cooker log"
tail -30 tmp*/log/cooker/*/console-latest.log
+ echo "end: cooker log"
fi
diff --git a/poky/scripts/runqemu b/poky/scripts/runqemu
index e2dc529ba..1f332ef52 100755
--- a/poky/scripts/runqemu
+++ b/poky/scripts/runqemu
@@ -18,6 +18,7 @@ import shutil
import glob
import configparser
import signal
+import time
class RunQemuError(Exception):
"""Custom exception to raise on known errors."""
@@ -1201,8 +1202,10 @@ class BaseConfig(object):
tmpfsdir = os.environ.get("RUNQEMU_TMPFS_DIR", None)
if self.snapshot and tmpfsdir:
newrootfs = os.path.join(tmpfsdir, os.path.basename(self.rootfs)) + "." + str(os.getpid())
+ logger.info("Copying rootfs to %s" % newrootfs)
+ copy_start = time.time()
shutil.copyfile(self.rootfs, newrootfs)
- #print("Copying rootfs to tmpfs: %s" % newrootfs)
+ logger.info("Copy done in %s seconds" % (time.time() - copy_start))
self.rootfs = newrootfs
# Don't need a second copy now!
self.snapshot = False