]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
add more system call numbers for s390. While we are at it
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 4 Sep 2014 19:57:17 +0000 (19:57 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 4 Sep 2014 19:57:17 +0000 (19:57 +0000)
also wire up the common linux kcmp system call.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14461

coregrind/m_syswrap/syswrap-s390x-linux.c
include/vki/vki-scnums-s390x-linux.h

index ee852d4f570f24bb5fb4c24b67f2c17d6c89b0fe..073972ee1376c5559508afa4d1a8ad4c8dd4dd48 100644 (file)
@@ -1042,6 +1042,13 @@ static SyscallTableEntry syscall_table[] = {
 
    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 )
index b17645ce7c0b0a28ebca0a6e29861d063a0c639b..cde412326088991a0eea06123ae491933bb5ddca 100644 (file)
@@ -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
 //----------------------------------------------------------------------
 
 /*
 #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