Commit ae25daf0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

dump: Move dump_task_mm out of dump_task_core

Mm used to be in code, so the call was left in that place.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent adac3544
......@@ -641,10 +641,6 @@ static int dump_task_core_all(struct parasite_ctl *ctl,
pr_info("Dumping core (pid: %d)\n", pid);
pr_info("----------------------------------------\n");
ret = dump_task_mm(ctl, stat, misc, cr_fdset);
if (ret)
goto err;
ret = get_task_futex_robust_list(pid, core->thread_core);
if (ret)
goto err;
......@@ -1501,6 +1497,12 @@ static int dump_one_task(struct pstree_item *item)
goto err_cure;
}
ret = dump_task_mm(parasite_ctl, &pps_buf, &misc, cr_fdset);
if (ret) {
pr_err("Dump mm (pid: %d) failed with %d\n", pid, ret);
goto err_cure;
}
ret = dump_task_core_all(parasite_ctl, item->core[0], &pps_buf, &misc, &vmas, cr_fdset);
if (ret) {
pr_err("Dump core (pid: %d) failed with %d\n", pid, ret);
......
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