[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp comman
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp command |
Date: |
Thu, 17 Jan 2019 14:20:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Pavel Dovgalyuk <address@hidden> writes:
> This patch introduces 'info replay' monitor command and
> corresponding qmp request.
> These commands request the current record/replay mode, replay log file
> name, and the instruction count (number of recorded/replayed
> instructions). The instruction count can be used with the
> replay_seek/replay_break commands added in the next two patches.
>
> Signed-off-by: Pavel Dovgalyuk <address@hidden>
> Acked-by: Dr. David Alan Gilbert <address@hidden>
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 6d45c29..d70e584 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -28,7 +28,8 @@
> #
> # @icount: Current instruction count. Appears when execution record/replay
> # is enabled. Used for "time-traveling" to match the moment
> -# in the recorded execution with the snapshots. (since 4.0)
> +# in the recorded execution with the snapshots. This counter may
> +# be obtained through @query-replay command (since 4.0)
> #
> # Since: 1.3
> #
> diff --git a/qapi/replay.json b/qapi/replay.json
> index 9e13551..ef2fb4b 100644
> --- a/qapi/replay.json
> +++ b/qapi/replay.json
> @@ -24,3 +24,42 @@
> ##
> { 'enum': 'ReplayMode',
> 'data': [ 'none', 'record', 'play' ] }
> +
> +##
> +# @ReplayInfo:
> +#
> +# Record/replay information.
> +#
> +# @mode: current mode.
> +#
> +# @filename: name of the record/replay log file.
> +# It is present only in record or replay modes, when the log
> +# is recorded or replayed.
> +#
> +# @icount: current number of executed instructions.
> +#
> +# Since: 4.0
> +#
> +##
> +{ 'struct': 'ReplayInfo',
> + 'data': { 'mode': 'ReplayMode', '*filename': 'str', 'icount': 'int' } }
> +
> +##
> +# @query-replay:
> +#
> +# Retrieves the record/replay information.
Imperative mood: Retrieve the record/replay information.
> +# It includes current instruction count which may be used for replay-break
> and
> +# replay-seek commands.
Please wrap comment lines around column 70.
> +#
> +# Returns: record/replay information.
> +#
> +# Since: 4.0
> +#
> +# Example:
> +#
> +# -> { "execute": "query-replay" }
> +# <- { "return": { "mode": "play", "filename": "log.rr", "icount": 220414 } }
> +#
> +##
> +{ 'command': 'query-replay',
> + 'returns': 'ReplayInfo' }
Preferably with these minor touch-ups, QAPI schema part
Acked-by: Markus Armbruster <address@hidden>
[...]
- [Qemu-devel] [PATCH v10 04/24] replay: update docs for record/replay with block devices, (continued)
- [Qemu-devel] [PATCH v10 04/24] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 05/24] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 06/24] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 07/24] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 09/24] replay: provide an accessor for rr filename, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 08/24] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 10/24] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/01/17
- Re: [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp command,
Markus Armbruster <=
- [Qemu-devel] [PATCH v10 12/24] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 13/24] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 14/24] replay: refine replay-time module, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 15/24] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 16/24] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 18/24] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 17/24] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2019/01/17