[CRIU] pages-1

Pavel Emelyanov xemul at parallels.com
Thu Nov 14 07:38:52 PST 2013


On 11/14/2013 07:10 PM, Sebastian Biedermann wrote:
> Hi guys,
> 
> could you tell me at which file and location in the CRIU source code
> the file 'pages-1.img' which includes the memory dump is created and
> written once I dump a process?

mem.c: __parasite_dump_pages_seized, this code:

                struct page_xfer xfer;

                timing_start(TIME_MEMWRITE);
                ret = open_page_xfer(&xfer, CR_FD_PAGEMAP, ctl->pid.virt);
                if (ret < 0)
                        goto out_pp;

                ret = page_xfer_dump_pages(&xfer, pp, 0);

                xfer.close(&xfer);

The open_page_xfer() opens pages-%d.img file, the page_xfer_dump_pages()
writes pages there, the xfer.close() closes one.

> Thank you!
> 

Thanks,
Pavel


More information about the CRIU mailing list