From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, crosa@redhat.com, ehabkost@redhat.com,
vsementsov@virtuozzo.com, eblake@redhat.com, jsnow@redhat.com,
armbru@redhat.com, mreitz@redhat.com, kwolf@redhat.com,
den@openvz.org, andrey.shinkevich@virtuozzo.com
Subject: [PATCH 0/4] Add function to dump block layer for debugging
Date: Thu, 19 Nov 2020 16:16:30 +0300 [thread overview]
Message-ID: <20201119131634.14009-1-vsementsov@virtuozzo.com> (raw)
Hi all!
Here is a new function dbg_dump_block_layer() to help with block layer
code debugging.
Usage:
1. Add dbg_dump_block_layer("/path/to/dump.json") call in some place
were you are trying to understand the relations in block graph and run
your test. Or just call dbg_dump_block_layer("/path/to/dump.json") from
gdb session if attached to running Qemu.
2. Convert json to png image:
.scripts/render_block_graph.py --json /path/to/dump.json /path/to/out
And get your /path/to/out dot file and /path/to/out.png image.
Vladimir Sementsov-Ogievskiy (4):
block: bdrv_get_xdbg_block_graph() drop unused errp argument
blockjob: add block_jobs_info_list()
block: add dbg_dump_block_layer()
scripts/render_block_graph.py: add ability to parse json files
qapi/block-core.json | 13 +++++++++
include/block/block.h | 5 +++-
include/block/blockjob.h | 7 +++++
block.c | 53 +++++++++++++++++++++++++++++++++--
blockdev.c | 28 ++----------------
blockjob.c | 29 +++++++++++++++++++
MAINTAINERS | 5 ++++
scripts/render_block_graph.py | 53 ++++++++++++++++++++++-------------
8 files changed, 145 insertions(+), 48 deletions(-)
--
2.21.3
next reply other threads:[~2020-11-19 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 13:16 Vladimir Sementsov-Ogievskiy [this message]
2020-11-19 13:16 ` [PATCH 1/4] block: bdrv_get_xdbg_block_graph() drop unused errp argument Vladimir Sementsov-Ogievskiy
2020-11-19 13:16 ` [PATCH 2/4] blockjob: add block_jobs_info_list() Vladimir Sementsov-Ogievskiy
2020-11-19 13:16 ` [PATCH 3/4] block: add dbg_dump_block_layer() Vladimir Sementsov-Ogievskiy
2020-11-19 17:02 ` Eric Blake
2020-11-19 13:16 ` [PATCH 4/4] scripts/render_block_graph.py: add ability to parse json files Vladimir Sementsov-Ogievskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201119131634.14009-1-vsementsov@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=andrey.shinkevich@virtuozzo.com \
--cc=armbru@redhat.com \
--cc=crosa@redhat.com \
--cc=den@openvz.org \
--cc=eblake@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).