From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com
Subject: [Qemu-devel] [PATCH v8 0/8] Rewrite tracetool using python modules
Date: Tue, 3 Apr 2012 20:47:33 +0200 [thread overview]
Message-ID: <20120403184731.2908.42534.stgit@ginnungagap.bsc.es> (raw)
A full rewrite of the tracetool script using per-format and per-backend modules,
so that it's easier to read and extend it in the future.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
NOTE: This series applies in current master, ignoring the "Rewrite tracetool
using python" series.
Changes in v8:
* Backport minor fix to 'tracetool.format.h.nop'.
Changes in v7:
* Fix backend/format to module name translations.
Changes in v6:
* Separate line parsing from object construction in 'tracetool.Event' and
'tracetool.Arguments'.
Changes in v5:
* De-uglify the uses of 'tracetool.out' by adding support for mapping variables.
* Remove stale PUBLIC variables in backend modules.
Changes in v4:
* Some code cleanups according to comments from Stefan Hajnoczi:
** Removed the "public backend" concept (will be introduced only when necessary).
** Moved 'tracetool.generate' from "kwargs" to explicitly named arguments.
Changes in v3:
* Some minor fixes according to comments from Alon Levy:
** Fixed some rogue tabs.
** Fixed definition of '_SCRIPT' in "tracetool.py".
** Fixed some documentation.
** Defensively treat results from 'try_import' in 'get_list'.
** Fixed the no-arguments case in 'tracetool.backend.dtrace.d'.
** Fixed the commandline checks for the "stap" format.
** Added '__repr__' methods for both Event and Arguments objects.
Changes in v2:
* Fixed a strange import error.
* Add a pointer to 'tracetool.out' in the format and backend documentation.
Lluís Vilanova (8):
tracetool: Rewrite infrastructure as python modules
tracetool: Add module for the 'c' format
tracetool: Add module for the 'h' format
tracetool: Add support for the 'stderr' backend
tracetool: Add support for the 'simple' backend
tracetool: Add support for the 'ust' backend
tracetool: Add support for the 'dtrace' backend
tracetool: Add MAINTAINERS info
MAINTAINERS | 2
Makefile.objs | 6
Makefile.target | 13 -
configure | 4
scripts/tracetool | 648 ---------------------------------
scripts/tracetool.py | 138 +++++++
scripts/tracetool/__init__.py | 271 ++++++++++++++
scripts/tracetool/backend/__init__.py | 111 ++++++
scripts/tracetool/backend/dtrace.py | 97 +++++
scripts/tracetool/backend/simple.py | 55 +++
scripts/tracetool/backend/stderr.py | 56 +++
scripts/tracetool/backend/ust.py | 90 +++++
scripts/tracetool/format/__init__.py | 99 +++++
scripts/tracetool/format/c.py | 20 +
scripts/tracetool/format/d.py | 20 +
scripts/tracetool/format/h.py | 45 ++
scripts/tracetool/format/stap.py | 20 +
17 files changed, 1036 insertions(+), 659 deletions(-)
delete mode 100755 scripts/tracetool
create mode 100755 scripts/tracetool.py
create mode 100644 scripts/tracetool/__init__.py
create mode 100644 scripts/tracetool/backend/__init__.py
create mode 100644 scripts/tracetool/backend/dtrace.py
create mode 100644 scripts/tracetool/backend/simple.py
create mode 100644 scripts/tracetool/backend/stderr.py
create mode 100644 scripts/tracetool/backend/ust.py
create mode 100644 scripts/tracetool/format/__init__.py
create mode 100644 scripts/tracetool/format/c.py
create mode 100644 scripts/tracetool/format/d.py
create mode 100644 scripts/tracetool/format/h.py
create mode 100644 scripts/tracetool/format/stap.py
next reply other threads:[~2012-04-03 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 18:47 Lluís Vilanova [this message]
2012-04-03 18:47 ` [Qemu-devel] [PATCH v8 1/8] tracetool: Rewrite infrastructure as python modules Lluís Vilanova
2012-04-03 18:47 ` [Qemu-devel] [PATCH v8 2/8] tracetool: Add module for the 'c' format Lluís Vilanova
2012-04-03 18:47 ` [Qemu-devel] [PATCH v8 3/8] tracetool: Add module for the 'h' format Lluís Vilanova
2012-04-03 18:47 ` [Qemu-devel] [PATCH v8 4/8] tracetool: Add support for the 'stderr' backend Lluís Vilanova
2012-04-03 18:48 ` [Qemu-devel] [PATCH v8 5/8] tracetool: Add support for the 'simple' backend Lluís Vilanova
2012-04-03 18:48 ` [Qemu-devel] [PATCH v8 6/8] tracetool: Add support for the 'ust' backend Lluís Vilanova
2012-04-03 18:48 ` [Qemu-devel] [PATCH v8 7/8] tracetool: Add support for the 'dtrace' backend Lluís Vilanova
2012-04-03 18:48 ` [Qemu-devel] [PATCH v8 8/8] tracetool: Add MAINTAINERS info Lluís Vilanova
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120403184731.2908.42534.stgit@ginnungagap.bsc.es \
--to=vilanova@ac.upc.edu \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).