[CRIU] [PATCH] ptrace: Skip GETREGS on exits from syscalls when possible
Pavel Emelyanov
xemul at parallels.com
Tue Sep 16 09:35:44 PDT 2014
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.
> Previously we always check that we're in good shape and log out
> the syscall engine is about to yield. Thus I'm not sure if it
> worth it (patch looks good though, I simply have a gut feeling
> that one day we might hit some problem with it).
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
>
More information about the CRIU
mailing list