From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZlr6-0003gz-5i for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:48:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZlr4-0003gT-9y for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:48:47 -0500 Received: from [199.232.76.173] (port=56466 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZlr4-0003gQ-5Q for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:48:46 -0500 Received: from mail-bw0-f205.google.com ([209.85.218.205]:45642) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZlr3-0004Cg-Pp for qemu-devel@nongnu.org; Wed, 18 Feb 2009 07:48:45 -0500 Received: by bwz1 with SMTP id 1so5500390bwz.10 for ; Wed, 18 Feb 2009 04:48:44 -0800 (PST) Message-ID: <499C03A9.6040003@gmail.com> Date: Wed, 18 Feb 2009 07:48:41 -0500 From: Andrea Pellegrini MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Monitor Memory Accesses Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I want to track all the memory accesses performed in a program execution. Right now I'm working on an amd64 machine with target x86_64 but eventually I would like to do the same for other architectures (at least ARM and PPC). With few changes I was able to print out the address of the instructions that the processor executes (well at least the first address of the basic block) and now I was looking for a way to record all memory loads and stores. I believe I have to change some code in the file translate.c and I was wondering if anybody can give me a quick help about which part of code I should change. It would be great if I could call a function right before every time a load or store is executed. Thank you very much! ~Andrea