Skip to content

qapi: easier debugging of introspection file

Eric Blake qemu-devel 2 versions – Applied

Status from this message: Queued. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 10 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2qapi: Minor introspect.py cleanupsscripts/qapi/introspect.py+3 -41 reply
2/2qapi: Add comments to aid debugging generated introspectiondocs/devel/qapi-code-gen.txt scripts/qapi/introspect.py+22 -62 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMarkus Armbruster
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] qapi: easier debugging of introspection file

When inspecting the generated qapi-introspect.c (for debugging, or to see what QAPI changes are user visible vs. internal only), the fact that we've intentionally masked names from the QMP client makes it harder to tie back generated code back to the original QAPI .json files. We have a -u switch to qapi-gen for temporarily bypassing the name masking, but that's a rather heavy-handed tactic just for some temporary debugging. Better is to just make the generated file include strategic comments.

v1 was sent back in June, but was stalled due to 3.0 hard freeze. Now that 3.1 is open, it's time to revisit this.

Since then:
- drop the original patch 2 (deleting --unmask proved controversial) [Markus]
- rebase patch on top of Marc-Andre's conditional work [Markus]
- update documentation to match code change [Eric]
- split out a preliminary cleanup patch [pep8]

Eric Blake (2):
qapi: Minor introspect.py cleanups
qapi: Add comments to aid debugging generated introspection

 docs/devel/qapi-code-gen.txt |  1 +
 scripts/qapi/introspect.py   | 34 ++++++++++++++++++++++++----------
 2 files changed, 25 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.1