[CRIU] [PATCH] compel: return ptrace area helpers back to uapi
Andrei Vagin
avagin at virtuozzo.com
Thu Mar 23 15:10:29 PDT 2017
Applied, thanks!
On Thu, Mar 16, 2017 at 03:45:39PM +0300, Stanislav Kinsburskiy wrote:
> These helpers are valuable and can be used outside.
>
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
> ---
> compel/include/ptrace.h | 4 ----
> compel/include/uapi/ptrace.h | 4 ++++
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/compel/include/ptrace.h b/compel/include/ptrace.h
> index 30dc744..01f55c4 100644
> --- a/compel/include/ptrace.h
> +++ b/compel/include/ptrace.h
> @@ -7,10 +7,6 @@
>
> #define PTRACE_SI_EVENT(_si_code) (((_si_code) & 0xFFFF) >> 8)
>
> -extern int ptrace_peek_area(pid_t pid, void *dst, void *addr, long bytes);
> -extern int ptrace_poke_area(pid_t pid, void *src, void *addr, long bytes);
> -extern int ptrace_swap_area(pid_t pid, void *dst, void *src, long bytes);
> -
> extern int ptrace_get_regs(pid_t pid, user_regs_struct_t *regs);
> extern int ptrace_set_regs(pid_t pid, user_regs_struct_t *regs);
>
> diff --git a/compel/include/uapi/ptrace.h b/compel/include/uapi/ptrace.h
> index d249bd9..7024efe 100644
> --- a/compel/include/uapi/ptrace.h
> +++ b/compel/include/uapi/ptrace.h
> @@ -60,4 +60,8 @@
>
> extern int ptrace_suspend_seccomp(pid_t pid);
>
> +extern int ptrace_peek_area(pid_t pid, void *dst, void *addr, long bytes);
> +extern int ptrace_poke_area(pid_t pid, void *src, void *addr, long bytes);
> +extern int ptrace_swap_area(pid_t pid, void *dst, void *src, long bytes);
> +
> #endif /* UAPI_COMPEL_PTRACE_H__ */
>
More information about the CRIU
mailing list