[CRIU] Re: [PATCH cr 0/6] Dump zombies from another PID namespace (v2)

Pavel Emelyanov xemul at parallels.com
Fri Sep 7 11:17:38 EDT 2012


On 09/07/2012 06:59 PM, Andrey Vagin wrote:
> The problem is to get a virtual pid for zombies.
> This code gets two list of children from current and target pidns.
> Then it removes alive task from the second list and dumps remaining zombies.
> 
> A procfs from a target pidns is needed for dumping zombies,
> crtools gets it from parasite code.
> 
> v2: Preen feathers
> 
> Andrey Vagin (6):
>   dump: get children by pid instead of pstree_item
>   parasite: get a file descriptor for procfs from a target pidns
>   util: add ability to change a file descriptor on procfs
>   crtools: use pit_t for PIDs
>   dump: get a file descriptor on procfs from parasite
>   dump: dump zombies from another PID namespace
> 
>  cr-dump.c                  |  162 +++++++++++++++++++++++++++++++++++---------
>  cr-restore.c               |    3 +-
>  include/crtools.h          |    4 +-
>  include/parasite-syscall.h |    3 +-
>  include/parasite.h         |    1 +
>  include/syscall-x86-64.def |    4 +
>  include/util.h             |    2 +
>  parasite-syscall.c         |   21 ++++++-
>  parasite.c                 |   42 +++++++++++
>  test/zdtm.sh               |    4 +-
>  util.c                     |   29 ++++++++
>  11 files changed, 236 insertions(+), 39 deletions(-)

OK, applied, thanks.


More information about the CRIU mailing list