Commit e970fccb authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

dump: call cpu_init() in pre-dump

It's required for dumping fpu state

[root@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: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 394ea23c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment