[CRIU] Re: [PATCH] epoll: Add support for disabled events

Pavel Emelyanov xemul at parallels.com
Fri Oct 19 06:48:59 EDT 2012


On 10/19/2012 02:38 PM, Cyrill Gorcunov wrote:
> 
> The new kernel (3.7) can disable events so add
> support of this new feature in our tool.
> 
> The patch done in manner to support even earlier
> kernels thus no need to recompile the kernel
> (still I'll roll up an update for fdinfo and
>  our kernel soon).
> 
> Reported-by: Pavel Emelyanov <xemul at parallels.com>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  eventpoll.c              |   16 ++++++++++++++--
>  proc_parse.c             |   12 +++++++++---
>  protobuf/eventpoll.proto |    2 ++
>  3 files changed, 25 insertions(+), 5 deletions(-)
> 

> @@ -47,8 +47,8 @@ int is_eventpoll_link(int lfd)
>  
>  static void pr_info_eventpoll_tfd(char *action, EventpollTfdEntry *e)
>  {
> -	pr_info("%seventpoll-tfd: id %#08x tfd %#08x events %#08x data %#016lx\n",
> -		action, e->id, e->tfd, e->events, e->data);
> +	pr_info("%seventpoll-tfd: id %#08x tfd %#08x events %#08x data %#016lx enabled %1d\n",
> +		action, e->id, e->tfd, e->events, e->data, e->enabled);
>  }
>  

This implies respective support from the kernel fdinfo file. Need to make sure
Al will accept it.

Thus, I postpone the patch for a while.


More information about the CRIU mailing list