Re: [Qemu-devel] Debug single program in QEMU

2012-04-05 Thread Yue Chen
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 陳韋任 > O.K., then. You must specify which mode you're running, user mode or > system > mode? User mode should

Re: [Qemu-devel] Debug single program in QEMU

2012-04-03 Thread 陳韋任
> Could you tell me what kind of programs can be emulated in user-mode of > QEMU ? Use-mode can emulate programs compiled for different ISA but with same OS. > It seems that only limited programs can be emulated in user-mode, like > /bin/ls, and with warning. A lot of other programs cannot be e

Re: [Qemu-devel] Debug single program in QEMU

2012-04-03 Thread Yue Chen
Hi, Could you tell me what kind of programs can be emulated in user-mode of QEMU ? It seems that only limited programs can be emulated in user-mode, like /bin/ls, and with warning. A lot of other programs cannot be emulated, like GUI programs, browser, etc. Additionally, why so many instructions

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread 陳韋任
http://qemu.weilnetz.de/qemu-doc.html#QEMU-User-space-emulator On Thu, Mar 15, 2012 at 10:42:02PM -0400, Yue Chen wrote: > So how to run a Windows program or Linux program under user mode ? I cannot > find useful documentations. Many thanks. -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institut

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread 陳韋任
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

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread Yue Chen
So how to run a Windows program or Linux program under user mode ? I cannot find useful documentations. Many thanks. 2012/3/15 陳韋任 > 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

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread 陳韋任
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 this under > > QEMU? Tha

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread Yue Chen
But it is hard to localize a specific program instead of lots of logs. On Mar 15, 2012 4:14 AM, "陳韋任" 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 (interm

Re: [Qemu-devel] Debug single program in QEMU

2012-03-14 Thread Mulyadi Santosa
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 this under > QEMU? Thanks. are you referring to you Qemu system emulation or Qemu user mode? --

[Qemu-devel] Debug single program in QEMU

2012-03-14 Thread Yue Chen
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 this under QEMU? Thanks.