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