summaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2015-09-17 19:25:07 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-06 10:16:03 +0100
commit7615936ebf4e60c4565268a30df2356c841526f8 (patch)
treedfabb8259e1043afca4312d37cbd5c6ef6b06178 /include/sysemu
parent8a354bd935a800dd2d98ac8f30707e2912c80ae6 (diff)
downloadqemu-7615936ebf4e60c4565268a30df2356c841526f8.tar.gz
qemu-7615936ebf4e60c4565268a30df2356c841526f8.tar.bz2
qemu-7615936ebf4e60c4565268a30df2356c841526f8.zip
replay: initialization and deinitialization
This patch introduces the functions for enabling the record/replay and for freeing the resources when simulator closes. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162507.8676.90232.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/replay.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
index fdf46f8089..ad5234c8fb 100644
--- a/include/sysemu/replay.h
+++ b/include/sysemu/replay.h
@@ -43,6 +43,15 @@ typedef enum ReplayCheckpoint ReplayCheckpoint;
extern ReplayMode replay_mode;
+/* Replay process control functions */
+
+/*! Enables recording or saving event log with specified parameters */
+void replay_configure(struct QemuOpts *opts);
+/*! Initializes timers used for snapshotting and enables events recording */
+void replay_start(void);
+/*! Closes replay log file and frees other resources. */
+void replay_finish(void);
+
/* Processing the instructions */
/*! Returns number of executed instructions. */