[PATCH v4 0/3] trace qmp commands

Vladimir Sementsov-Ogievskiy posted 3 patches 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220121162234.2707906-1-vsementsov@virtuozzo.com
Maintainers: Markus Armbruster <armbru@redhat.com>, Michael Roth <michael.roth@amd.com>, Stefan Hajnoczi <stefanha@redhat.com>
There is a newer version of this series
docs/devel/qapi-code-gen.rst |  23 +++++++-
meson.build                  |   3 ++
qapi/meson.build             |   7 +++
qga/meson.build              |  11 +++-
scripts/qapi/commands.py     | 101 ++++++++++++++++++++++++++++++-----
scripts/qapi/gen.py          |  31 +++++++++--
scripts/qapi/main.py         |  10 ++--
tests/meson.build            |  11 +++-
trace/meson.build            |  11 ++--
9 files changed, 180 insertions(+), 28 deletions(-)
[PATCH v4 0/3] trace qmp commands
Posted by Vladimir Sementsov-Ogievskiy 2 years, 2 months ago
Hi all!

This series aims to add trace points for each qmp command with help of
qapi code generator.

v4:

01: - better commit message
    - add QAPIGenTrace subclass of QAPIGen with _top()
    - make trace module optional: we need it only for commands, not for
      other QAPI targets (like events). Avoid creating a lot of extera
      .trace-events files.

02: - As we want to generate traces by default, in this patch we only
      update gen_commands() function.
    - fix style
    - add comment about c_name usage, add protect=False

03: - Now option disables trace generation, so option is added in this
      patch
    - Update documentation
    - Update comment on qapi / trace sequence


Vladimir Sementsov-Ogievskiy (3):
  scripts/qapi/gen.py: add FOO.trace-events output module
  scripts/qapi/commands: gen_commands(): add add_trace_events arg
  meson: generate trace events for qmp commands

 docs/devel/qapi-code-gen.rst |  23 +++++++-
 meson.build                  |   3 ++
 qapi/meson.build             |   7 +++
 qga/meson.build              |  11 +++-
 scripts/qapi/commands.py     | 101 ++++++++++++++++++++++++++++++-----
 scripts/qapi/gen.py          |  31 +++++++++--
 scripts/qapi/main.py         |  10 ++--
 tests/meson.build            |  11 +++-
 trace/meson.build            |  11 ++--
 9 files changed, 180 insertions(+), 28 deletions(-)

-- 
2.31.1