From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2eYE-0001RQ-LB for qemu-devel@nongnu.org; Fri, 16 Apr 2010 01:57:14 -0400 Received: from [140.186.70.92] (port=44087 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2eYD-0001RE-2w for qemu-devel@nongnu.org; Fri, 16 Apr 2010 01:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2eY9-00043I-4c for qemu-devel@nongnu.org; Fri, 16 Apr 2010 01:57:12 -0400 Received: from mail-iw0-f194.google.com ([209.85.223.194]:44074) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2eY8-00043D-VO for qemu-devel@nongnu.org; Fri, 16 Apr 2010 01:57:09 -0400 Received: by iwn32 with SMTP id 32so1134408iwn.18 for ; Thu, 15 Apr 2010 22:57:08 -0700 (PDT) MIME-Version: 1.0 From: Jun Koi Date: Fri, 16 Apr 2010 14:56:48 +0900 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] Which functions writes to memory? List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I am writing a small tool to trace all the activities that write to an area of (virtual) memory in Qemu. I am currently doing that by putting my code at the top of the below macro in softmmu_header.h static inline void glue(glue(st, SUFFIX), MEMSUFFIX).... However, it seems I still miss some written events: in some occasions, I believe that Qemu has another code writing data to memory, which happens even before this macro. Is it true that elsewhere, Qemu also writes into memory besides using above function? The memory area I am tracking for written events belong to normal area in OS kernel, where usually only normal code (kernel, not something like SMM handler) write to. Thanks a lot, Jun