Commit 12820d9b authored by Pavel Emelyanov's avatar Pavel Emelyanov

stats: Don't account mem-write time into mem-dump time for regular dump

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 37c13709
......@@ -362,6 +362,8 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
args->off += args->nr_segs;
}
timing_stop(TIME_MEMDUMP);
if (pp_ret)
*pp_ret = pp;
else {
......@@ -390,8 +392,6 @@ out_snap:
mem_snap_close(snap);
out:
pr_info("----------------------------------------\n");
if (!ret)
timing_stop(TIME_MEMDUMP);
return 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