[CRIU] DUMP test.sh in android

Pavel Emelyanov xemul at parallels.com
Mon Sep 8 06:42:26 PDT 2014


On 09/08/2014 05:22 PM, Christopher Covington wrote:
> On 09/08/2014 06:54 AM, Pavel Emelyanov wrote:
>> On 09/08/2014 12:16 AM, beproject criu wrote:
>>> I have installed criu in android emulator and tried to dump simple process referring to http://criu.org/Simple_loop but i was not successfull. I get the following messages,
>>>
>>> /sdcard # criu dump -t 98 -vvvv -o dump.log && echo OK
>>> /sdcard # cat dump.log 
>>> (00.000780) ========================================
>>> (00.003045) Dumping processes (pid: 98)
>>> (00.003294) ========================================
>>> (00.006383) Found anon-shmem device at 1
>>> (00.006829) Reset 14399's dirty tracking
>>> (00.007730)  ... done
>>> (00.008526) Dirty tracking support is OFF
>>> (00.010213) irmap: Searching irmap cache in work dir
>>> (00.010530) irmap: Searching irmap cache in parent
>>> (00.010744) irmap: No irmap cache
>>> (00.016358) Writing image inventory (version 1)
>>> (00.019428) Collected 1.pid namespace
>>> (00.019806) Collected 2.net <http://2.net/> namespace
>>> (00.020095) Collected 3.ipc namespace
>>> (00.020458) Collected 4.uts namespace
>>> (00.020759) Collected 5.mnt namespace
>>> (00.020920) cg: Dumping cgroups for 14399
>>> (00.022247) cg:  `- New css ID 1
>>> (00.022471) cg:     `- [cpuset,debug,cpu,cpuacct,memory,devices,freezer,blkio,perf_event] -> [/]
>>> (00.022628) cg: Set 1 is criu one
>>> (00.025407) Seized task 98, state 1
>>> (00.030503) Seized task 14394, state 0
>>> (00.051241) Collected 14394 in 1 state
>>> (00.052304) Collected 98 in 1 state
>>> (00.053954) Lock network
>>> (00.056039) type unsupported source rootfs 2 / @ ./ flags 0 options size=373396k,nr_inodes=93349,
>>> (00.056453) type proc source proc 4 / @ ./proc flags 200000 options 
>>> (00.056765) type sysfs source sysfs b / @ ./sys flags 200000 options 
>>> (00.057289) type cgroup source none c / @ ./sys/fs/cgroup flags 200000 options cpuset,debug,cpu,cpuacct,memory,devices,freezer,blkio,perf_event,
>>> (00.057582) type debugfs source none 6 / @ ./sys/kernel/debug flags 200000 options 
>>> (00.057911) type devpts source devpts a / @ ./dev/pts flags 200000 options mode=600,ptmxmode=000,
>>> (00.058346) type unsupported source /dev/mmcblk0 b300000 / @ ./sdcard flags 200000 options data=ordered,
>>> (00.058690) Building mountpoints tree
>>> (00.058848) Building plain mount tree
>>> (00.058977) Working on 15->1
>>> (00.059107) Working on 14->1
>>> (00.059236) Working on 13->11
>>> (00.059364) Working on 12->11
>>> (00.059491) Working on 11->1
>>> (00.059618) Working on 10->1
>>> (00.059745) Working on 1->1
>>> (00.061002) Error (mount.c:288): No root found for tree
>>
>> Andrey, presumably this is because the / is on rootfs.
> 
> I'll send my patch for this.

That would be awesome, thanks :)

> Any reason to refuse to dump from rootfs?

No reasons, we just never met one and didn't check whether just plain mount/umount
would work for it.

Thanks,
Pavel



More information about the CRIU mailing list