[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 0/3] block nodes graph visualization
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[Qemu-devel] [PATCH v2 0/3] block nodes graph visualization |
Date: |
Fri, 17 Aug 2018 21:00:13 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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
out.dot.png
Description: PNG image
out.pointers.dot.png
Description: PNG image