summaryrefslogtreecommitdiffstats
path: root/replay
diff options
context:
space:
mode:
authorPavel Dovgalyuk2020-10-03 19:12:57 +0200
committerPaolo Bonzini2020-10-06 08:34:49 +0200
commit56db1198a417838f17ffb7a7546c731deab02938 (patch)
tree9c7bdc3b114720ad11febec754300cca561777af /replay
parentreplay: don't record interrupt poll (diff)
downloadqemu-56db1198a417838f17ffb7a7546c731deab02938.tar.gz
qemu-56db1198a417838f17ffb7a7546c731deab02938.tar.xz
qemu-56db1198a417838f17ffb7a7546c731deab02938.zip
replay: provide an accessor for rr filename
This patch adds an accessor function for the name of the record/replay log file. Adding an accessor instead of making variable global, prevents accidental modification of this variable by other modules. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <160174517710.12451.17645787545733927488.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'replay')
-rw-r--r--replay/replay.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/replay/replay.c b/replay/replay.c
index 4c1457b07e..797b6a5b15 100644
--- a/replay/replay.c
+++ b/replay/replay.c
@@ -399,3 +399,8 @@ void replay_add_blocker(Error *reason)
{
replay_blockers = g_slist_prepend(replay_blockers, reason);
}
+
+const char *replay_get_filename(void)
+{
+ return replay_filename;
+}