Received: from [140.186.70.92] (port=36307 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQug7-0002xT-38 for qemu-devel@nongnu.org; Tue, 22 Jun 2010 00:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQug6-0000ps-77 for qemu-devel@nongnu.org; Tue, 22 Jun 2010 00:01:39 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:37792) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQug5-0000pJ-NL for qemu-devel@nongnu.org; Tue, 22 Jun 2010 00:01:38 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp01.au.ibm.com (8.14.4/8.13.1) with ESMTP id o5M3x0jt027849 for ; Tue, 22 Jun 2010 13:59:00 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5M41Xpq1523942 for ; Tue, 22 Jun 2010 14:01:33 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5M41W29011344 for ; Tue, 22 Jun 2010 14:01:33 +1000 Date: Tue, 22 Jun 2010 09:31:27 +0530 From: Mahesh Salgaonkar Message-ID: <20100622040127.GA27051@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [patch 0/3] QEMU-C-F: Userspace tool to filter guest OS memory from qemu coredump List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ananth N Mavinakayanahalli , Mahesh Salgaonkar , Maneesh Soni , Michael Mueller , Reinhard Buendgen Hi All, Please find the patch series that implements qemu-core-filter, a userspace tool to filter out guest OS memory from qemu coredump. The qemu-core-filter tool is a post-processing tool works offline on qemu coredumps. When qemu[-kvm] application crashes, it generates a huge coredump file that contains guest OS memory. This tool helps to reduce the size of core file (generated by qemu crash) by removing guest OS memory from original core file. The tool requires qemu[-kvm] debug information to be able to identify and exclude guest OS memory regions from core file. The reason is debuginfo contains a symbol table that keeps the variable name to address mapping's. The qemu-core-filter tool uses this symbol table to locate a global variable 'ram_blocks' that has the Guest OS memory region mapping's. When we ran it against a a qemu coredump of 570Mb size, it created ouput coredump file of size 42M. Please review the patches and let me know your comments. Thanks, -Mahesh. -- Signed-off-by: Mahesh Salgaonkar