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