]> git.proxmox.com Git - mirror_qemu.git/commit - Makefile.target
tracetool: Rewrite infrastructure as python modules
authorLluís Vilanova <vilanova@ac.upc.edu>
Tue, 3 Apr 2012 18:47:39 +0000 (20:47 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 18 Apr 2012 13:02:59 +0000 (14:02 +0100)
commit650ab98d1d9551f0ca2180c0d88427acfcb081cf
treefe5dc59af037fa671f4e767323fc8cd1b5ba9703
parent6e7a7f3d9bc2031b4c93c05400b18775ba1b1f55
tracetool: Rewrite infrastructure as python modules

The tracetool script is written in shell and has hit several portability
problems due to shell quirks or external tools across host platforms.
Additionally the amount of string processing and lack of real data
structures makes it tough to implement code generator backends for
tracers that are more complex.

This patch replaces the shell version of tracetool with a Python
version.  The new tracetool design is:

  scripts/tracetool.py - top-level script
  scripts/tracetool/backend/ - tracer backends live here (simple, ust)
  scripts/tracetool/format/  - output formats live here (.c, .h)

There is common code for trace-events definition parsing so that
backends can focus on generating code rather than parsing input.

Support for all existing backends (nop, stderr, simple, ust,
and dtrace) is added back in follow-up patches.

[Commit description written by Stefan Hajnoczi]

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile.objs
Makefile.target
configure
scripts/tracetool [deleted file]
scripts/tracetool.py [new file with mode: 0755]
scripts/tracetool/__init__.py [new file with mode: 0644]
scripts/tracetool/backend/__init__.py [new file with mode: 0644]
scripts/tracetool/format/__init__.py [new file with mode: 0644]