From c158582c0fc7f4bd73980fe9adad446855f4d61b Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:19:54 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- ...irt-test-qemu_vm-add-monotonic-start-time.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes-test/virt-test/files/virt-test-qemu_vm-add-monotonic-start-time.patch (limited to 'recipes-test/virt-test/files/virt-test-qemu_vm-add-monotonic-start-time.patch') diff --git a/recipes-test/virt-test/files/virt-test-qemu_vm-add-monotonic-start-time.patch b/recipes-test/virt-test/files/virt-test-qemu_vm-add-monotonic-start-time.patch new file mode 100644 index 0000000..016a6d2 --- /dev/null +++ b/recipes-test/virt-test/files/virt-test-qemu_vm-add-monotonic-start-time.patch @@ -0,0 +1,32 @@ +commit 00c37654013d216243383453de309a639f2599f3 +Author: Jonas Eriksson +Date: Mon Apr 14 08:41:33 2014 +0200 + + qemu_vm: Add monotonic start time + + For tests that would like to fetch the monotonic start time, expose it + through the start_monotonic_time member. + + Signed-off-by: Jonas Eriksson + Upstream-Status: Backport + +diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py +index 0a58362..6ed2736 100644 +--- a/virttest/qemu_vm.py ++++ b/virttest/qemu_vm.py +@@ -150,6 +150,7 @@ class VM(virt_vm.BaseVM): + self.instance = state['instance'] + self.qemu_command = '' + self.start_time = 0.0 ++ self.start_monotonic_time = 0.0 + self.last_boot_index = 0 + self.last_driver_index = 0 + +@@ -2169,6 +2170,7 @@ class VM(virt_vm.BaseVM): + logging.info("Created qemu process with parent PID %d", + self.process.get_pid()) + self.start_time = time.time() ++ self.start_monotonic_time = utils_misc.monotonic_time() + + # test doesn't need to hold tapfd's open + for nic in self.virtnet: -- cgit v1.2.3-54-g00ecf