[CRIU] [PATCH] dump: call cpu_init() in pre-dump

Andrey Vagin avagin at openvz.org
Fri Jan 17 13:32:45 PST 2014


It's required for dumping fpu state

[root at avagin-fc19-cr crtools]# bash  test/zdtm.sh  -d -P -i 2  static/fpu00
Execute zdtm/live/static/fpu00
./fpu00 --pidfile=fpu00.pid --outfile=fpu00.out
Dump 8411
Dump 8411
Check results 8411
01:29:30.550:  8411: FAIL: fpu00.c:78: 0.806165 != -nan
 (errno = 11 (Resource temporarily unavailable))

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cr-dump.c b/cr-dump.c
index b80cfa8..3c68b98 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1608,6 +1608,9 @@ int cr_pre_dump_tasks(pid_t pid)
 	if (kerndat_init())
 		goto err;
 
+	if (cpu_init())
+		goto err;
+
 	if (vdso_init())
 		goto err;
 
-- 
1.8.3.1



More information about the CRIU mailing list