Skip to contentSkip to conversation

KVM test: Build qemu binaries with debugging symbols

PATCH In review Lucas Meneghel Rodrigues 1 participant 2 messages Aug 18, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 KVM test: Build qemu binaries with debugging symbols

In order to extract more useful debugging information from qemu crashes, pass --disable-strip to the configure script so we produce binaries with debugging symbols.

Also, corrected a small mistake on the calculation of the -j make parameter.

---
 client/tests/kvm/kvm_install.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
client/tests/kvm/kvm_install.py +4 -2
index 154b83c..35aff1d 100755
@@ -168,9 +168,11 @@ class SourceDirInstaller:
 
     def __build(self):
         os.chdir(self.srcdir)
-        cfg = "./configure --prefix=%s" % self.prefix
+        # For testing purposes, it's better to build qemu binaries with
+        # debugging symbols, so we can extract more meaningful stack traces.
+        cfg = "./configure --disable-strip --prefix=%s" % self.prefix
         if self.repo_type == 1:
-            steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
+            steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)]
             if not os.path.exists('qemu/pc-bios/bios.bin'):
                 steps.append("make -C bios")
                 steps.append("make -C extboot")
Signature · 1 line
1.6.2.5
#1 lore raw

Nevermind the 3/4 header, this patch was on a branch I was doing other stuff. Already applied.

Quoted 38 lines · Lucas Meneghel Rodrigues

In order to extract more useful debugging information from qemu crashes, pass --disable-strip to the configure script so we produce binaries with debugging symbols.

Also, corrected a small mistake on the calculation of the -j make parameter.

---
 client/tests/kvm/kvm_install.py |    6 ++++--

 1 files changed, 4 insertions(+), 2 deletions(-)
client/tests/kvm/kvm_install.py +0 -0
index 154b83c..35aff1d 100755
@@ -168,9 +168,11 @@ class SourceDirInstaller:
 

    def __build(self):
        os.chdir(self.srcdir)
-        cfg = "./configure --prefix=%s" % self.prefix
+        # For testing purposes, it's better to build qemu binaries with
+        # debugging symbols, so we can extract more meaningful stack traces.
+        cfg = "./configure --disable-strip --prefix=%s" % self.prefix if self.repo_type == 1:
-            steps = [cfg, "make clean", "make -j %s" % utils.count_cpus()]
+            steps = [cfg, "make clean", "make -j %s" % (utils.count_cpus() + 1)] if not os.path.exists('qemu/pc-bios/bios.bin'):
                steps.append("make -C bios")
                steps.append("make -C extboot")
--
1.6.2.5

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Signature · 1 line
Lucas Meneghel