66 lines
1.3 KiB
Python
66 lines
1.3 KiB
Python
# -*- Mode: Python -*-
|
|
#
|
|
|
|
##
|
|
# = Record/replay
|
|
##
|
|
|
|
{ 'include': 'common.json' }
|
|
|
|
##
|
|
# @ReplayMode:
|
|
#
|
|
# Mode of the replay subsystem.
|
|
#
|
|
# @none: normal execution mode. Replay or record are not enabled.
|
|
#
|
|
# @record: record mode. All non-deterministic data is written into the
|
|
# replay log.
|
|
#
|
|
# @play: replay mode. Non-deterministic data required for system execution
|
|
# is read from the log.
|
|
#
|
|
# Since: 2.5
|
|
##
|
|
{ '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: 5.2
|
|
#
|
|
##
|
|
{ 'struct': 'ReplayInfo',
|
|
'data': { 'mode': 'ReplayMode', '*filename': 'str', 'icount': 'int' } }
|
|
|
|
##
|
|
# @query-replay:
|
|
#
|
|
# Retrieve the record/replay information.
|
|
# It includes current instruction count which may be used for
|
|
# @replay-break and @replay-seek commands.
|
|
#
|
|
# Returns: record/replay information.
|
|
#
|
|
# Since: 5.2
|
|
#
|
|
# Example:
|
|
#
|
|
# -> { "execute": "query-replay" }
|
|
# <- { "return": { "mode": "play", "filename": "log.rr", "icount": 220414 } }
|
|
#
|
|
##
|
|
{ 'command': 'query-replay',
|
|
'returns': 'ReplayInfo' }
|