From: Adnan Khaleel Subject: Execution Instruction Tracing Date: Tue, 12 Jul 2005 11:13:24 -0500 Message-ID: <20050712111324.bece3778@shadowfax.centaur.net> Reply-To: adnan@shadowfax.no-ip.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi there, I'm a hardware designer and I'm interested in using Xen for a novel purp= ose and I'd like to know if this is possible at all. One of my main problems has been the lack of decent execution traces for= applications on real hardware. Needless to say this is a difficult task= and I believe that virtual machine technology can play an important par= t in the solution. I recently posted a similar query to the Linux kernel= develop group to see if there was a hack that would allow me to trace a= ll instructions but apparently there isn't and most of the responses I g= ot directed me to approach a full system emulator like Simics, SimNow, B= ochs or qemu. All of these are wonderful pieces of software however I've= worked with all of them and I've had problems with them trying to boot = a modern operating system, be it Linux 2.6 or Win2k3, in a close to real= configuration that is very stable.=20 Since Xen includes a hypervisor, I want to explore the possibility of us= ing that to record instructions executed; before we proceed any further = I wanted to pose this question to the developers of Xen to see if this w= as indeed possible using a modified version of Xen. Although I have ment= ioned Win2k3 above, I would be more than happy if I could collect any tr= aces using Linux, provided I can run a decent benchmark on it, say SpecJ= BB2000 or something similar. I've looked at the gdb-stub that Xen provid= es and that seems like an interesting way to start, however I would be i= nterested in collecting system and user activity, along with identifiers= for each. Additionally I would also like to obtain the process id of th= e current context. I appreciate any responses or pointers you may have on this. Sincerely, Adnan Khaleel