[CRIU] [PATCH 0/9] CRiu Image Tool(crit)

Pavel Emelyanov xemul at parallels.com
Wed Oct 22 00:55:34 PDT 2014


On 10/21/2014 04:31 AM, Tycho Andersen wrote:
> Hi Ruslan,
> 
> On Wed, Oct 08, 2014 at 01:35:23PM +0300, Ruslan Kuprieiev wrote:
>> Ruslan Kuprieiev (9):
>>   tun: rename FD_TYPES__TUN to FD_TYPES__TUNF
>>   protobuf: generate python modules
>>   scripts: add magic-gen.py
>>   pycriu: add python package
>>   crit: add crit
>>   crit: add crit target to Makefile and *.pyc to .gitignore
>>   test: add crit test
>>   crit: add setup.py
>>   crit: add install-crit target to Makefile
> 
> I played around with crit a bit today, and it is already a very useful
> tool, so thanks! Have you considered making the output actual parsable
> json? e.g. in the cgroup case, the current output is:
> 
> #0 cgroup_entry
>     sets {
>       id: 2
>       ctls {
>         name: "blkio"
>         path: "/lxc/u1"
>       }
>       ctls {
>         name: "cpu"
>         path: "/lxc/u1"
>       }
>     ...
>     }
> 
> It could be something like,
> 
> [
>   {"cgroup_entry": {"sets": {"id": 2,
>                              "ctls": [{"name": "blkio",
>                                        "path": "/lxc/u1"},
>                                       {"name": "cpu",
>                                        "path": "/lxc/u1"}]}}}]
> 
> (formatting however you want it :)
> 
> Then we could use standard json parsing tools to work with the output.

Actually this format is what I asked for to be able to edit the
images with sed and awk. Do you know good command-line json streaming
editor?

Thanks,
Pavel



More information about the CRIU mailing list