mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
We have ptrace defines and functions that are part of UAPI, and we have some internal stuff not to be exposed. Split ptrace.h into two files accordingly. While at it, do some cleanups: - add ptrace_ prefix to some functions and macros - remove (duplicated) PTRACE_* defines from .c files - rename ptrace_seccomp(), remove its duplicate - remove unused ptrace defines - remove unneeded (ptrace-related) includes travis-ci: success for compel uapi cleanups Signed-off-by: Kir Kolyshkin <kir@openvz.org> Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
18 lines
594 B
C
18 lines
594 B
C
#ifndef COMPEL_PTRACE_H__
|
|
#define COMPEL_PTRACE_H__
|
|
|
|
#include <linux/types.h>
|
|
#include <compel/asm/infect-types.h>
|
|
#include <compel/ptrace.h>
|
|
|
|
#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);
|
|
|
|
#endif /* COMPEL_PTRACE_H__ */
|