[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v10 09/24] replay: provide an accessor for rr filena
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v10 09/24] replay: provide an accessor for rr filename |
Date: |
Thu, 17 Jan 2019 10:37:41 +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 3a7c58e..b3f593f 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 b75820a..aa53411 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 v10 00/24] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 01/24] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 02/24] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 03/24] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 04/24] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 05/24] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 06/24] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 07/24] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 09/24] replay: provide an accessor for rr filename,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v10 08/24] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 10/24] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 11/24] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 12/24] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/01/17
- [Qemu-devel] [PATCH v10 13/24] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/01/17