[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v11 09/25] replay: provide an accessor for rr filena
From: |
Pavel Dovgalyuk |
Subject: |
[Qemu-devel] [PATCH v11 09/25] replay: provide an accessor for rr filename |
Date: |
Thu, 31 Jan 2019 16:16:13 +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 v11 00/25] Fixing record/replay and adding reverse debugging, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 03/25] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 02/25] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 01/25] replay: add missing fix for internal function, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 04/25] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 06/25] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 05/25] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 07/25] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 08/25] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 09/25] replay: provide an accessor for rr filename,
Pavel Dovgalyuk <=
- [Qemu-devel] [PATCH v11 10/25] qapi: introduce replay.json for record/replay-related stuff, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 11/25] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 12/25] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 14/25] replay: refine replay-time module, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 13/25] replay: implement replay-seek command, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 15/25] replay: flush rr queue before loading the vmstate, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 16/25] gdbstub: add reverse step support in replay mode, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 17/25] gdbstub: add reverse continue support in replay mode, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 18/25] replay: describe reverse debugging in docs/replay.txt, Pavel Dovgalyuk, 2019/01/31
- [Qemu-devel] [PATCH v11 19/25] replay: add BH oneshot event for block layer, Pavel Dovgalyuk, 2019/01/31