add more system call numbers for s390. While we are at it
also wire up the common linux kcmp system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14461 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c
index ee852d4..073972e 100644
--- a/coregrind/m_syswrap/syswrap-s390x-linux.c
+++ b/coregrind/m_syswrap/syswrap-s390x-linux.c
@@ -1042,6 +1042,13 @@
LINXY(__NR_process_vm_readv, sys_process_vm_readv), // 340
LINX_(__NR_process_vm_writev, sys_process_vm_writev), // 341
+// ?????(__NR_s390_runtime_instr, ), // 342
+ LINX_(__NR_kcmp, sys_kcmp) // 343
+// ?????(__NR_finit_module, ), // 344
+
+// ?????(__NR_sched_setattr, ), // 345
+// ?????(__NR_sched_getattr, ), // 346
+// ?????(__NR_renameat2, ), // 347
};
SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
diff --git a/include/vki/vki-scnums-s390x-linux.h b/include/vki/vki-scnums-s390x-linux.h
index b17645c..cde4123 100644
--- a/include/vki/vki-scnums-s390x-linux.h
+++ b/include/vki/vki-scnums-s390x-linux.h
@@ -8,7 +8,7 @@
This file is part of Valgrind, a dynamic binary instrumentation
framework.
- Copyright IBM Corp. 2010-2013
+ Copyright IBM Corp. 2010-2014
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -34,7 +34,7 @@
#define __VKI_SCNUMS_S390X_LINUX_H
//----------------------------------------------------------------------
-// From linux-2.6/arch/s390/include/asm/unistd.h
+// From linux-3.16/arch/s390/include/uapi/asm/unistd.h
//----------------------------------------------------------------------
/*
@@ -307,7 +307,13 @@
#define __NR_setns 339
#define __NR_process_vm_readv 340
#define __NR_process_vm_writev 341
-#define NR_syscalls 342
+#define __NR_s390_runtime_instr 342
+#define __NR_kcmp 343
+#define __NR_finit_module 344
+#define __NR_sched_setattr 345
+#define __NR_sched_getattr 346
+#define __NR_renameat2 347
+#define NR_syscalls 348
/*
* There are some system calls that are not present on 64 bit, some