Received: from eggs.gnu.org ([208.118.235.92]:44991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SERxE-0004l2-7z for qemu-devel@nongnu.org; Sun, 01 Apr 2012 17:04:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SERxC-0005MS-0D for qemu-devel@nongnu.org; Sun, 01 Apr 2012 17:04:51 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:59928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SERxB-0005HO-LI for qemu-devel@nongnu.org; Sun, 01 Apr 2012 17:04:49 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Sun, 1 Apr 2012 23:04:51 +0200 Message-Id: <20120401210449.32042.93979.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v5 0/8] Rewrite tracetool using python modules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com A full rewrite of the tracetool script using per-format and per-backend m= odules, so that it's easier to read and extend it in the future. Signed-off-by: Llu=C3=ADs Vilanova --- NOTE: This series applies in current master, ignoring the "Rewrite tracet= ool using python" series. Changes in v5: * De-uglify the uses of 'tracetool.out' by adding support for mapping var= iables. * 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 nec= essary). ** 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 documentatio= n. Llu=C3=ADs 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=20 Makefile.objs | 6=20 Makefile.target | 13 - configure | 4=20 scripts/tracetool | 648 ---------------------------= ------ scripts/tracetool.py | 138 +++++++ scripts/tracetool/__init__.py | 236 ++++++++++++ scripts/tracetool/backend/__init__.py | 105 +++++ 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 | 96 +++++ 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, 992 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