From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6ydK-0004eL-9a for qemu-devel@nongnu.org; Mon, 12 Mar 2012 02:21:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6ydI-0005Vf-HP for qemu-devel@nongnu.org; Mon, 12 Mar 2012 02:21:25 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:44183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6ydI-0005VW-8V for qemu-devel@nongnu.org; Mon, 12 Mar 2012 02:21:24 -0400 Received: by eaaf11 with SMTP id f11so1101958eaa.4 for ; Sun, 11 Mar 2012 23:21:21 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Chen Yufei Date: Mon, 12 Mar 2012 14:20:51 +0800 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] How to trace all the guest OS instructions and the micro-ops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yue Chen , Mulyadi Santosa Cc: qemu-devel@nongnu.org On Mon, Mar 12, 2012 at 5:43 AM, Mulyadi Santosa wrote: > Hi.... > > On Sun, Mar 11, 2012 at 10:12, Yue Chen wrote: >> I am doing some research based on the=C2=A0QEMU. Does anyone know how to= get >> (trace) all the instructions of the guest OS, and get all the intermedia= te >> micro-ops ? =C2=A0(Not in the 0.9.1 version) QEMU has release version 1.0.1. Why are you still using 0.9.1? > > I believe it's "-d" option you're looking for. Please read qemu manual > for further clarification and info. "-d" can only give a static view of what instruction is translated, but can't get a dynamic instruction execution trace. > >> Additionally, how to get the whole memory or each process' memory data o= f >> the guest OS? > > you wanna do that simply from Qemu's monitor? I don't think that's > doable...or at least easily. Qemu sees guest RAM like your physical > RAM. It doesn't differentiate which pages belongs to which process. > You need to hook or go straight inside the guest OS, maybe using gdb > or other tool to get the core dump of those processes. > >> I really appreciate your help. > > Hope it helps... > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com > --=20 Best regards, Chen Yufei