Hi all!

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

That's a replacement for my
"[PATCH 0/5] trace: inroduce qmp: trace namespace"
Supersedes: <20210923195451.714796-1-vsement...@virtuozzo.com>


There are some problems, so that's an RFC.

1. Main problem is that I failed to teach meson how to build trace
points for generated trace-events files. I can build it, but.. See
commit 03 for the description.

2. I added --add-trace-points option to qapi-gen, to generate trace
points optionally. Probably that would be better to do it without an
option, but I failed to fix build for qmp commands in qga and in tests

Vladimir Sementsov-Ogievskiy (3):
  scripts/qapi/commands: gen_commands(): add add_trace_points argument
  scripts/qapi-gen.py: add --add-trace-points option
  meson: generate trace points for qmp commands

 meson.build              |  1 +
 qapi/meson.build         |  4 +-
 scripts/qapi/commands.py | 84 ++++++++++++++++++++++++++++++++++------
 scripts/qapi/gen.py      | 13 +++++--
 scripts/qapi/main.py     | 10 +++--
 trace/meson.build        | 10 +++--
 6 files changed, 101 insertions(+), 21 deletions(-)

-- 
2.31.1


Reply via email to