From patchwork Tue Aug 18 15:41:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 42352 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7IFfL7Y021020 for ; Tue, 18 Aug 2009 15:41:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbZHRPlQ (ORCPT ); Tue, 18 Aug 2009 11:41:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751500AbZHRPlQ (ORCPT ); Tue, 18 Aug 2009 11:41:16 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42044 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbZHRPlQ (ORCPT ); Tue, 18 Aug 2009 11:41:16 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7IFfHVh011446; Tue, 18 Aug 2009 11:41:17 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n7IFfFrA011596; Tue, 18 Aug 2009 11:41:15 -0400 Received: from localhost.localdomain (vpn-10-107.bos.redhat.com [10.16.10.107]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7IFfCXu002735; Tue, 18 Aug 2009 11:41:13 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 3/4] KVM test: Build qemu binaries with debugging symbols Date: Tue, 18 Aug 2009 12:41:10 -0300 Message-Id: <1250610070-4122-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/kvm_install.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/kvm_install.py b/client/tests/kvm/kvm_install.py index 154b83c..35aff1d 100755 --- a/client/tests/kvm/kvm_install.py +++ b/client/tests/kvm/kvm_install.py @@ -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")