From: Eric Blake <eblake@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
qemu-block@nongnu.org
Cc: kwolf@redhat.com, ehabkost@redhat.com, qemu-devel@nongnu.org,
armbru@redhat.com, mreitz@redhat.com,
andrey.shinkevich@virtuozzo.com, crosa@redhat.com,
den@openvz.org, jsnow@redhat.com
Subject: Re: [PATCH 3/4] block: add dbg_dump_block_layer()
Date: Thu, 19 Nov 2020 11:02:36 -0600 [thread overview]
Message-ID: <bd3c2fb4-a163-d79e-48be-4559342fab82@redhat.com> (raw)
In-Reply-To: <20201119131634.14009-4-vsementsov@virtuozzo.com>
On 11/19/20 7:16 AM, Vladimir Sementsov-Ogievskiy wrote:
> Add function for debugging: we already have x-debug-query-block-graph
> qmp command and scripts/render_block_graph.py which can dump
> block-layer graph for running vm using qmp command. But when debug
> block layer code, its often needed to dump some intermediate state
> during some operation, so separate qmp command doesn't help.
>
> So, let's introduce a function which can dump needed information into
> json file.
>
> In next commit we'll update scripts/render_block_graph.py so that it
> will be able to parse json files.
>
> For new function to not crash if we have mirror_top filter node not yet
> bdrv_append()ed (to debug why it can't be appended), make
> bdrv_get_allocated_file_size() and bdrv_refresh_filename() not crash on
> filters without a child.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
> +++ b/qapi/block-core.json
> @@ -1908,6 +1908,19 @@
> ##
> { 'command': 'x-debug-query-block-graph', 'returns': 'XDbgBlockGraph' }
>
> +##
> +# @XDbgBlockLayerDump:
> +#
> +# Unite query-named-block-nodes, query-block-jobs and
> +# x-debug-query-block-graph results into one structure for block_layer_dump()
> +# function.
> +#
> +# Since: 5.3
The next release will be numbered 6.0, not 5.3.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2020-11-19 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 13:16 [PATCH 0/4] Add function to dump block layer for debugging Vladimir Sementsov-Ogievskiy
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 [this message]
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=bd3c2fb4-a163-d79e-48be-4559342fab82@redhat.com \
--to=eblake@redhat.com \
--cc=andrey.shinkevich@virtuozzo.com \
--cc=armbru@redhat.com \
--cc=crosa@redhat.com \
--cc=den@openvz.org \
--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 \
--cc=vsementsov@virtuozzo.com \
/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).