All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] block nodes graph visualization
@ 2018-08-17 18:00 Vladimir Sementsov-Ogievskiy
  2018-08-17 18:04 ` [Qemu-devel] [PATCH v2 1/3] qapi: add x-query-block-graph Vladimir Sementsov-Ogievskiy
  0 siblings, 1 reply; 20+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2018-08-17 18:00 UTC (permalink / raw)
  To: qemu block, qemu-devel
  Cc: crosa, Eduardo Habkost, Eric Blake, Markus Armbruster, Max Reitz,
	Kevin Wolf, Fam Zheng, John Snow, Stefan Hajnoczi, Paolo Bonzini,
	Denis V. Lunev, Vladimir Sementsov-Ogievskiy

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

Hi all!

On the way of backup schemes development (and in general any complicated
developments in Qemu block layer) it would be good to have an ability to 
print
out graph of block nodes with their permissions. Just look at attached 
picture.

v2: major rework: Identifying non-bds nodes by their description was a 
bad idea,
descriptions are not guaranteed to be different for different nodes. So, 
the only
way is use pointer to identify them. And to be unique, let's use pointers to
identify all the nodes in the graph. As additional benefit, we have 
pointers for
each node, which is good for debugging (imagine a gdb session).

Vladimir Sementsov-Ogievskiy (3):
   qapi: add x-query-block-graph
   scripts: add render_block_graph function for QEMUMachine
   not-for-commit: example of new command usage for debugging

  qapi/block-core.json          | 116 
++++++++++++++++++++++++++++++++++++++++++
  include/block/block.h         |   1 +
  block.c                       |  80 +++++++++++++++++++++++++++++
  blockdev.c                    |   5 ++
  scripts/render_block_graph.py |  78 ++++++++++++++++++++++++++++
  tests/qemu-iotests/222        |   3 ++
  6 files changed, 283 insertions(+)
  create mode 100644 scripts/render_block_graph.py

-- 
2.11.1


[-- Attachment #2: out.dot.png --]
[-- Type: image/png, Size: 75363 bytes --]

[-- Attachment #3: out.pointers.dot.png --]
[-- Type: image/png, Size: 89913 bytes --]

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

end of thread, other threads:[~2018-08-22 15:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-17 18:00 [Qemu-devel] [PATCH v2 0/3] block nodes graph visualization Vladimir Sementsov-Ogievskiy
2018-08-17 18:04 ` [Qemu-devel] [PATCH v2 1/3] qapi: add x-query-block-graph Vladimir Sementsov-Ogievskiy
2018-08-17 18:04   ` [Qemu-devel] [PATCH v2 2/3] scripts: add render_block_graph function for QEMUMachine Vladimir Sementsov-Ogievskiy
2018-08-17 18:25     ` Eduardo Habkost
2018-08-17 18:59       ` Vladimir Sementsov-Ogievskiy
2018-08-17 19:09         ` Eduardo Habkost
2018-08-17 18:04   ` [Qemu-devel] [PATCH v2 3/3] not-for-commit: example of new command usage for debugging Vladimir Sementsov-Ogievskiy
2018-08-17 20:32   ` [Qemu-devel] [PATCH v2 1/3] qapi: add x-query-block-graph Eric Blake
2018-08-17 21:03     ` Max Reitz
2018-08-20 10:20       ` Vladimir Sementsov-Ogievskiy
2018-08-20 13:44         ` Max Reitz
2018-08-20 15:13           ` Vladimir Sementsov-Ogievskiy
2018-08-20 16:35             ` Max Reitz
2018-08-20 17:04               ` Vladimir Sementsov-Ogievskiy
2018-08-20 17:13                 ` Max Reitz
2018-08-20 17:35                   ` Vladimir Sementsov-Ogievskiy
2018-08-22 15:19                     ` Vladimir Sementsov-Ogievskiy
2018-08-20 18:38           ` Vladimir Sementsov-Ogievskiy
2018-08-22  8:33             ` Max Reitz
2018-08-20 10:03     ` Vladimir Sementsov-Ogievskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.