[CRIU] [PATCH v4 5/7] shmem: add anon shmem dumping to predump command

Eugene Batalov eabatalov89 at gmail.com
Thu Aug 11 07:53:55 PDT 2016


As anon shmem dumping supports page changes tracking
we can call it during predump.

Signed-off-by: Eugene Batalov <eabatalov89 at gmail.com>
---
 criu/cr-dump.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 5c6922a..e209aab 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1570,6 +1570,10 @@ int cr_pre_dump_tasks(pid_t pid)
 		if (pre_dump_one_task(item))
 			goto err;
 
+	ret = cr_dump_shmem();
+	if (ret)
+		goto err;
+
 	if (irmap_predump_prep())
 		goto err;
 
-- 
1.9.1



More information about the CRIU mailing list