[CRIU] [PATCH] ptrace: Skip GETREGS on exits from syscalls when possible
Cyrill Gorcunov
gorcunov at gmail.com
Tue Sep 16 09:43:53 PDT 2014
On Tue, Sep 16, 2014 at 08:35:44PM +0400, Pavel Emelyanov wrote:
> On 09/16/2014 12:24 PM, Cyrill Gorcunov wrote:
> > On Tue, Sep 16, 2014 at 12:27:07AM +0400, Pavel Emelyanov wrote:
> >> From: Pavel Emelyanov <xemul at parallels.com>
> >>
> >> The PTRACE_SYSCALL traps task twice -- first on enter into
> >> and then on exit from syscall. If we trace a single task (and
> >> we do it on dump two times per task) we may skip half of all
> >> getregs calls -- on exit we don't need them.
> >>
> >> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> >
> > Does it really saves us that much time so that we sacrifice logging?
>
> We don't. The aim is to remove unneeded PTRACE_GETREGS calls.
OK, up to you.
More information about the CRIU
mailing list