From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFxnj-00016Z-Ne for qemu-devel@nongnu.org; Thu, 05 Apr 2012 21:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFxnY-0001xC-ED for qemu-devel@nongnu.org; Thu, 05 Apr 2012 21:17:17 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:64596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFxnY-0001wb-2x for qemu-devel@nongnu.org; Thu, 05 Apr 2012 21:17:08 -0400 Received: by yenr5 with SMTP id r5so1352781yen.4 for ; Thu, 05 Apr 2012 18:17:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120316022409.GA63194@cs.nctu.edu.tw> References: <20120315081405.GA11435@cs.nctu.edu.tw> <20120316022409.GA63194@cs.nctu.edu.tw> Date: Thu, 5 Apr 2012 21:17:00 -0400 Message-ID: From: Yue Chen Content-Type: multipart/alternative; boundary=0016e68ef3dbdad19704bcf869c1 Subject: Re: [Qemu-devel] Debug single program in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?6Zmz6Z+L5Lu7?= Cc: Mulyadi Santosa , qemu-devel@nongnu.org --0016e68ef3dbdad19704bcf869c1 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: quoted-printable Hi, thanks again for your reply. It seems that, from the instruction log, we can find out "*which instructions belong to which process(task)*" according to CR3 register= . 2012/3/15 =B3=AF=AD=B3=A5=F4 > O.K., then. You must specify which mode you're running, user mode or > system > mode? User mode shouldn't have the issue you described. For system mode, = I > have > no good idea on how to track a specific program running on the guest OS. > > On Thu, Mar 15, 2012 at 09:40:48AM -0400, Yue Chen wrote: > > But it is hard to localize a specific program instead of lots of logs. > > On Mar 15, 2012 4:14 AM, "=B3=AF=AD=B3=A5=F4" wrote: > > > > > On Thu, Mar 15, 2012 at 01:26:44PM +0700, Mulyadi Santosa wrote: > > > > On Thu, Mar 15, 2012 at 09:12, Yue Chen wrote: > > > > > Hi!~ > > > > > > > > > > Now I'd like to see what the micro-ops (intermediate operations > > > generated by > > > > > TCG) of a single Linux or Windows program, any approach to do thi= s > > > under > > > > > QEMU? Thanks. > > > > > > > > are you referring to you Qemu system emulation or Qemu user mode? > > > > > > Does that matter? I think "-d op" should be enough, right? > > Regards, > chenwj > > -- > Wei-Ren Chen (=B3=AF=AD=B3=A5=F4) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 > Homepage: http://people.cs.nctu.edu.tw/~chenwj > --0016e68ef3dbdad19704bcf869c1 Content-Type: text/html; charset=Big5 Content-Transfer-Encoding: quoted-printable Hi, thanks again for your reply.

It seems that, from the= instruction log, we can find out "which in= structions   belong to   which process(task)" &nb= sp;according to CR3 register.


2012/3/15 =B3=AF=AD=B3=A5=F4 <chenwj@iis.sini= ca.edu.tw>
 O.K., then. You must specify which mode you're running, user mod= e or system
mode? User mode shouldn't have the issue you described. For system mode= , I have
no good idea on how to track a specific program running on the guest OS.

On Thu, Mar 15, 2012 at 09:40:48AM -0400, Yue Chen wrote:
> But it is hard to localize a specific program instead of lots of logs.=
> On Mar 15, 2012 4:14 AM, "=B3=AF=AD=B3=A5=F4" <chenwj@iis.sinica.edu.tw> wrote: >
> > On Thu, Mar 15, 2012 at 01:26:44PM +0700, Mulyadi Santosa wrote:<= br> > > > On Thu, Mar 15, 2012 at 09:12, Yue Chen <ycyc321@gmail.com> wrote:
> > > > Hi!~
> > > >
> > > > Now I'd like to see what the micro-ops (intermediat= e operations
> > generated by
> > > > TCG) of a single Linux or Windows program, any approach= to do this
> > under
> > > > QEMU? Thanks.
> > >
> > > are you referring to you Qemu system emulation or Qemu user = mode?
> >
> >  Does that matter? I think "-d op" should be enoug= h, right?

Regards,
chenwj

--
Wei-Ren Chen (=B3=AF=AD=B3=A5=F4)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

--0016e68ef3dbdad19704bcf869c1--