[CRIU] [PATCH 1/2] arch: x86 -- Add sys_ptrace declaration

Cyrill Gorcunov gorcunov at openvz.org
Thu Dec 3 09:24:15 PST 2015


We will need it for cr-check.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/syscalls/syscall_32.tbl | 1 +
 arch/x86/syscalls/syscall_64.tbl | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl
index 22c632f0f027..0f17afcb7426 100644
--- a/arch/x86/syscalls/syscall_32.tbl
+++ b/arch/x86/syscalls/syscall_32.tbl
@@ -14,6 +14,7 @@ __NR_unlink		10		sys_unlink		(char *pathname)
 __NR_lseek		19		sys_lseek		(int fd, s32 offset, unsigned int origin)
 __NR_getpid		20		sys_getpid		(void)
 __NR_mount		21		sys_mount		(const char *dev_name, const char *dir_name, const char *type, unsigned long flags, const void *data)
+__NR_ptrace		26		sys_ptrace		(long request, pid_t pid, void *addr, void *data)
 __NR_kill		37		sys_kill		(long pid, int sig)
 __NR_mkdir		39		sys_mkdir		(const char *name, int mode)
 __NR_rmdir		40		sys_rmdir		(const char *name)
diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl
index bfc63bccca7b..421002c366d0 100644
--- a/arch/x86/syscalls/syscall_64.tbl
+++ b/arch/x86/syscalls/syscall_64.tbl
@@ -47,6 +47,7 @@ __NR_rmdir			84		sys_rmdir		(const char *name)
 __NR_unlink			87		sys_unlink		(char *pathname)
 __NR_readlink			89		sys_readlink		(const char *path, char *buf, int bufsize)
 __NR_umask			95		sys_umask		(int mask)
+__NR_ptrace			101		sys_ptrace		(long request, pid_t pid, void *addr, void *data)
 __NR_getgroups			115		sys_getgroups		(int gsize, unsigned int *groups)
 __NR_setresuid			117		sys_setresuid		(int uid, int euid, int suid)
 __NR_getresuid			118		sys_getresuid		(int *uid, int *euid, int *suid)
-- 
2.5.0



More information about the CRIU mailing list