qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Request for Help (Generate Trace for Individual Instruc


From: Lluís Vilanova
Subject: Re: [Qemu-devel] Request for Help (Generate Trace for Individual Instructions)
Date: Wed, 23 Dec 2015 16:41:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Junaid Aslam writes:

> Dear Sir
> I am a student in Netherlands TU/e and intend to explore QEMU for a project. I
> need help in understanding how i can trace an individual instruction which is
> translated by TCG. For this moment in am more interested in Guest load store 
> and
> Function call instructions. Can you please help me on how i can generate Trace
> file for above mentioned instructions.? I hope to have your reply soon.

Not all pieces are merged upstream to make it easy, but you can already add your
own trace events for that. Look at "docs/tracing.txt" for info on the "tcg"
event property to trace guest instructions. You can then edit the instruction
translation file (e.g., "target-i386/translate.c") to insert calls to your new
events.

Cheers,
  Lluis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]