qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] trace qmp commands
@ 2022-01-21 16:22 Vladimir Sementsov-Ogievskiy
  2022-01-21 16:22 ` [PATCH v4 1/3] scripts/qapi/gen.py: add FOO.trace-events output module Vladimir Sementsov-Ogievskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2022-01-21 16:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: stefanha, michael.roth, armbru, vsementsov, jsnow, hreitz, kwolf,
	pbonzini

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-01-26  7:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-21 16:22 [PATCH v4 0/3] trace qmp commands Vladimir Sementsov-Ogievskiy
2022-01-21 16:22 ` [PATCH v4 1/3] scripts/qapi/gen.py: add FOO.trace-events output module Vladimir Sementsov-Ogievskiy
2022-01-21 17:56   ` John Snow
2022-01-25  9:07   ` Markus Armbruster
2022-01-25  9:50     ` Vladimir Sementsov-Ogievskiy
2022-01-26  6:51       ` Markus Armbruster
2022-01-21 16:22 ` [PATCH v4 2/3] scripts/qapi/commands: gen_commands(): add add_trace_events arg Vladimir Sementsov-Ogievskiy
2022-01-25 10:02   ` Markus Armbruster
2022-01-25 10:20     ` Vladimir Sementsov-Ogievskiy
2022-01-21 16:22 ` [PATCH v4 3/3] meson: generate trace events for qmp commands Vladimir Sementsov-Ogievskiy
2022-01-21 17:59   ` John Snow
2022-01-25 10:25   ` Markus Armbruster
2022-01-25 11:03     ` Vladimir Sementsov-Ogievskiy
2022-01-25 11:13       ` Vladimir Sementsov-Ogievskiy
2022-01-25 11:31         ` Markus Armbruster

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).