On 01/02/2012 06:20 PM, Lluís Vilanova wrote:
Harsh Prateek Bora writes:
Converting tracetool.sh to tracetool.py
Excellent! I was thinking about switching the script language to python, but
wasn't sure if python was an acceptable build dependency for the project.
Thanks, Python appears to become mandatory requirement soon as per
http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg00169.html
I was modifying the bash tracetool to add a tracing layer more amenable to
instrumentation (together with the API that Avi suggested for 3rd party tracing
tools to interact with QEMU).
It currently looks like:
* trace.h (includes trace-backend.h)
-> backend={no instrumentation, static instr, dynamic instr (dlopen)}
* trace-backend.h
-> backend={nop,stderr,simple,dtrace,...}
And similarly for TCG tracing.
What I'd like to know is if I can switch right away into this new script to
finish these changes (and avoid doing the work twice).
I guess yes, however this patch still needs to be updated for code
generation for other tracing backends.
- Harsh
Lluis