[PATCH 0/9] simpletrace: refactor and general improvements

Mads Ynddal posted 9 patches 1 year, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230221090104.86103-1-mads@ynddal.dk
Maintainers: John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>
There is a newer version of this series
scripts/simpletrace.py | 293 ++++++++++++++++++-----------------------
1 file changed, 127 insertions(+), 166 deletions(-)
[PATCH 0/9] simpletrace: refactor and general improvements
Posted by Mads Ynddal 1 year, 2 months ago
From: Mads Ynddal <m.ynddal@samsung.com>

I wanted to use simpletrace.py for an internal project, so I tried to update
and polish the code. Some of the commits resolve specific issues, while some
are more subjective.

I've tried to divide it into commits so we can discuss the
individual changes, and I'm ready to pull things out, if it isn't needed.

Mads Ynddal (9):
  simpletrace: Improve parsing of sys.argv; fix files never closed.
  simpletrace: Annotate magic constants from QEMU code
  simpletrace: changed naming of edict and idtoname to improve
    readability
  simpletrace: update code for Python 3.11
  simpletrace: Changed Analyzer class to become context-manager
  simpletrace: Simplify construction of tracing methods
  simpletrace: Improved error handling on struct unpack
  simpletrace: define exception and add handling
  simpletrace: Refactor to separate responsibilities

 scripts/simpletrace.py | 293 ++++++++++++++++++-----------------------
 1 file changed, 127 insertions(+), 166 deletions(-)

-- 
2.38.1