From: Christian Borntraeger Date: Thu, 4 Sep 2014 19:57:17 +0000 (+0000) Subject: add more system call numbers for s390. While we are at it X-Git-Tag: svn/VALGRIND_3_10_0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4952a4089070947a874cf1fb8fce6c8d374bbfb7;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c index ee852d4f57..073972ee13 100644 --- a/coregrind/m_syswrap/syswrap-s390x-linux.c +++ b/coregrind/m_syswrap/syswrap-s390x-linux.c @@ -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 ) diff --git a/include/vki/vki-scnums-s390x-linux.h b/include/vki/vki-scnums-s390x-linux.h index b17645ce7c..cde4123260 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