From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV5jr-0005iq-5c for qemu-devel@nongnu.org; Thu, 17 May 2012 14:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SV5jp-0003tK-7A for qemu-devel@nongnu.org; Thu, 17 May 2012 14:47:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SV5jo-0003rB-Vg for qemu-devel@nongnu.org; Thu, 17 May 2012 14:47:49 -0400 Date: Thu, 17 May 2012 19:47:44 +0100 From: "Richard W.M. Jones" Message-ID: <20120517184744.GA4377@amd.home.annexia.org> References: <4FB53E20.40600@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB53E20.40600@gmail.com> Subject: Re: [Qemu-devel] Memory Tracking API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jaspal Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On Thu, May 17, 2012 at 11:36:24PM +0530, Jaspal wrote: > Hi , > > Is it possible to keep a count of reads / writes taking place in a > vm using qemu ( using kvm as hypervisor ) ? Is there a api ( or any > patch ) for it ? Memory reads and writes is surely going to generate a huge amount of output! There are various DEBUG_* symbols at the top of exec.c and ioport.c. I've only used a few of these: DEBUG_UNASSIGNED - prints a message when an unmapped page is referenced (TCG only, presumably?) DEBUG_IOPORT - prints a message when any I/O port is referenced DEBUG_UNUSED_IOPORT - prints a message when a non-emulated I/O port is referenced There are several more if you look at the code. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw