From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXB8e-0005rP-12 for qemu-devel@nongnu.org; Fri, 09 Jul 2010 06:49:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXB2B-0005Hm-Aw for qemu-devel@nongnu.org; Fri, 09 Jul 2010 06:42:20 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:50403 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXB2B-0005GO-4x for qemu-devel@nongnu.org; Fri, 09 Jul 2010 06:42:19 -0400 Date: Fri, 9 Jul 2010 14:41:48 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] Monitoring memory access In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jun Koi Cc: qemu-devel@nongnu.org On Fri, 9 Jul 2010, Jun Koi wrote: > Hi, > > I want to monitor memory reading access in Qemu. According to function > tcg/i386/tcg-target.c::tcg_out_qemu_ld(), all the memory access must > call qemu_ld_helpers[] functions, which in turn calls __ldX_mmu > functions. > > These __ldX_mmu() functions are declared in softmmu_template.c, with > macro glue(glue(__ld, SUFFIX), MMUSUFFIX). > > To monitor memory reading access, I simply put my monitored code at > the top of the above macro. But apparently I still miss something, > because I dont see the memory access I am looking for. > > Any hint where I am wrong? Perhaps some memory access do not call the > qemu_ld_helpers[] functions? Haven't we been through this already? http://www.mail-archive.com/qemu-devel@nongnu.org/msg29788.html -- mailto:av1474@comtv.ru