replay.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # -*- Mode: Python -*-
  2. # vim: filetype=python
  3. #
  4. ##
  5. # = Record/replay
  6. ##
  7. { 'include': 'common.json' }
  8. ##
  9. # @ReplayMode:
  10. #
  11. # Mode of the replay subsystem.
  12. #
  13. # @none: normal execution mode. Replay or record are not enabled.
  14. #
  15. # @record: record mode. All non-deterministic data is written into
  16. # the replay log.
  17. #
  18. # @play: replay mode. Non-deterministic data required for system
  19. # execution is read from the log.
  20. #
  21. # Since: 2.5
  22. ##
  23. { 'enum': 'ReplayMode',
  24. 'data': [ 'none', 'record', 'play' ] }
  25. ##
  26. # @ReplayInfo:
  27. #
  28. # Record/replay information.
  29. #
  30. # @mode: current mode.
  31. #
  32. # @filename: name of the record/replay log file. It is present only
  33. # in record or replay modes, when the log is recorded or replayed.
  34. #
  35. # @icount: current number of executed instructions.
  36. #
  37. # Since: 5.2
  38. ##
  39. { 'struct': 'ReplayInfo',
  40. 'data': { 'mode': 'ReplayMode', '*filename': 'str', 'icount': 'int' } }
  41. ##
  42. # @query-replay:
  43. #
  44. # Retrieve the record/replay information. It includes current
  45. # instruction count which may be used for @replay-break and
  46. # @replay-seek commands.
  47. #
  48. # Returns: record/replay information.
  49. #
  50. # Since: 5.2
  51. #
  52. # .. qmp-example::
  53. #
  54. # -> { "execute": "query-replay" }
  55. # <- { "return": { "mode": "play", "filename": "log.rr", "icount": 220414 } }
  56. ##
  57. { 'command': 'query-replay',
  58. 'returns': 'ReplayInfo' }
  59. ##
  60. # @replay-break:
  61. #
  62. # Set replay breakpoint at instruction count @icount. Execution stops
  63. # when the specified instruction is reached. There can be at most one
  64. # breakpoint. When breakpoint is set, any prior one is removed. The
  65. # breakpoint may be set only in replay mode and only "in the future",
  66. # i.e. at instruction counts greater than the current one. The
  67. # current instruction count can be observed with @query-replay.
  68. #
  69. # @icount: instruction count to stop at
  70. #
  71. # Since: 5.2
  72. #
  73. # .. qmp-example::
  74. #
  75. # -> { "execute": "replay-break", "arguments": { "icount": 220414 } }
  76. # <- { "return": {} }
  77. ##
  78. { 'command': 'replay-break', 'data': { 'icount': 'int' } }
  79. ##
  80. # @replay-delete-break:
  81. #
  82. # Remove replay breakpoint which was set with @replay-break. The
  83. # command is ignored when there are no replay breakpoints.
  84. #
  85. # Since: 5.2
  86. #
  87. # .. qmp-example::
  88. #
  89. # -> { "execute": "replay-delete-break" }
  90. # <- { "return": {} }
  91. ##
  92. { 'command': 'replay-delete-break' }
  93. ##
  94. # @replay-seek:
  95. #
  96. # Automatically proceed to the instruction count @icount, when
  97. # replaying the execution. The command automatically loads nearest
  98. # snapshot and replays the execution to find the desired instruction.
  99. # When there is no preceding snapshot or the execution is not
  100. # replayed, then the command fails. Instruction count can be obtained
  101. # with the @query-replay command.
  102. #
  103. # @icount: target instruction count
  104. #
  105. # Since: 5.2
  106. #
  107. # .. qmp-example::
  108. #
  109. # -> { "execute": "replay-seek", "arguments": { "icount": 220414 } }
  110. # <- { "return": {} }
  111. ##
  112. { 'command': 'replay-seek', 'data': { 'icount': 'int' } }