[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v15 09/24] replay: provide an accessor for rr filena
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v15 09/24] replay: provide an accessor for rr filename |
Date: |
Mon, 18 Mar 2019 12:28:16 +0300 |
User-agent: |
StGit/0.17.1-dirty |
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 <address@hidden>
---
include/sysemu/replay.h | 2 ++
replay/replay.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
index 3a7c58e423..b3f593f2f0 100644
--- a/include/sysemu/replay.h
+++ b/include/sysemu/replay.h
@@ -71,6 +71,8 @@ void replay_start(void);
void replay_finish(void);
/*! Adds replay blocker with the specified error description */
void replay_add_blocker(Error *reason);
+/* Returns name of the replay log file */
+const char *replay_get_filename(void);
/* Processing the instructions */
diff --git a/replay/replay.c b/replay/replay.c
index b75820a1c1..aa534116b5 100644
--- a/replay/replay.c
+++ b/replay/replay.c
@@ -394,3 +394,8 @@ void replay_add_blocker(Error *reason)
{
replay_blockers = g_slist_prepend(replay_blockers, reason);
}
+
+const char *replay_get_filename(void)
+{
+ return replay_filename;
+}
- [Qemu-devel] [PATCH v15 08/24] migration: introduce icount field for snapshots, (continued)
- [Qemu-devel] [PATCH v15 08/24] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 06/24] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 04/24] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 16/24] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 12/24] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 13/24] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 15/24] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 14/24] replay: refine replay-time module, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 10/24] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 07/24] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 09/24] replay: provide an accessor for rr filename,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v15 02/24] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 05/24] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 03/24] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2019/03/18
- [Qemu-devel] [PATCH v15 01/24] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/03/18