[Qemu-devel] Monitor Instruction Execution

2012-04-03 Thread César
Hello there,

How can I monitor the execution of some specific instructions (for
example calls) of an application executing in linux-user mode? My
first idea was inserting an interrupt (creating its proper handler)
before all target instructions but I couldn`t get the it working. Any
ideas on this?


César.



[Qemu-devel] Monitor instruction execution

2012-04-03 Thread César
Hello there,

How can I monitor the execution of some specific instructions (for
example calls) of an application executing in linux-user mode? My
first idea was inserting an interrupt (creating its proper handler)
before all target instructions but I couldn`t get the it working. Any
ideas on this?

César.



Re: [Qemu-devel] Monitor Instruction Execution

2012-04-03 Thread 陳韋任
 How can I monitor the execution of some specific instructions (for
 example calls) of an application executing in linux-user mode? My
 first idea was inserting an interrupt (creating its proper handler)
 before all target instructions but I couldn`t get the it working. Any
 ideas on this?

  How about inserting your own helper functions instead of an interrupt?

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
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



[Qemu-devel] Monitor instruction execution

2012-04-02 Thread César
Hello there,

Consider I`ve an apllication A executing in linux-user mode. How can
I monitor the execution of some instructions from A? For example, all
calls. I thought inserting an interrupt before all calls and creating
a new interrupt handler could do the job, but I can´t get it working.
Any ideas on this?

César.