Linux user for 5.0 patches
The following changes since commit 373c7068dd610e97f0b551b5a6d0a27cd6da4506:
qemu.nsi: Install Sphinx documentation (2020-03-09 16:45:00 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/linux-user-for-5.0-pull-request
for you to fetch changes up to 63e05b3db1e5f0560ae579050c53d1ee36ed5aca:
linux-user, openrisc: sync syscall numbers with kernel v5.5 (2020-03-16 14:20:07 +0100)
----------------------------------------------------------------
update syscall numbers to linux 5.5 (with scripts) add futex_time64/clock_gettime64/clock_settime64 add AT_EXECFN
Emulate x86_64 vsyscalls
----------------------------------------------------------------
Alistair Francis (4):
linux-user: Protect more syscalls
linux-user/syscall: Add support for clock_gettime64/clock_settime64
linux-user: Support futex_time64
linux-user/riscv: Update the syscall_nr's to the 5.5 kernel
Laurent Vivier (26):
linux-user: fix socket() strace
linux-user: introduce parameters to generate syscall_nr.h linux-user, alpha: add syscall table generation support linux-user, hppa: add syscall table generation support linux-user, m68k: add syscall table generation support linux-user, xtensa: add syscall table generation support linux-user, sh4: add syscall table generation support linux-user, microblaze: add syscall table generation support linux-user, arm: add syscall table generation support linux-user, ppc: add syscall table generation support linux-user, s390x: remove syscall definitions for !TARGET_S390X linux-user, s390x: add syscall table generation support linux-user, sparc, sparc64: add syscall table generation support linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl linux-user, i386: add syscall table generation support linux-user, x86_64: add syscall table generation support linux-user, mips: add syscall table generation support linux-user, mips64: add syscall table generation support linux-user, scripts: add a script to update syscall.tbl
linux-user: update syscall.tbl from linux 0bf999f9c5e7 linux-user,mips: move content of mips_syscall_args linux-user,mips: update syscall-args-o32.c.inc
scripts: add a script to generate syscall_nr.h linux-user, aarch64: sync syscall numbers with kernel v5.5 linux-user, nios2: sync syscall numbers with kernel v5.5 linux-user, openrisc: sync syscall numbers with kernel v5.5
Lirong Yuan (2):
linux-user: Add AT_EXECFN auxval
linux-user: Update TASK_UNMAPPED_BASE for aarch64
Richard Henderson (5):
target/i386: Renumber EXCP_SYSCALL linux-user/i386: Split out gen_signal linux-user/i386: Emulate x86_64 vsyscalls
linux-user: Add x86_64 vsyscall page to /proc/self/maps
linux-user: Flush out implementation of gettimeofday
Tobias Koch (1):
linux-user: do prlimit selectively
MAINTAINERS | 3 + Makefile.target | 3 +- configure | 35 ++ linux-user/Makefile.objs | 19 +- linux-user/aarch64/syscall_nr.h | 34 +- linux-user/alpha/Makefile.objs | 5 + linux-user/alpha/syscall.tbl | 479 ++++++++++++++++ linux-user/alpha/syscall_nr.h | 492 ----------------- linux-user/alpha/syscallhdr.sh | 32 ++ linux-user/arm/Makefile.objs | 8 + linux-user/arm/syscall.tbl | 453 +++++++++++++++ linux-user/arm/syscall_nr.h | 447 --------------- linux-user/arm/syscallhdr.sh | 31 ++ linux-user/elfload.c | 3 +- linux-user/hppa/Makefile.objs | 5 + linux-user/hppa/syscall.tbl | 437 +++++++++++++++ linux-user/hppa/syscall_nr.h | 358 ------------ linux-user/hppa/syscallhdr.sh | 32 ++ linux-user/i386/Makefile.objs | 5 + linux-user/i386/cpu_loop.c | 201 +++++-- linux-user/i386/syscall_32.tbl | 444 +++++++++++++++ linux-user/i386/syscall_nr.h | 387 ------------- linux-user/i386/syscallhdr.sh | 28 + linux-user/i386/target_cpu.h | 4 +- linux-user/m68k/Makefile.objs | 5 + linux-user/m68k/syscall.tbl | 439 +++++++++++++++ linux-user/m68k/syscall_nr.h | 434 --------------- linux-user/m68k/syscallhdr.sh | 32 ++ linux-user/microblaze/Makefile.objs | 5 + linux-user/microblaze/syscall.tbl | 445 +++++++++++++++ linux-user/microblaze/syscall_nr.h | 442 --------------- linux-user/microblaze/syscallhdr.sh | 32 ++ linux-user/mips/Makefile.objs | 5 + linux-user/mips/cpu_loop.c | 440 +-------------- linux-user/mips/syscall-args-o32.c.inc | 436 +++++++++++++++ linux-user/mips/syscall_nr.h | 425 --------------- linux-user/mips/syscall_o32.tbl | 427 +++++++++++++++ linux-user/mips/syscallhdr.sh | 36 ++ linux-user/mips64/Makefile.objs | 12 + linux-user/mips64/syscall_n32.tbl | 378 +++++++++++++ linux-user/mips64/syscall_n64.tbl | 354 ++++++++++++ linux-user/mips64/syscall_nr.h | 725 ------------------------- linux-user/mips64/syscallhdr.sh | 33 ++ linux-user/mmap.c | 4 + linux-user/nios2/syscall_nr.h | 650 +++++++++++----------- linux-user/openrisc/syscall_nr.h | 309 +++-------- linux-user/ppc/Makefile.objs | 6 + linux-user/ppc/signal.c | 2 +- linux-user/ppc/syscall.tbl | 521 ++++++++++++++++++ linux-user/ppc/syscall_nr.h | 402 -------------- linux-user/ppc/syscallhdr.sh | 34 ++ linux-user/riscv/syscall32_nr.h | 295 ++++++++++ linux-user/riscv/syscall64_nr.h | 301 ++++++++++ linux-user/riscv/syscall_nr.h | 294 +--------- linux-user/s390x/Makefile.objs | 5 + linux-user/s390x/syscall.tbl | 442 +++++++++++++++ linux-user/s390x/syscall_nr.h | 398 -------------- linux-user/s390x/syscallhdr.sh | 32 ++ linux-user/sh4/Makefile.objs | 5 + linux-user/sh4/syscall.tbl | 442 +++++++++++++++ linux-user/sh4/syscall_nr.h | 441 --------------- linux-user/sh4/syscallhdr.sh | 32 ++ linux-user/sparc/Makefile.objs | 5 + linux-user/sparc/syscall.tbl | 485 +++++++++++++++++ linux-user/sparc/syscall_nr.h | 363 ------------- linux-user/sparc/syscallhdr.sh | 32 ++ linux-user/sparc64/Makefile.objs | 5 + linux-user/sparc64/syscall.tbl | 485 +++++++++++++++++ linux-user/sparc64/syscall_nr.h | 366 ------------- linux-user/sparc64/syscallhdr.sh | 32 ++ linux-user/strace.c | 10 +- linux-user/syscall.c | 314 ++++++++++- linux-user/x86_64/Makefile.objs | 5 + linux-user/x86_64/syscall_64.tbl | 404 ++++++++++++++ linux-user/x86_64/syscall_nr.h | 356 ------------ linux-user/x86_64/syscallhdr.sh | 28 + linux-user/xtensa/Makefile.objs | 5 + linux-user/xtensa/syscall.tbl | 410 ++++++++++++++ linux-user/xtensa/syscall_nr.h | 469 ---------------- linux-user/xtensa/syscallhdr.sh | 32 ++ scripts/gensyscalls.sh | 102 ++++ scripts/update-mips-syscall-args.sh | 57 ++ scripts/update-syscalltbl.sh | 49 ++ target/i386/cpu.h | 12 +- target/i386/translate.c | 14 +- 85 files changed, 9791 insertions(+), 7914 deletions(-) create mode 100644 linux-user/alpha/Makefile.objs create mode 100644 linux-user/alpha/syscall.tbl delete mode 100644 linux-user/alpha/syscall_nr.h create mode 100644 linux-user/alpha/syscallhdr.sh create mode 100644 linux-user/arm/Makefile.objs create mode 100644 linux-user/arm/syscall.tbl delete mode 100644 linux-user/arm/syscall_nr.h create mode 100644 linux-user/arm/syscallhdr.sh create mode 100644 linux-user/hppa/Makefile.objs create mode 100644 linux-user/hppa/syscall.tbl delete mode 100644 linux-user/hppa/syscall_nr.h create mode 100644 linux-user/hppa/syscallhdr.sh create mode 100644 linux-user/i386/Makefile.objs create mode 100644 linux-user/i386/syscall_32.tbl delete mode 100644 linux-user/i386/syscall_nr.h create mode 100644 linux-user/i386/syscallhdr.sh create mode 100644 linux-user/m68k/Makefile.objs create mode 100644 linux-user/m68k/syscall.tbl delete mode 100644 linux-user/m68k/syscall_nr.h create mode 100644 linux-user/m68k/syscallhdr.sh create mode 100644 linux-user/microblaze/Makefile.objs create mode 100644 linux-user/microblaze/syscall.tbl delete mode 100644 linux-user/microblaze/syscall_nr.h create mode 100644 linux-user/microblaze/syscallhdr.sh create mode 100644 linux-user/mips/Makefile.objs create mode 100644 linux-user/mips/syscall-args-o32.c.inc delete mode 100644 linux-user/mips/syscall_nr.h create mode 100644 linux-user/mips/syscall_o32.tbl create mode 100644 linux-user/mips/syscallhdr.sh create mode 100644 linux-user/mips64/Makefile.objs create mode 100644 linux-user/mips64/syscall_n32.tbl create mode 100644 linux-user/mips64/syscall_n64.tbl delete mode 100644 linux-user/mips64/syscall_nr.h create mode 100644 linux-user/mips64/syscallhdr.sh create mode 100644 linux-user/ppc/Makefile.objs create mode 100644 linux-user/ppc/syscall.tbl delete mode 100644 linux-user/ppc/syscall_nr.h create mode 100644 linux-user/ppc/syscallhdr.sh create mode 100644 linux-user/riscv/syscall32_nr.h create mode 100644 linux-user/riscv/syscall64_nr.h create mode 100644 linux-user/s390x/Makefile.objs create mode 100644 linux-user/s390x/syscall.tbl delete mode 100644 linux-user/s390x/syscall_nr.h create mode 100755 linux-user/s390x/syscallhdr.sh create mode 100644 linux-user/sh4/Makefile.objs create mode 100644 linux-user/sh4/syscall.tbl delete mode 100644 linux-user/sh4/syscall_nr.h create mode 100644 linux-user/sh4/syscallhdr.sh create mode 100644 linux-user/sparc/Makefile.objs create mode 100644 linux-user/sparc/syscall.tbl delete mode 100644 linux-user/sparc/syscall_nr.h create mode 100644 linux-user/sparc/syscallhdr.sh create mode 100644 linux-user/sparc64/Makefile.objs create mode 100644 linux-user/sparc64/syscall.tbl delete mode 100644 linux-user/sparc64/syscall_nr.h create mode 100644 linux-user/sparc64/syscallhdr.sh create mode 100644 linux-user/x86_64/Makefile.objs create mode 100644 linux-user/x86_64/syscall_64.tbl delete mode 100644 linux-user/x86_64/syscall_nr.h create mode 100644 linux-user/x86_64/syscallhdr.sh create mode 100644 linux-user/xtensa/Makefile.objs create mode 100644 linux-user/xtensa/syscall.tbl delete mode 100644 linux-user/xtensa/syscall_nr.h create mode 100644 linux-user/xtensa/syscallhdr.sh create mode 100755 scripts/gensyscalls.sh create mode 100755 scripts/update-mips-syscall-args.sh create mode 100755 scripts/update-syscalltbl.sh
Signature · 1 line
2.24.1
[PULL 16/38] linux-user, hppa: add syscall table generation support
Copy syscall.tbl and syscallhdr.sh from linux/arch/parisc/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/hppa/Makefile.objs | 5 + linux-user/hppa/syscall.tbl | 435 ++++++++++++++++++++++++++++++++++ linux-user/hppa/syscall_nr.h | 358 ---------------------------- linux-user/hppa/syscallhdr.sh | 32 +++ 6 files changed, 475 insertions(+), 359 deletions(-) create mode 100644 linux-user/hppa/Makefile.objs create mode 100644 linux-user/hppa/syscall.tbl delete mode 100644 linux-user/hppa/syscall_nr.h create mode 100644 linux-user/hppa/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha ; do +for arch in alpha hppa ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7814,6 +7814,7 @@ case "$target_name" in ;; hppa) mttcg="yes" + TARGET_SYSTBL_ABI=common,32 ;; lm32) ;;
linux-user/Makefile.objs +1 -0
@@ -10,3 +10,4 @@ obj-$(TARGET_ARM) += arm/semihost.o obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ +obj-$(TARGET_HPPA) += hppa/
linux-user/hppa/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/hppa/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/hppa/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/hppa/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/hppa/syscall.tbl new file +435 -0
435 lines not on this page · raw message
linux-user/hppa/syscall_nr.h deleted +0 -358
358 lines not on this page · raw message
linux-user/hppa/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_HPPA_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry compat ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 21/38] linux-user, arm: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/arm/tools/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Update syscall.c to manage TARGET_NR_arm_sync_file_range as it has replaced TARGET_NR_sync_file_range2
Move existing stuff from linux-user/Makefile.objs to linux-user/arm/Makefile.objs
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 3 +- linux-user/arm/Makefile.objs | 8 + linux-user/arm/syscall.tbl | 451 +++++++++++++++++++++++++++++++++++ linux-user/arm/syscall_nr.h | 447 ---------------------------------- linux-user/arm/syscallhdr.sh | 31 +++ linux-user/syscall.c | 6 + 7 files changed, 499 insertions(+), 450 deletions(-) create mode 100644 linux-user/arm/Makefile.objs create mode 100644 linux-user/arm/syscall.tbl delete mode 100644 linux-user/arm/syscall_nr.h create mode 100644 linux-user/arm/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa sh4 microblaze ; do +for arch in alpha hppa m68k xtensa sh4 microblaze arm ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7799,6 +7799,7 @@ case "$target_name" in ;; arm|armeb) TARGET_ARCH=arm + TARGET_SYSTBL_ABI=common,oabi bflt="yes" mttcg="yes" gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml"
linux-user/Makefile.objs +1 -2
@@ -5,11 +5,10 @@ obj-y = main.o syscall.o strace.o mmap.o signal.o \ obj-$(TARGET_HAS_BFLT) += flatload.o obj-$(TARGET_I386) += vm86.o -obj-$(TARGET_ARM) += arm/nwfpe/ -obj-$(TARGET_ARM) += arm/semihost.o obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ +obj-$(TARGET_ARM) += arm/ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/
linux-user/arm/Makefile.objs new file +8 -0
@@ -0,0 +1,8 @@ +obj-$(TARGET_ARM) += nwfpe/ +obj-$(TARGET_ARM) += semihost.o + +generated-files-y += linux-user/arm/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/arm/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/arm/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/arm/syscall.tbl new file +451 -0
451 lines not on this page · raw message
linux-user/arm/syscall_nr.h deleted +0 -447
447 lines not on this page · raw message
linux-user/arm/syscallhdr.sh new file +31 -0
@@ -0,0 +1,31 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_ARM_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +if echo $out | grep -q uapi; then + fileguard="_UAPI$fileguard" +fi +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + echo "#ifndef ${fileguard}" + echo "#define ${fileguard} 1" + echo "" + + while read nr abi name entry ; do + if [ -z "$offset" ]; then + echo "#define TARGET_NR_${prefix}${name} $nr" + else + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" + fi + done + + echo "" + echo "#endif /* ${fileguard} */" +) > "$out"
linux-user/syscall.c +6 -0
@@ -11981,8 +11981,14 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,#endif return ret;#endif +#if defined(TARGET_NR_sync_file_range2) || \ + defined(TARGET_NR_arm_sync_file_range)#if defined(TARGET_NR_sync_file_range2)case TARGET_NR_sync_file_range2: +#endif +#if defined(TARGET_NR_arm_sync_file_range) +case TARGET_NR_arm_sync_file_range: +#endif /* This is like sync_file_range but the arguments are reordered */ #if TARGET_ABI_BITS ==32 ret = get_errno(sync_file_range(arg1, target_offset64(arg3, arg4),
Signature · 1 line
2.24.1
[PULL 36/38] linux-user, aarch64: sync syscall numbers with kernel v5.5
In reply to Laurent VivierUse helper script scripts/gensyscalls.sh to generate the file.
This change TARGET_NR_fstatat64 by TARGET_NR_newfstatat that is correct because definitions from linux are:
arch/arm64/include/uapi/asm/unistd.h
#define __ARCH_WANT_NEW_STAT
include/uapi/asm-generic/unistd.h
#if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) #define __NR3264_fstatat 79 __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat) #define __NR3264_fstat 80 __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat) #endif ... #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) ... #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) #define __NR_newfstatat __NR3264_fstatat #define __NR_fstat __NR3264_fstat #endif ...
Add syscalls 286 (preadv2) to 435 (clone3).
Message-Id: <[email protected]>
--- linux-user/aarch64/syscall_nr.h | 34 ++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-)
linux-user/aarch64/syscall_nr.h +29 -5
@@ -1,7 +1,8 @@/* * This file contains the system call numbers. +* Do not modify. +* This file is generated by scripts/gensyscalls.sh */ -#ifndef LINUX_USER_AARCH64_SYSCALL_NR_H #define LINUX_USER_AARCH64_SYSCALL_NR_H
@@ -84,7 +85,7 @@#define TARGET_NR_splice 76#define TARGET_NR_tee 77#define TARGET_NR_readlinkat 78 -#define TARGET_NR_fstatat64 79 +#define TARGET_NR_newfstatat 79#define TARGET_NR_fstat 80#define TARGET_NR_sync 81#define TARGET_NR_fsync 82
@@ -254,8 +255,8 @@#define TARGET_NR_prlimit64 261#define TARGET_NR_fanotify_init 262#define TARGET_NR_fanotify_mark 263 -#define TARGET_NR_name_to_handle_at 264 -#define TARGET_NR_open_by_handle_at 265 +#define TARGET_NR_name_to_handle_at 264 +#define TARGET_NR_open_by_handle_at 265#define TARGET_NR_clock_adjtime 266#define TARGET_NR_syncfs 267#define TARGET_NR_setns 268
@@ -276,5 +277,28 @@#define TARGET_NR_membarrier 283#define TARGET_NR_mlock2 284#define TARGET_NR_copy_file_range 285 +#define TARGET_NR_preadv2 286 +#define TARGET_NR_pwritev2 287 +#define TARGET_NR_pkey_mprotect 288 +#define TARGET_NR_pkey_alloc 289 +#define TARGET_NR_pkey_free 290 +#define TARGET_NR_statx 291 +#define TARGET_NR_io_pgetevents 292 +#define TARGET_NR_rseq 293 +#define TARGET_NR_kexec_file_load 294 +#define TARGET_NR_pidfd_send_signal 424 +#define TARGET_NR_io_uring_setup 425 +#define TARGET_NR_io_uring_enter 426 +#define TARGET_NR_io_uring_register 427 +#define TARGET_NR_open_tree 428 +#define TARGET_NR_move_mount 429 +#define TARGET_NR_fsopen 430 +#define TARGET_NR_fsconfig 431 +#define TARGET_NR_fsmount 432 +#define TARGET_NR_fspick 433 +#define TARGET_NR_pidfd_open 434 +#define TARGET_NR_clone3 435 +#define TARGET_NR_syscalls 436 + +#endif /* LINUX_USER_AARCH64_SYSCALL_NR_H */ -#endif
Signature · 1 line
2.24.1
[PULL 14/38] linux-user: introduce parameters to generate syscall_nr.h
In reply to Laurent VivierThis will be used when we'll import syscall.tbl from the kernel
Add a script to remove all the dependencies to syscall_nr.h that point to source directory and not to the build directory. The list of arch will be update while the generated files are added.
Message-Id: <[email protected]>
--- Makefile.target | 3 ++- configure | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-)
Makefile.target +2 -1
@@ -128,7 +128,8 @@ ifdef CONFIG_LINUX_USER QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) \ -I$(SRC_PATH)/linux-user/host/$(ARCH) \ - -I$(SRC_PATH)/linux-user + -I$(SRC_PATH)/linux-user \ + -Ilinux-user/$(TARGET_ABI_DIR) obj-y += linux-user/ obj-y += gdbstub.o thunk.o
configure +14 -0
@@ -1887,6 +1887,17 @@ fi # Remove old dependency files to make sure that they get properly regenerated rm -f */config-devices.mak.d +# Remove syscall_nr.h to be sure they will be regenerated in the build +# directory, not in the source directory +for arch in ; do + # remove the file if it has been generated in the source directory + rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" + # remove the dependency files + find . -name "*.d" \ + -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \ + -exec rm {} \; +done + if test -z "$python" then error_exit "Python not found. Use --python=/path/to/python"
@@ -7931,6 +7942,9 @@ echo "TARGET_ABI_DIR=$TARGET_ABI_DIR" >> $config_target_mak if [ "$HOST_VARIANT_DIR" != "" ]; then echo "HOST_VARIANT_DIR=$HOST_VARIANT_DIR" >> $config_target_mak fi +if [ "$TARGET_SYSTBL_ABI" != "" ]; then + echo "TARGET_SYSTBL_ABI=$TARGET_SYSTBL_ABI" >> $config_target_mak +fi if supported_xen_target $target; then echo "CONFIG_XEN=y" >> $config_target_mak
Signature · 1 line
2.24.1
[PULL 38/38] linux-user, openrisc: sync syscall numbers with kernel v5.5
In reply to Laurent VivierUse helper script scripts/gensyscalls.sh to generate the file.
Add TARGET_NR_or1k_atomic
Remove useless comments and blank lines.
Define diretly the __NR_XXX64 syscalls rather than using the intermediate __NR3264 definition.
Remove wrong cut'n'paste (like "#ifdef __ARCH_WANT_SYNC_FILE_RANGE2")
Add new syscalls from 286 (preadv) to 434 (pidfd_open).
Remove obsolete syscalls 1204 (open) to 1079 (fork).
Message-Id: <[email protected]>
--- linux-user/openrisc/syscall_nr.h | 309 +++++++------------------------ 1 file changed, 62 insertions(+), 247 deletions(-)
linux-user/openrisc/syscall_nr.h +62 -247
@@ -1,13 +1,17 @@ +/* +* This file contains the system call numbers. +* Do not modify. +* This file is generated by scripts/gensyscalls.sh +*/ #ifndef LINUX_USER_OPENRISC_SYSCALL_NR_H #define LINUX_USER_OPENRISC_SYSCALL_NR_H #define TARGET_NR_io_setup 0 +#define TARGET_NR_or1k_atomic TARGET_NR_arch_specific_syscall#define TARGET_NR_io_destroy 1#define TARGET_NR_io_submit 2#define TARGET_NR_io_cancel 3#define TARGET_NR_io_getevents 4 - -/* fs/xattr.c */ #define TARGET_NR_setxattr 5#define TARGET_NR_lsetxattr 6#define TARGET_NR_fsetxattr 7
@@ -20,63 +24,36 @@#define TARGET_NR_removexattr 14#define TARGET_NR_lremovexattr 15#define TARGET_NR_fremovexattr 16 - -/* fs/dcache.c */ #define TARGET_NR_getcwd 17 - -/* fs/cookies.c */ #define TARGET_NR_lookup_dcookie 18 - -/* fs/eventfd.c */ #define TARGET_NR_eventfd2 19 - -/* fs/eventpoll.c */ #define TARGET_NR_epoll_create1 20#define TARGET_NR_epoll_ctl 21#define TARGET_NR_epoll_pwait 22 - -/* fs/fcntl.c */ #define TARGET_NR_dup 23#define TARGET_NR_dup3 24 -#define TARGET_NR_3264_fcntl 25 - -/* fs/inotify_user.c */ +#define TARGET_NR_fcntl64 25#define TARGET_NR_inotify_init1 26#define TARGET_NR_inotify_add_watch 27#define TARGET_NR_inotify_rm_watch 28 - -/* fs/ioctl.c */ #define TARGET_NR_ioctl 29 - -/* fs/ioprio.c */ #define TARGET_NR_ioprio_set 30#define TARGET_NR_ioprio_get 31 - -/* fs/locks.c */ #define TARGET_NR_flock 32 - -/* fs/namei.c */ #define TARGET_NR_mknodat 33#define TARGET_NR_mkdirat 34#define TARGET_NR_unlinkat 35#define TARGET_NR_symlinkat 36#define TARGET_NR_linkat 37#define TARGET_NR_renameat 38 - -/* fs/namespace.c */ #define TARGET_NR_umount2 39#define TARGET_NR_mount 40#define TARGET_NR_pivot_root 41 - -/* fs/nfsctl.c */ #define TARGET_NR_nfsservctl 42 - -/* fs/open.c */ -#define TARGET_NR_3264_statfs 43 -#define TARGET_NR_3264_fstatfs 44 -#define TARGET_NR_3264_truncate 45 -#define TARGET_NR_3264_ftruncate 46 - +#define TARGET_NR_statfs64 43 +#define TARGET_NR_fstatfs64 44 +#define TARGET_NR_truncate64 45 +#define TARGET_NR_ftruncate64 46#define TARGET_NR_fallocate 47#define TARGET_NR_faccessat 48#define TARGET_NR_chdir 49
@@ -89,18 +66,10 @@#define TARGET_NR_openat 56#define TARGET_NR_close 57#define TARGET_NR_vhangup 58 - -/* fs/pipe.c */ #define TARGET_NR_pipe2 59 - -/* fs/quota.c */ #define TARGET_NR_quotactl 60 - -/* fs/readdir.c */ #define TARGET_NR_getdents64 61 - -/* fs/read_write.c */ -#define TARGET_NR_3264_lseek 62 +#define TARGET_NR_llseek 62#define TARGET_NR_read 63#define TARGET_NR_write 64#define TARGET_NR_readv 65
@@ -109,85 +78,42 @@#define TARGET_NR_pwrite64 68#define TARGET_NR_preadv 69#define TARGET_NR_pwritev 70 - -/* fs/sendfile.c */ -#define TARGET_NR_3264_sendfile 71 - -/* fs/select.c */ +#define TARGET_NR_sendfile64 71#define TARGET_NR_pselect6 72#define TARGET_NR_ppoll 73 - -/* fs/signalfd.c */ #define TARGET_NR_signalfd4 74 - -/* fs/splice.c */ #define TARGET_NR_vmsplice 75#define TARGET_NR_splice 76#define TARGET_NR_tee 77 - -/* fs/stat.c */ #define TARGET_NR_readlinkat 78 -#define TARGET_NR_3264_fstatat 79 -#define TARGET_NR_3264_fstat 80 - -/* fs/sync.c */ +#define TARGET_NR_fstatat64 79 +#define TARGET_NR_fstat64 80#define TARGET_NR_sync 81#define TARGET_NR_fsync 82#define TARGET_NR_fdatasync 83 - -#ifdef __ARCH_WANT_SYNC_FILE_RANGE2 -#define TARGET_NR_sync_file_range2 84 -#else #define TARGET_NR_sync_file_range 84 -#endif - -/* fs/timerfd.c */ #define TARGET_NR_timerfd_create 85#define TARGET_NR_timerfd_settime 86#define TARGET_NR_timerfd_gettime 87 - -/* fs/utimes.c */ #define TARGET_NR_utimensat 88 - -/* kernel/acct.c */ #define TARGET_NR_acct 89 - -/* kernel/capability.c */ #define TARGET_NR_capget 90#define TARGET_NR_capset 91 - -/* kernel/exec_domain.c */ #define TARGET_NR_personality 92 - -/* kernel/exit.c */ #define TARGET_NR_exit 93#define TARGET_NR_exit_group 94#define TARGET_NR_waitid 95 - -/* kernel/fork.c */ #define TARGET_NR_set_tid_address 96#define TARGET_NR_unshare 97 - -/* kernel/futex.c */ #define TARGET_NR_futex 98#define TARGET_NR_set_robust_list 99#define TARGET_NR_get_robust_list 100 - -/* kernel/hrtimer.c */ #define TARGET_NR_nanosleep 101 - -/* kernel/itimer.c */ #define TARGET_NR_getitimer 102#define TARGET_NR_setitimer 103 - -/* kernel/kexec.c */ #define TARGET_NR_kexec_load 104 - -/* kernel/module.c */ #define TARGET_NR_init_module 105#define TARGET_NR_delete_module 106 - -/* kernel/posix-timers.c */ #define TARGET_NR_timer_create 107#define TARGET_NR_timer_gettime 108#define TARGET_NR_timer_getoverrun 109
@@ -197,14 +123,8 @@#define TARGET_NR_clock_gettime 113#define TARGET_NR_clock_getres 114#define TARGET_NR_clock_nanosleep 115 - -/* kernel/printk.c */ #define TARGET_NR_syslog 116 - -/* kernel/ptrace.c */ #define TARGET_NR_ptrace 117 - -/* kernel/sched.c */ #define TARGET_NR_sched_setparam 118#define TARGET_NR_sched_setscheduler 119#define TARGET_NR_sched_getscheduler 120
@@ -215,8 +135,6 @@#define TARGET_NR_sched_get_priority_max 125#define TARGET_NR_sched_get_priority_min 126#define TARGET_NR_sched_rr_get_interval 127 - -/* kernel/signal.c */ #define TARGET_NR_restart_syscall 128#define TARGET_NR_kill 129#define TARGET_NR_tkill 130
@@ -229,8 +147,6 @@#define TARGET_NR_rt_sigtimedwait 137#define TARGET_NR_rt_sigqueueinfo 138#define TARGET_NR_rt_sigreturn 139 - -/* kernel/sys.c */ #define TARGET_NR_setpriority 140#define TARGET_NR_getpriority 141#define TARGET_NR_reboot 142
@@ -260,13 +176,9 @@#define TARGET_NR_umask 166#define TARGET_NR_prctl 167#define TARGET_NR_getcpu 168 - -/* kernel/time.c */ #define TARGET_NR_gettimeofday 169#define TARGET_NR_settimeofday 170#define TARGET_NR_adjtimex 171 - -/* kernel/timer.c */ #define TARGET_NR_getpid 172#define TARGET_NR_getppid 173#define TARGET_NR_getuid 174
@@ -275,34 +187,24 @@#define TARGET_NR_getegid 177#define TARGET_NR_gettid 178#define TARGET_NR_sysinfo 179 - -/* ipc/mqueue.c */ #define TARGET_NR_mq_open 180#define TARGET_NR_mq_unlink 181#define TARGET_NR_mq_timedsend 182#define TARGET_NR_mq_timedreceive 183#define TARGET_NR_mq_notify 184#define TARGET_NR_mq_getsetattr 185 - -/* ipc/msg.c */ #define TARGET_NR_msgget 186#define TARGET_NR_msgctl 187#define TARGET_NR_msgrcv 188#define TARGET_NR_msgsnd 189 - -/* ipc/sem.c */ #define TARGET_NR_semget 190#define TARGET_NR_semctl 191#define TARGET_NR_semtimedop 192#define TARGET_NR_semop 193 - -/* ipc/shm.c */ #define TARGET_NR_shmget 194#define TARGET_NR_shmctl 195#define TARGET_NR_shmat 196#define TARGET_NR_shmdt 197 - -/* net/socket.c */ #define TARGET_NR_socket 198#define TARGET_NR_socketpair 199#define TARGET_NR_bind 200
@@ -318,30 +220,17 @@#define TARGET_NR_shutdown 210#define TARGET_NR_sendmsg 211#define TARGET_NR_recvmsg 212 - -/* mm/filemap.c */ #define TARGET_NR_readahead 213 - -/* mm/nommu.c, also with MMU */ #define TARGET_NR_brk 214#define TARGET_NR_munmap 215#define TARGET_NR_mremap 216 - -/* security/keys/keyctl.c */ #define TARGET_NR_add_key 217#define TARGET_NR_request_key 218#define TARGET_NR_keyctl 219 - -/* arch/example/kernel/sys_example.c */ #define TARGET_NR_clone 220#define TARGET_NR_execve 221 - -#define TARGET_NR_3264_mmap 222 -/* mm/fadvise.c */ -#define TARGET_NR_3264_fadvise64 223 - -/* mm/, CONFIG_MMU only */ -#ifndef __ARCH_NOMMU +#define TARGET_NR_mmap2 222 +#define TARGET_NR_fadvise64_64 223#define TARGET_NR_swapon 224#define TARGET_NR_swapoff 225#define TARGET_NR_mprotect 226
@@ -358,25 +247,17 @@#define TARGET_NR_set_mempolicy 237#define TARGET_NR_migrate_pages 238#define TARGET_NR_move_pages 239 -#endif -#define TARGET_NR_rt_tgsigqueueinfo 240#define TARGET_NR_perf_event_open 241#define TARGET_NR_accept4 242#define TARGET_NR_recvmmsg 243 - -/* -* Architectures may provide up to 16 syscalls of their own -* starting with this value. -*/ #define TARGET_NR_arch_specific_syscall 244 -#define TARGET_NR_wait4 260#define TARGET_NR_prlimit64 261#define TARGET_NR_fanotify_init 262#define TARGET_NR_fanotify_mark 263 -#define TARGET_NR_name_to_handle_at 264 -#define TARGET_NR_open_by_handle_at 265 +#define TARGET_NR_name_to_handle_at 264 +#define TARGET_NR_open_by_handle_at 265#define TARGET_NR_clock_adjtime 266#define TARGET_NR_syncfs 267#define TARGET_NR_setns 268
@@ -397,113 +278,47 @@#define TARGET_NR_membarrier 283#define TARGET_NR_mlock2 284#define TARGET_NR_copy_file_range 285 +#define TARGET_NR_preadv2 286 +#define TARGET_NR_pwritev2 287 +#define TARGET_NR_pkey_mprotect 288 +#define TARGET_NR_pkey_alloc 289 +#define TARGET_NR_pkey_free 290 +#define TARGET_NR_statx 291 +#define TARGET_NR_io_pgetevents 292 +#define TARGET_NR_rseq 293 +#define TARGET_NR_kexec_file_load 294 +#define TARGET_NR_clock_gettime64 403 +#define TARGET_NR_clock_settime64 404 +#define TARGET_NR_clock_adjtime64 405 +#define TARGET_NR_clock_getres_time64 406 +#define TARGET_NR_clock_nanosleep_time64 407 +#define TARGET_NR_timer_gettime64 408 +#define TARGET_NR_timer_settime64 409 +#define TARGET_NR_timerfd_gettime64 410 +#define TARGET_NR_timerfd_settime64 411 +#define TARGET_NR_utimensat_time64 412 +#define TARGET_NR_pselect6_time64 413 +#define TARGET_NR_ppoll_time64 414 +#define TARGET_NR_io_pgetevents_time64 416 +#define TARGET_NR_recvmmsg_time64 417 +#define TARGET_NR_mq_timedsend_time64 418 +#define TARGET_NR_mq_timedreceive_time64 419 +#define TARGET_NR_semtimedop_time64 420 +#define TARGET_NR_rt_sigtimedwait_time64 421 +#define TARGET_NR_futex_time64 422 +#define TARGET_NR_sched_rr_get_interval_time64 423 +#define TARGET_NR_pidfd_send_signal 424 +#define TARGET_NR_io_uring_setup 425 +#define TARGET_NR_io_uring_enter 426 +#define TARGET_NR_io_uring_register 427 +#define TARGET_NR_open_tree 428 +#define TARGET_NR_move_mount 429 +#define TARGET_NR_fsopen 430 +#define TARGET_NR_fsconfig 431 +#define TARGET_NR_fsmount 432 +#define TARGET_NR_fspick 433 +#define TARGET_NR_pidfd_open 434 +#define TARGET_NR_syscalls 436 + +#endif /* LINUX_USER_OPENRISC_SYSCALL_NR_H */ -/* -* All syscalls below here should go away really, -* these are provided for both review and as a porting -* help for the C library version. -* -* Last chance: are any of these important enough to -* enable by default? -*/ -#define TARGET_NR_open 1024 -#define TARGET_NR_link 1025 -#define TARGET_NR_unlink 1026 -#define TARGET_NR_mknod 1027 -#define TARGET_NR_chmod 1028 -#define TARGET_NR_chown 1029 -#define TARGET_NR_mkdir 1030 -#define TARGET_NR_rmdir 1031 -#define TARGET_NR_lchown 1032 -#define TARGET_NR_access 1033 -#define TARGET_NR_rename 1034 -#define TARGET_NR_readlink 1035 -#define TARGET_NR_symlink 1036 -#define TARGET_NR_utimes 1037 -#define TARGET_NR_3264_stat 1038 -#define TARGET_NR_3264_lstat 1039 - -#define TARGET_NR_pipe 1040 -#define TARGET_NR_dup2 1041 -#define TARGET_NR_epoll_create 1042 -#define TARGET_NR_inotify_init 1043 -#define TARGET_NR_eventfd 1044 -#define TARGET_NR_signalfd 1045 - -#define TARGET_NR_sendfile 1046 -#define TARGET_NR_ftruncate 1047 -#define TARGET_NR_truncate 1048 -#define TARGET_NR_stat 1049 -#define TARGET_NR_lstat 1050 -#define TARGET_NR_fstat 1051 -#define TARGET_NR_fcntl 1052 -#define TARGET_NR_fadvise64 1053 -#define __ARCH_WANT_SYS_FADVISE64 -#define TARGET_NR_newfstatat 1054 -#define __ARCH_WANT_SYS_NEWFSTATAT -#define TARGET_NR_fstatfs 1055 -#define TARGET_NR_statfs 1056 -#define TARGET_NR_lseek 1057 -#define TARGET_NR_mmap 1058 - -#define TARGET_NR_alarm 1059 -#define __ARCH_WANT_SYS_ALARM -#define TARGET_NR_getpgrp 1060 -#define __ARCH_WANT_SYS_GETPGRP -#define TARGET_NR_pause 1061 -#define __ARCH_WANT_SYS_PAUSE -#define TARGET_NR_time 1062 -#define __ARCH_WANT_SYS_TIME -#define __ARCH_WANT_COMPAT_SYS_TIME -#define TARGET_NR_utime 1063 -#define __ARCH_WANT_SYS_UTIME - -#define TARGET_NR_creat 1064 -#define TARGET_NR_getdents 1065 -#define __ARCH_WANT_SYS_GETDENTS -#define TARGET_NR_futimesat 1066 -#define TARGET_NR_poll 1068 -#define TARGET_NR_epoll_wait 1069 -#define TARGET_NR_ustat 1070 -#define TARGET_NR_vfork 1071 -#define TARGET_NR_oldwait4 1072 -#define TARGET_NR_recv 1073 -#define TARGET_NR_send 1074 -#define TARGET_NR_bdflush 1075 -#define TARGET_NR_umount 1076 -#define __ARCH_WANT_SYS_OLDUMOUNT -#define TARGET_NR_uselib 1077 -#define TARGET_NR__sysctl 1078 - -#define TARGET_NR_fork 1079 - - -/* -* 32 bit systems traditionally used different -* syscalls for off_t and loff_t arguments, while -* 64 bit systems only need the off_t version. -* For new 32 bit platforms, there is no need to -* implement the old 32 bit off_t syscalls, so -* they take different names. -* Here we map the numbers so that both versions -* use the same syscall table layout. -*/ - -#define TARGET_NR_fcntl64 TARGET_NR_3264_fcntl -#define TARGET_NR_statfs64 TARGET_NR_3264_statfs -#define TARGET_NR_fstatfs64 TARGET_NR_3264_fstatfs -#define TARGET_NR_truncate64 TARGET_NR_3264_truncate -#define TARGET_NR_ftruncate64 TARGET_NR_3264_ftruncate -#define TARGET_NR_llseek TARGET_NR_3264_lseek -#define TARGET_NR_sendfile64 TARGET_NR_3264_sendfile -#define TARGET_NR_fstatat64 TARGET_NR_3264_fstatat -#define TARGET_NR_fstat64 TARGET_NR_3264_fstat -#define TARGET_NR_mmap2 TARGET_NR_3264_mmap -#define TARGET_NR_fadvise64_64 TARGET_NR_3264_fadvise64 - -#ifdef TARGET_NR_3264_stat -#define TARGET_NR_stat64 TARGET_NR_3264_stat -#define TARGET_NR_lstat64 TARGET_NR_3264_lstat -#endif - -#endif
Signature · 1 line
2.24.1
[PULL 25/38] linux-user, sparc, sparc64: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/sparc/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 6 +- linux-user/Makefile.objs | 2 + linux-user/sparc/Makefile.objs | 5 + linux-user/sparc/syscall.tbl | 483 +++++++++++++++++++++++++++++++ linux-user/sparc/syscall_nr.h | 363 ----------------------- linux-user/sparc/syscallhdr.sh | 32 ++ linux-user/sparc64/Makefile.objs | 5 + linux-user/sparc64/syscall.tbl | 483 +++++++++++++++++++++++++++++++ linux-user/sparc64/syscall_nr.h | 366 ----------------------- linux-user/sparc64/syscallhdr.sh | 32 ++ 10 files changed, 1047 insertions(+), 730 deletions(-) create mode 100644 linux-user/sparc/Makefile.objs create mode 100644 linux-user/sparc/syscall.tbl delete mode 100644 linux-user/sparc/syscall_nr.h create mode 100644 linux-user/sparc/syscallhdr.sh create mode 100644 linux-user/sparc64/Makefile.objs create mode 100644 linux-user/sparc64/syscall.tbl delete mode 100644 linux-user/sparc64/syscall_nr.h create mode 100644 linux-user/sparc64/syscallhdr.sh
configure +5 -1
@@ -1889,7 +1889,8 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x ; do +for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ + ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7901,14 +7902,17 @@ case "$target_name" in bflt="yes" ;; sparc) + TARGET_SYSTBL_ABI=common,32 ;; sparc64) TARGET_BASE_ARCH=sparc + TARGET_SYSTBL_ABI=common,64 ;; sparc32plus) TARGET_ARCH=sparc64 TARGET_BASE_ARCH=sparc TARGET_ABI_DIR=sparc + TARGET_SYSTBL_ABI=common,32 echo "TARGET_ABI32=y" >> $config_target_mak ;; s390x)
linux-user/Makefile.objs +2 -0
@@ -16,4 +16,6 @@ obj-$(TARGET_PPC) += ppc/ obj-$(TARGET_PPC64) += ppc/ obj-$(TARGET_S390X) += s390x/ obj-$(TARGET_SH4) += sh4/ +obj-$(TARGET_SPARC) += sparc/ +obj-$(TARGET_SPARC64) += $(TARGET_ABI_DIR)/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/sparc/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/sparc/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/sparc/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/sparc/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/sparc/syscall.tbl new file +483 -0
483 lines not on this page · raw message
linux-user/sparc/syscall_nr.h deleted +0 -363
363 lines not on this page · raw message
linux-user/sparc/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_SPARC_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry compat ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
linux-user/sparc64/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/sparc64/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/sparc64/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/sparc/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/sparc64/syscall.tbl new file +483 -0
483 lines not on this page · raw message
linux-user/sparc64/syscall_nr.h deleted +0 -366
366 lines not on this page · raw message
linux-user/sparc64/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_SPARC64_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry compat ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 32/38] linux-user: update syscall.tbl from linux 0bf999f9c5e7
In reply to Laurent VivierRun scripts/update-syscalltbl.sh with linux commit 0bf999f9c5e7
Message-Id: <[email protected]>
--- linux-user/arm/syscall.tbl | 2 ++ linux-user/hppa/syscall.tbl | 2 ++ linux-user/i386/syscall_32.tbl | 2 ++ linux-user/m68k/syscall.tbl | 4 +++- linux-user/microblaze/syscall.tbl | 2 ++ linux-user/mips/syscall_o32.tbl | 2 ++ linux-user/mips64/syscall_n32.tbl | 2 ++ linux-user/mips64/syscall_n64.tbl | 2 ++ linux-user/ppc/syscall.tbl | 2 ++ linux-user/s390x/syscall.tbl | 2 ++ linux-user/sh4/syscall.tbl | 2 ++ linux-user/sparc/syscall.tbl | 2 ++ linux-user/sparc64/syscall.tbl | 2 ++ linux-user/x86_64/syscall_64.tbl | 2 ++ linux-user/xtensa/syscall.tbl | 2 ++ 15 files changed, 31 insertions(+), 1 deletion(-)
linux-user/arm/syscall.tbl +2 -0
@@ -449,3 +449,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open 435 common clone3 sys_clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/hppa/syscall.tbl +2 -0
@@ -433,3 +433,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open 435 common clone3 sys_clone3_wrapper +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/i386/syscall_32.tbl +2 -0
@@ -440,3 +440,5 @@ 433 i386 fspick sys_fspick __ia32_sys_fspick 434 i386 pidfd_open sys_pidfd_open __ia32_sys_pidfd_open 435 i386 clone3 sys_clone3 __ia32_sys_clone3 +437 i386 openat2 sys_openat2 __ia32_sys_openat2 +438 i386 pidfd_getfd sys_pidfd_getfd __ia32_sys_pidfd_getfd
linux-user/m68k/syscall.tbl +3 -1
@@ -434,4 +434,6 @@ 432 common fsmount sys_fsmount 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open -# 435 reserved for clone3 +435 common clone3 __sys_clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/microblaze/syscall.tbl +2 -0
@@ -441,3 +441,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open 435 common clone3 sys_clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/mips/syscall_o32.tbl +2 -0
@@ -423,3 +423,5 @@ 433 o32 fspick sys_fspick 434 o32 pidfd_open sys_pidfd_open 435 o32 clone3 __sys_clone3 +437 o32 openat2 sys_openat2 +438 o32 pidfd_getfd sys_pidfd_getfd
linux-user/mips64/syscall_n32.tbl +2 -0
@@ -374,3 +374,5 @@ 433 n32 fspick sys_fspick 434 n32 pidfd_open sys_pidfd_open 435 n32 clone3 __sys_clone3 +437 n32 openat2 sys_openat2 +438 n32 pidfd_getfd sys_pidfd_getfd
linux-user/mips64/syscall_n64.tbl +2 -0
@@ -350,3 +350,5 @@ 433 n64 fspick sys_fspick 434 n64 pidfd_open sys_pidfd_open 435 n64 clone3 __sys_clone3 +437 n64 openat2 sys_openat2 +438 n64 pidfd_getfd sys_pidfd_getfd
linux-user/ppc/syscall.tbl +2 -0
@@ -517,3 +517,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open 435 nospu clone3 ppc_clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/s390x/syscall.tbl +2 -0
@@ -438,3 +438,5 @@ 433 common fspick sys_fspick sys_fspick 434 common pidfd_open sys_pidfd_open sys_pidfd_open 435 common clone3 sys_clone3 sys_clone3 +437 common openat2 sys_openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd sys_pidfd_getfd
linux-user/sh4/syscall.tbl +2 -0
@@ -438,3 +438,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open # 435 reserved for clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/sparc/syscall.tbl +2 -0
@@ -481,3 +481,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open # 435 reserved for clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/sparc64/syscall.tbl +2 -0
@@ -481,3 +481,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open # 435 reserved for clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
linux-user/x86_64/syscall_64.tbl +2 -0
@@ -357,6 +357,8 @@ 433 common fspick __x64_sys_fspick 434 common pidfd_open __x64_sys_pidfd_open 435 common clone3 __x64_sys_clone3/ptregs +437 common openat2 __x64_sys_openat2 +438 common pidfd_getfd __x64_sys_pidfd_getfd # # x32-specific system call numbers start at 512 to avoid cache impact
linux-user/xtensa/syscall.tbl +2 -0
@@ -406,3 +406,5 @@ 433 common fspick sys_fspick 434 common pidfd_open sys_pidfd_open 435 common clone3 sys_clone3 +437 common openat2 sys_openat2 +438 common pidfd_getfd sys_pidfd_getfd
Signature · 1 line
2.24.1
[PULL 07/38] linux-user: do prlimit selectively
In reply to Laurent VivierFrom: Tobias Koch <[email protected]>
Analogous to what commit 5dfa88f7 did for setrlimit, this commit selectively ignores limits for memory-related resources in prlimit64 calls. This is to prevent too restrictive limits from causing QEMU itself to malfunction.
Message-Id: <[email protected]>
--- linux-user/syscall.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
linux-user/syscall.c +4 -1
@@ -11904,7 +11904,10 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,struct target_rlimit64 *target_rnew, *target_rold;struct host_rlimit64 rnew, rold, *rnewp =0 ;int resource =target_to_host_resource (arg2); -if (arg3) { + +if (arg3 && (resource !=RLIMIT_AS && + resource !=RLIMIT_DATA && + resource !=RLIMIT_STACK )) {if (!lock_user_struct (VERIFY_READ , target_rnew, arg3,1 )) {return -TARGET_EFAULT ; }
Signature · 1 line
2.24.1
[PULL 08/38] linux-user: fix socket() strace
In reply to Laurent Vivierprint_socket_type() doesn't manage flags and the correct type cannot be displayed
Message-Id: <[email protected]>
--- linux-user/strace.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
linux-user/strace.c +7 -1
@@ -444,7 +444,7 @@ print_socket_domain(int domain)static void print_socket_type (int type) { -switch (type) { +switch (type &TARGET_SOCK_TYPE_MASK ) {case TARGET_SOCK_DGRAM :qemu_log ("SOCK_DGRAM" );break ;
@@ -464,6 +464,12 @@ print_socket_type(int type)qemu_log ("SOCK_PACKET" );break ; } +if (type &TARGET_SOCK_CLOEXEC ) { +qemu_log ("|SOCK_CLOEXEC" ); + } +if (type &TARGET_SOCK_NONBLOCK ) { +qemu_log ("|SOCK_NONBLOCK" ); + } } static void
Signature · 1 line
2.24.1
[PULL 17/38] linux-user, m68k: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/m68k/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/m68k/Makefile.objs | 5 + linux-user/m68k/syscall.tbl | 437 ++++++++++++++++++++++++++++++++++ linux-user/m68k/syscall_nr.h | 434 --------------------------------- linux-user/m68k/syscallhdr.sh | 32 +++ 6 files changed, 477 insertions(+), 435 deletions(-) create mode 100644 linux-user/m68k/Makefile.objs create mode 100644 linux-user/m68k/syscall.tbl delete mode 100644 linux-user/m68k/syscall_nr.h create mode 100644 linux-user/m68k/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa ; do +for arch in alpha hppa m68k ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7821,6 +7821,7 @@ case "$target_name" in m68k) bflt="yes" gdb_xml_files="cf-core.xml cf-fp.xml m68k-fp.xml" + TARGET_SYSTBL_ABI=common ;; microblaze|microblazeel) TARGET_ARCH=microblaze
linux-user/Makefile.objs +1 -0
@@ -11,3 +11,4 @@ obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ obj-$(TARGET_HPPA) += hppa/ +obj-$(TARGET_M68K) += m68k/
linux-user/m68k/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/m68k/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/m68k/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/m68k/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/m68k/syscall.tbl new file +437 -0
437 lines not on this page · raw message
linux-user/m68k/syscall_nr.h deleted +0 -434
434 lines not on this page · raw message
linux-user/m68k/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_M68K_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */\n" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 31/38] linux-user, scripts: add a script to update syscall.tbl
In reply to Laurent Vivierscripts/update-syscalltbl.sh has the list of syscall.tbl to update and can copy them from the linux source directory
Message-Id: <[email protected]>
--- MAINTAINERS | 1 + scripts/update-syscalltbl.sh | 49 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100755 scripts/update-syscalltbl.sh
MAINTAINERS +1 -0
@@ -2448,6 +2448,7 @@ S: Maintained F: linux-user/ F: default-configs/*-linux-user.mak F: scripts/qemu-binfmt-conf.sh +F: scripts/update-syscalltbl.sh Tiny Code Generator (TCG) -------------------------
scripts/update-syscalltbl.sh new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 35/38] scripts: add a script to generate syscall_nr.h
In reply to Laurent VivierThis script is needed for targets based on asm-generic syscall numbers generation
Message-Id: <[email protected]> [lv: added file in MAINTAINERS]
--- MAINTAINERS | 1 + scripts/gensyscalls.sh | 102 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100755 scripts/gensyscalls.sh
MAINTAINERS +1 -0
@@ -2450,6 +2450,7 @@ F: default-configs/*-linux-user.mak F: scripts/qemu-binfmt-conf.sh F: scripts/update-syscalltbl.sh F: scripts/update-mips-syscall-args.sh +F: scripts/gensyscalls.sh Tiny Code Generator (TCG) -------------------------
scripts/gensyscalls.sh new file +102 -0
102 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 28/38] linux-user, x86_64: add syscall table generation support
In reply to Laurent VivierCopy syscall_64.tbl and syscallhdr.sh from linux/arch/x86/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/x86_64/Makefile.objs | 5 + linux-user/x86_64/syscall_64.tbl | 402 +++++++++++++++++++++++++++++++ linux-user/x86_64/syscall_nr.h | 356 --------------------------- linux-user/x86_64/syscallhdr.sh | 28 +++ 6 files changed, 438 insertions(+), 357 deletions(-) create mode 100644 linux-user/x86_64/Makefile.objs create mode 100644 linux-user/x86_64/syscall_64.tbl delete mode 100644 linux-user/x86_64/syscall_nr.h create mode 100644 linux-user/x86_64/syscallhdr.sh
configure +2 -1
@@ -1890,7 +1890,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ - i386 ; do + i386 x86_64 ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7792,6 +7792,7 @@ case "$target_name" in ;; x86_64) TARGET_BASE_ARCH=i386 + TARGET_SYSTBL_ABI=common,64 mttcg="yes" gdb_xml_files="i386-64bit.xml" ;;
linux-user/Makefile.objs +1 -0
@@ -19,4 +19,5 @@ obj-$(TARGET_S390X) += s390x/ obj-$(TARGET_SH4) += sh4/ obj-$(TARGET_SPARC) += sparc/ obj-$(TARGET_SPARC64) += $(TARGET_ABI_DIR)/ +obj-$(TARGET_X86_64) += x86_64/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/x86_64/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/x86_64/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/x86_64/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/x86_64/syscall_64.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/x86_64/syscall_64.tbl new file +402 -0
402 lines not on this page · raw message
linux-user/x86_64/syscall_nr.h deleted +0 -356
356 lines not on this page · raw message
linux-user/x86_64/syscallhdr.sh new file +28 -0
@@ -0,0 +1,28 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_X86_64_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + echo "#ifndef ${fileguard}" + echo "#define ${fileguard} 1" + echo "" + + while read nr abi name entry ; do + if [ -z "$offset" ]; then + echo "#define TARGET_NR_${prefix}${name} $nr" + else + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" + fi + done + + echo "" + echo "#endif /* ${fileguard} */" +) > "$out"
Signature · 1 line
2.24.1
[PULL 03/38] linux-user/i386: Emulate x86_64 vsyscalls
In reply to Laurent VivierFrom: Richard Henderson <[email protected]>
Notice the magic page during translate, much like we already do for the arm32 commpage. At runtime, raise an exception to return cpu_loop for emulation.
Message-Id: <[email protected]>
--- linux-user/i386/cpu_loop.c | 108 +++++++++++++++++++++++++++++++++++++ target/i386/cpu.h | 7 +++ target/i386/translate.c | 14 ++++- 3 files changed, 128 insertions(+), 1 deletion(-)
linux-user/i386/cpu_loop.c +108 -0
@@ -92,6 +92,109 @@ static void gen_signal(CPUX86State *env, int sig, int code, abi_ptr addr)queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); } +#ifdef TARGET_X86_64 +static bool write_ok_or_segv (CPUX86State *env,abi_ptr addr,size_t len) +{ +/* +* For all the vsyscalls, NULL means "don't write anything" not +* "write it at address 0". +*/ +if (addr ==0 ||access_ok (VERIFY_WRITE , addr, len)) { +return true; + } + + env->error_code =PG_ERROR_W_MASK |PG_ERROR_U_MASK ; +gen_signal (env,TARGET_SIGSEGV ,TARGET_SEGV_MAPERR , addr); +return false; +} + +/* +* Since v3.1, the kernel traps and emulates the vsyscall page. +* Entry points other than the official generate SIGSEGV. +*/ +static void emulate_vsyscall (CPUX86State *env) +{ +int syscall; +abi_ulong ret; +uint64_t caller; + +/* +* Validate the entry point. We have already validated the page +* during translation to get here; now verify the offset. +*/ +switch (env->eip & ~TARGET_PAGE_MASK ) { +case 0x000 : + syscall = TARGET_NR_gettimeofday; +break ; +case 0x400 : + syscall = TARGET_NR_time; +break ; +case 0x800 : + syscall = TARGET_NR_getcpu; +break ; +default : + goto sigsegv; + } + +/* +* Validate the return address. +* Note that the kernel treats this the same as an invalid entry point. +*/ +if (get_user_u64 (caller, env->regs[R_ESP ])) { + goto sigsegv; + } + +/* +* Validate the the pointer arguments. +*/ +switch (syscall) { +case TARGET_NR_gettimeofday: +if (!write_ok_or_segv (env, env->regs[R_EDI ], +sizeof (struct target_timeval )) || + !write_ok_or_segv (env, env->regs[R_ESI ], +sizeof (struct target_timezone ))) { +return ; + } +break ; +case TARGET_NR_time: +if (!write_ok_or_segv (env, env->regs[R_EDI ],sizeof (abi_long))) { +return ; + } +break ; +case TARGET_NR_getcpu: +if (!write_ok_or_segv (env, env->regs[R_EDI ],sizeof (uint32_t )) || + !write_ok_or_segv (env, env->regs[R_ESI ],sizeof (uint32_t ))) { +return ; + } +break ; +default : +g_assert_not_reached (); + } + +/* +* Perform the syscall. None of the vsyscalls should need restarting. +*/ + ret =do_syscall (env, syscall, env->regs[R_EDI ], env->regs[R_ESI ], + env->regs[R_EDX ], env->regs[10 ], env->regs[8 ], + env->regs[9 ],0 ,0 ); +g_assert (ret != -TARGET_ERESTARTSYS ); +g_assert (ret != -TARGET_QEMU_ESIGRETURN ); +if (ret == -TARGET_EFAULT ) { + goto sigsegv; + } + env->regs[R_EAX ] = ret; + +/* Emulate a ret instruction to leave the vsyscall page. */ + env->eip = caller; + env->regs[R_ESP ] +=8 ; +return ; + + sigsegv: +/* Like force_sig(SIGSEGV). */ +gen_signal (env,TARGET_SIGSEGV ,TARGET_SI_KERNEL ,0 ); +} +#endif +void cpu_loop (CPUX86State *env) {CPUState *cs =env_cpu (env);
@@ -141,6 +244,11 @@ void cpu_loop(CPUX86State *env) env->regs[R_EAX] = ret; }break ; +#endif +#ifdef TARGET_X86_64 +case EXCP_VSYSCALL : +emulate_vsyscall (env); +break ;#endif case EXCP0B_NOSEG :case EXCP0C_STACK :
target/i386/cpu.h +7 -0
@@ -1001,6 +1001,7 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];#define EXCP_VMEXIT 0x100/* only for system emulation */ #define EXCP_SYSCALL 0x101/* only for user emulation */ +#define EXCP_VSYSCALL 0x102/* only for user emulation */ /* i386-specific interrupt pending bits. */ #define CPU_INTERRUPT_POLL CPU_INTERRUPT_TGT_EXT_1
@@ -2215,4 +2216,10 @@ static inline bool hyperv_feat_enabled(X86CPU *cpu, int feat) return !!(cpu->hyperv_features & BIT(feat)); } +#if defined(TARGET_X86_64 ) && \ + defined(CONFIG_USER_ONLY ) && \ + defined(CONFIG_LINUX ) +# define TARGET_VSYSCALL_PAGE (UINT64_C(-10) << 20) +#endif +#endif /* I386_CPU_H */
target/i386/translate.c +13 -1
@@ -8555,7 +8555,19 @@ static bool i386_tr_breakpoint_check(DisasContextBase *dcbase, CPUState *cpu,static void i386_tr_translate_insn (DisasContextBase *dcbase,CPUState *cpu) {DisasContext *dc =container_of (dcbase, DisasContext, base); -target_ulong pc_next =disas_insn (dc, cpu); +target_ulong pc_next; + +#ifdef TARGET_VSYSCALL_PAGE +/* +* Detect entry into the vsyscall page and invoke the syscall. +*/ +if ((dc->base.pc_next &TARGET_PAGE_MASK ) ==TARGET_VSYSCALL_PAGE ) { +gen_exception (dc,EXCP_VSYSCALL , dc->base.pc_next); +return ; + } +#endif + + pc_next =disas_insn (dc, cpu);if (dc->tf || (dc->base.tb->flags &HF_INHIBIT_IRQ_MASK )) {/* if single step mode, we generate only one instruction and
Signature · 1 line
2.24.1
[PULL 33/38] linux-user,mips: move content of mips_syscall_args
In reply to Laurent VivierMove content of mips_syscall_args to mips-syscall-args-o32.c.inc to ease automatic update. No functionnal change
Message-Id: <[email protected]>
--- linux-user/mips/cpu_loop.c | 440 +------------------------ linux-user/mips/syscall-args-o32.c.inc | 438 ++++++++++++++++++++++++ 2 files changed, 439 insertions(+), 439 deletions(-) create mode 100644 linux-user/mips/syscall-args-o32.c.inc
linux-user/mips/cpu_loop.c +1 -439
@@ -26,447 +26,9 @@# ifdef TARGET_ABI_MIPSO32 # define MIPS_SYSCALL_NUMBER_UNUSED -1 -# define MIPS_SYS (name, args) args,static const int8_t mips_syscall_args[] = { - MIPS_SYS(sys_syscall , 8) /* 4000 */ - MIPS_SYS(sys_exit , 1) - MIPS_SYS(sys_fork , 0) - MIPS_SYS(sys_read , 3) - MIPS_SYS(sys_write , 3) - MIPS_SYS(sys_open , 3) /* 4005 */ - MIPS_SYS(sys_close , 1) - MIPS_SYS(sys_waitpid , 3) - MIPS_SYS(sys_creat , 2) - MIPS_SYS(sys_link , 2) - MIPS_SYS(sys_unlink , 1) /* 4010 */ - MIPS_SYS(sys_execve , 0) - MIPS_SYS(sys_chdir , 1) - MIPS_SYS(sys_time , 1) - MIPS_SYS(sys_mknod , 3) - MIPS_SYS(sys_chmod , 2) /* 4015 */ - MIPS_SYS(sys_lchown , 3) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_ni_syscall , 0) /* was sys_stat */ - MIPS_SYS(sys_lseek , 3) - MIPS_SYS(sys_getpid , 0) /* 4020 */ - MIPS_SYS(sys_mount , 5) - MIPS_SYS(sys_umount , 1) - MIPS_SYS(sys_setuid , 1) - MIPS_SYS(sys_getuid , 0) - MIPS_SYS(sys_stime , 1) /* 4025 */ - MIPS_SYS(sys_ptrace , 4) - MIPS_SYS(sys_alarm , 1) - MIPS_SYS(sys_ni_syscall , 0) /* was sys_fstat */ - MIPS_SYS(sys_pause , 0) - MIPS_SYS(sys_utime , 2) /* 4030 */ - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_access , 2) - MIPS_SYS(sys_nice , 1) - MIPS_SYS(sys_ni_syscall , 0) /* 4035 */ - MIPS_SYS(sys_sync , 0) - MIPS_SYS(sys_kill , 2) - MIPS_SYS(sys_rename , 2) - MIPS_SYS(sys_mkdir , 2) - MIPS_SYS(sys_rmdir , 1) /* 4040 */ - MIPS_SYS(sys_dup , 1) - MIPS_SYS(sys_pipe , 0) - MIPS_SYS(sys_times , 1) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_brk , 1) /* 4045 */ - MIPS_SYS(sys_setgid , 1) - MIPS_SYS(sys_getgid , 0) - MIPS_SYS(sys_ni_syscall , 0) /* was signal(2) */ - MIPS_SYS(sys_geteuid , 0) - MIPS_SYS(sys_getegid , 0) /* 4050 */ - MIPS_SYS(sys_acct , 0) - MIPS_SYS(sys_umount2 , 2) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_ioctl , 3) - MIPS_SYS(sys_fcntl , 3) /* 4055 */ - MIPS_SYS(sys_ni_syscall , 2) - MIPS_SYS(sys_setpgid , 2) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_olduname , 1) - MIPS_SYS(sys_umask , 1) /* 4060 */ - MIPS_SYS(sys_chroot , 1) - MIPS_SYS(sys_ustat , 2) - MIPS_SYS(sys_dup2 , 2) - MIPS_SYS(sys_getppid , 0) - MIPS_SYS(sys_getpgrp , 0) /* 4065 */ - MIPS_SYS(sys_setsid , 0) - MIPS_SYS(sys_sigaction , 3) - MIPS_SYS(sys_sgetmask , 0) - MIPS_SYS(sys_ssetmask , 1) - MIPS_SYS(sys_setreuid , 2) /* 4070 */ - MIPS_SYS(sys_setregid , 2) - MIPS_SYS(sys_sigsuspend , 0) - MIPS_SYS(sys_sigpending , 1) - MIPS_SYS(sys_sethostname , 2) - MIPS_SYS(sys_setrlimit , 2) /* 4075 */ - MIPS_SYS(sys_getrlimit , 2) - MIPS_SYS(sys_getrusage , 2) - MIPS_SYS(sys_gettimeofday, 2) - MIPS_SYS(sys_settimeofday, 2) - MIPS_SYS(sys_getgroups , 2) /* 4080 */ - MIPS_SYS(sys_setgroups , 2) - MIPS_SYS(sys_ni_syscall , 0) /* old_select */ - MIPS_SYS(sys_symlink , 2) - MIPS_SYS(sys_ni_syscall , 0) /* was sys_lstat */ - MIPS_SYS(sys_readlink , 3) /* 4085 */ - MIPS_SYS(sys_uselib , 1) - MIPS_SYS(sys_swapon , 2) - MIPS_SYS(sys_reboot , 3) - MIPS_SYS(old_readdir , 3) - MIPS_SYS(old_mmap , 6) /* 4090 */ - MIPS_SYS(sys_munmap , 2) - MIPS_SYS(sys_truncate , 2) - MIPS_SYS(sys_ftruncate , 2) - MIPS_SYS(sys_fchmod , 2) - MIPS_SYS(sys_fchown , 3) /* 4095 */ - MIPS_SYS(sys_getpriority , 2) - MIPS_SYS(sys_setpriority , 3) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_statfs , 2) - MIPS_SYS(sys_fstatfs , 2) /* 4100 */ - MIPS_SYS(sys_ni_syscall , 0) /* was ioperm(2) */ - MIPS_SYS(sys_socketcall , 2) - MIPS_SYS(sys_syslog , 3) - MIPS_SYS(sys_setitimer , 3) - MIPS_SYS(sys_getitimer , 2) /* 4105 */ - MIPS_SYS(sys_newstat , 2) - MIPS_SYS(sys_newlstat , 2) - MIPS_SYS(sys_newfstat , 2) - MIPS_SYS(sys_uname , 1) - MIPS_SYS(sys_ni_syscall , 0) /* 4110 was iopl(2) */ - MIPS_SYS(sys_vhangup , 0) - MIPS_SYS(sys_ni_syscall , 0) /* was sys_idle() */ - MIPS_SYS(sys_ni_syscall , 0) /* was sys_vm86 */ - MIPS_SYS(sys_wait4 , 4) - MIPS_SYS(sys_swapoff , 1) /* 4115 */ - MIPS_SYS(sys_sysinfo , 1) - MIPS_SYS(sys_ipc , 6) - MIPS_SYS(sys_fsync , 1) - MIPS_SYS(sys_sigreturn , 0) - MIPS_SYS(sys_clone , 6) /* 4120 */ - MIPS_SYS(sys_setdomainname, 2) - MIPS_SYS(sys_newuname , 1) - MIPS_SYS(sys_ni_syscall , 0) /* sys_modify_ldt */ - MIPS_SYS(sys_adjtimex , 1) - MIPS_SYS(sys_mprotect , 3) /* 4125 */ - MIPS_SYS(sys_sigprocmask , 3) - MIPS_SYS(sys_ni_syscall , 0) /* was create_module */ - MIPS_SYS(sys_init_module , 5) - MIPS_SYS(sys_delete_module, 1) - MIPS_SYS(sys_ni_syscall , 0) /* 4130 was get_kernel_syms */ - MIPS_SYS(sys_quotactl , 0) - MIPS_SYS(sys_getpgid , 1) - MIPS_SYS(sys_fchdir , 1) - MIPS_SYS(sys_bdflush , 2) - MIPS_SYS(sys_sysfs , 3) /* 4135 */ - MIPS_SYS(sys_personality , 1) - MIPS_SYS(sys_ni_syscall , 0) /* for afs_syscall */ - MIPS_SYS(sys_setfsuid , 1) - MIPS_SYS(sys_setfsgid , 1) - MIPS_SYS(sys_llseek , 5) /* 4140 */ - MIPS_SYS(sys_getdents , 3) - MIPS_SYS(sys_select , 5) - MIPS_SYS(sys_flock , 2) - MIPS_SYS(sys_msync , 3) - MIPS_SYS(sys_readv , 3) /* 4145 */ - MIPS_SYS(sys_writev , 3) - MIPS_SYS(sys_cacheflush , 3) - MIPS_SYS(sys_cachectl , 3) - MIPS_SYS(sys_sysmips , 4) - MIPS_SYS(sys_ni_syscall , 0) /* 4150 */ - MIPS_SYS(sys_getsid , 1) - MIPS_SYS(sys_fdatasync , 0) - MIPS_SYS(sys_sysctl , 1) - MIPS_SYS(sys_mlock , 2) - MIPS_SYS(sys_munlock , 2) /* 4155 */ - MIPS_SYS(sys_mlockall , 1) - MIPS_SYS(sys_munlockall , 0) - MIPS_SYS(sys_sched_setparam, 2) - MIPS_SYS(sys_sched_getparam, 2) - MIPS_SYS(sys_sched_setscheduler, 3) /* 4160 */ - MIPS_SYS(sys_sched_getscheduler, 1) - MIPS_SYS(sys_sched_yield , 0) - MIPS_SYS(sys_sched_get_priority_max, 1) - MIPS_SYS(sys_sched_get_priority_min, 1) - MIPS_SYS(sys_sched_rr_get_interval, 2) /* 4165 */ - MIPS_SYS(sys_nanosleep, 2) - MIPS_SYS(sys_mremap , 5) - MIPS_SYS(sys_accept , 3) - MIPS_SYS(sys_bind , 3) - MIPS_SYS(sys_connect , 3) /* 4170 */ - MIPS_SYS(sys_getpeername , 3) - MIPS_SYS(sys_getsockname , 3) - MIPS_SYS(sys_getsockopt , 5) - MIPS_SYS(sys_listen , 2) - MIPS_SYS(sys_recv , 4) /* 4175 */ - MIPS_SYS(sys_recvfrom , 6) - MIPS_SYS(sys_recvmsg , 3) - MIPS_SYS(sys_send , 4) - MIPS_SYS(sys_sendmsg , 3) - MIPS_SYS(sys_sendto , 6) /* 4180 */ - MIPS_SYS(sys_setsockopt , 5) - MIPS_SYS(sys_shutdown , 2) - MIPS_SYS(sys_socket , 3) - MIPS_SYS(sys_socketpair , 4) - MIPS_SYS(sys_setresuid , 3) /* 4185 */ - MIPS_SYS(sys_getresuid , 3) - MIPS_SYS(sys_ni_syscall , 0) /* was sys_query_module */ - MIPS_SYS(sys_poll , 3) - MIPS_SYS(sys_nfsservctl , 3) - MIPS_SYS(sys_setresgid , 3) /* 4190 */ - MIPS_SYS(sys_getresgid , 3) - MIPS_SYS(sys_prctl , 5) - MIPS_SYS(sys_rt_sigreturn, 0) - MIPS_SYS(sys_rt_sigaction, 4) - MIPS_SYS(sys_rt_sigprocmask, 4) /* 4195 */ - MIPS_SYS(sys_rt_sigpending, 2) - MIPS_SYS(sys_rt_sigtimedwait, 4) - MIPS_SYS(sys_rt_sigqueueinfo, 3) - MIPS_SYS(sys_rt_sigsuspend, 0) - MIPS_SYS(sys_pread64 , 6) /* 4200 */ - MIPS_SYS(sys_pwrite64 , 6) - MIPS_SYS(sys_chown , 3) - MIPS_SYS(sys_getcwd , 2) - MIPS_SYS(sys_capget , 2) - MIPS_SYS(sys_capset , 2) /* 4205 */ - MIPS_SYS(sys_sigaltstack , 2) - MIPS_SYS(sys_sendfile , 4) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_mmap2 , 6) /* 4210 */ - MIPS_SYS(sys_truncate64 , 4) - MIPS_SYS(sys_ftruncate64 , 4) - MIPS_SYS(sys_stat64 , 2) - MIPS_SYS(sys_lstat64 , 2) - MIPS_SYS(sys_fstat64 , 2) /* 4215 */ - MIPS_SYS(sys_pivot_root , 2) - MIPS_SYS(sys_mincore , 3) - MIPS_SYS(sys_madvise , 3) - MIPS_SYS(sys_getdents64 , 3) - MIPS_SYS(sys_fcntl64 , 3) /* 4220 */ - MIPS_SYS(sys_ni_syscall , 0) - MIPS_SYS(sys_gettid , 0) - MIPS_SYS(sys_readahead , 5) - MIPS_SYS(sys_setxattr , 5) - MIPS_SYS(sys_lsetxattr , 5) /* 4225 */ - MIPS_SYS(sys_fsetxattr , 5) - MIPS_SYS(sys_getxattr , 4) - MIPS_SYS(sys_lgetxattr , 4) - MIPS_SYS(sys_fgetxattr , 4) - MIPS_SYS(sys_listxattr , 3) /* 4230 */ - MIPS_SYS(sys_llistxattr , 3) - MIPS_SYS(sys_flistxattr , 3) - MIPS_SYS(sys_removexattr , 2) - MIPS_SYS(sys_lremovexattr, 2) - MIPS_SYS(sys_fremovexattr, 2) /* 4235 */ - MIPS_SYS(sys_tkill , 2) - MIPS_SYS(sys_sendfile64 , 5) - MIPS_SYS(sys_futex , 6) - MIPS_SYS(sys_sched_setaffinity, 3) - MIPS_SYS(sys_sched_getaffinity, 3) /* 4240 */ - MIPS_SYS(sys_io_setup , 2) - MIPS_SYS(sys_io_destroy , 1) - MIPS_SYS(sys_io_getevents, 5) - MIPS_SYS(sys_io_submit , 3) - MIPS_SYS(sys_io_cancel , 3) /* 4245 */ - MIPS_SYS(sys_exit_group , 1) - MIPS_SYS(sys_lookup_dcookie, 3) - MIPS_SYS(sys_epoll_create, 1) - MIPS_SYS(sys_epoll_ctl , 4) - MIPS_SYS(sys_epoll_wait , 3) /* 4250 */ - MIPS_SYS(sys_remap_file_pages, 5) - MIPS_SYS(sys_set_tid_address, 1) - MIPS_SYS(sys_restart_syscall, 0) - MIPS_SYS(sys_fadvise64_64, 7) - MIPS_SYS(sys_statfs64 , 3) /* 4255 */ - MIPS_SYS(sys_fstatfs64 , 2) - MIPS_SYS(sys_timer_create, 3) - MIPS_SYS(sys_timer_settime, 4) - MIPS_SYS(sys_timer_gettime, 2) - MIPS_SYS(sys_timer_getoverrun, 1) /* 4260 */ - MIPS_SYS(sys_timer_delete, 1) - MIPS_SYS(sys_clock_settime, 2) - MIPS_SYS(sys_clock_gettime, 2) - MIPS_SYS(sys_clock_getres, 2) - MIPS_SYS(sys_clock_nanosleep, 4) /* 4265 */ - MIPS_SYS(sys_tgkill , 3) - MIPS_SYS(sys_utimes , 2) - MIPS_SYS(sys_mbind , 4) - MIPS_SYS(sys_ni_syscall , 0) /* sys_get_mempolicy */ - MIPS_SYS(sys_ni_syscall , 0) /* 4270 sys_set_mempolicy */ - MIPS_SYS(sys_mq_open , 4) - MIPS_SYS(sys_mq_unlink , 1) - MIPS_SYS(sys_mq_timedsend, 5) - MIPS_SYS(sys_mq_timedreceive, 5) - MIPS_SYS(sys_mq_notify , 2) /* 4275 */ - MIPS_SYS(sys_mq_getsetattr, 3) - MIPS_SYS(sys_ni_syscall , 0) /* sys_vserver */ - MIPS_SYS(sys_waitid , 4) - MIPS_SYS(sys_ni_syscall , 0) /* available, was setaltroot */ - MIPS_SYS(sys_add_key , 5) - MIPS_SYS(sys_request_key, 4) - MIPS_SYS(sys_keyctl , 5) - MIPS_SYS(sys_set_thread_area, 1) - MIPS_SYS(sys_inotify_init, 0) - MIPS_SYS(sys_inotify_add_watch, 3) /* 4285 */ - MIPS_SYS(sys_inotify_rm_watch, 2) - MIPS_SYS(sys_migrate_pages, 4) - MIPS_SYS(sys_openat, 4) - MIPS_SYS(sys_mkdirat, 3) - MIPS_SYS(sys_mknodat, 4) /* 4290 */ - MIPS_SYS(sys_fchownat, 5) - MIPS_SYS(sys_futimesat, 3) - MIPS_SYS(sys_fstatat64, 4) - MIPS_SYS(sys_unlinkat, 3) - MIPS_SYS(sys_renameat, 4) /* 4295 */ - MIPS_SYS(sys_linkat, 5) - MIPS_SYS(sys_symlinkat, 3) - MIPS_SYS(sys_readlinkat, 4) - MIPS_SYS(sys_fchmodat, 3) - MIPS_SYS(sys_faccessat, 3) /* 4300 */ - MIPS_SYS(sys_pselect6, 6) - MIPS_SYS(sys_ppoll, 5) - MIPS_SYS(sys_unshare, 1) - MIPS_SYS(sys_splice, 6) - MIPS_SYS(sys_sync_file_range, 7) /* 4305 */ - MIPS_SYS(sys_tee, 4) - MIPS_SYS(sys_vmsplice, 4) - MIPS_SYS(sys_move_pages, 6) - MIPS_SYS(sys_set_robust_list, 2) - MIPS_SYS(sys_get_robust_list, 3) /* 4310 */ - MIPS_SYS(sys_kexec_load, 4) - MIPS_SYS(sys_getcpu, 3) - MIPS_SYS(sys_epoll_pwait, 6) - MIPS_SYS(sys_ioprio_set, 3) - MIPS_SYS(sys_ioprio_get, 2) - MIPS_SYS(sys_utimensat, 4) - MIPS_SYS(sys_signalfd, 3) - MIPS_SYS(sys_ni_syscall, 0) /* was timerfd */ - MIPS_SYS(sys_eventfd, 1) - MIPS_SYS(sys_fallocate, 6) /* 4320 */ - MIPS_SYS(sys_timerfd_create, 2) - MIPS_SYS(sys_timerfd_gettime, 2) - MIPS_SYS(sys_timerfd_settime, 4) - MIPS_SYS(sys_signalfd4, 4) - MIPS_SYS(sys_eventfd2, 2) /* 4325 */ - MIPS_SYS(sys_epoll_create1, 1) - MIPS_SYS(sys_dup3, 3) - MIPS_SYS(sys_pipe2, 2) - MIPS_SYS(sys_inotify_init1, 1) - MIPS_SYS(sys_preadv, 5) /* 4330 */ - MIPS_SYS(sys_pwritev, 5) - MIPS_SYS(sys_rt_tgsigqueueinfo, 4) - MIPS_SYS(sys_perf_event_open, 5) - MIPS_SYS(sys_accept4, 4) - MIPS_SYS(sys_recvmmsg, 5) /* 4335 */ - MIPS_SYS(sys_fanotify_init, 2) - MIPS_SYS(sys_fanotify_mark, 6) - MIPS_SYS(sys_prlimit64, 4) - MIPS_SYS(sys_name_to_handle_at, 5) - MIPS_SYS(sys_open_by_handle_at, 3) /* 4340 */ - MIPS_SYS(sys_clock_adjtime, 2) - MIPS_SYS(sys_syncfs, 1) - MIPS_SYS(sys_sendmmsg, 4) - MIPS_SYS(sys_setns, 2) - MIPS_SYS(sys_process_vm_readv, 6) /* 345 */ - MIPS_SYS(sys_process_vm_writev, 6) - MIPS_SYS(sys_kcmp, 5) - MIPS_SYS(sys_finit_module, 3) - MIPS_SYS(sys_sched_setattr, 2) - MIPS_SYS(sys_sched_getattr, 3) /* 350 */ - MIPS_SYS(sys_renameat2, 5) - MIPS_SYS(sys_seccomp, 3) - MIPS_SYS(sys_getrandom, 3) - MIPS_SYS(sys_memfd_create, 2) - MIPS_SYS(sys_bpf, 3) /* 355 */ - MIPS_SYS(sys_execveat, 5) - MIPS_SYS(sys_userfaultfd, 1) - MIPS_SYS(sys_membarrier, 2) - MIPS_SYS(sys_mlock2, 3) - MIPS_SYS(sys_copy_file_range, 6) /* 360 */ - MIPS_SYS(sys_preadv2, 6) - MIPS_SYS(sys_pwritev2, 6) - MIPS_SYS(sys_pkey_mprotect, 4) - MIPS_SYS(sys_pkey_alloc, 2) - MIPS_SYS(sys_pkey_free, 1) /* 365 */ - MIPS_SYS(sys_statx, 5) - MIPS_SYS(sys_rseq, 4) - MIPS_SYS(sys_io_pgetevents, 6) -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED ,/* 370 */ -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED ,/* 375 */ -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED ,/* 380 */ -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED ,/* 385 */ -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED ,/* 390 */ -MIPS_SYSCALL_NUMBER_UNUSED , -MIPS_SYSCALL_NUMBER_UNUSED , - MIPS_SYS(sys_semget, 3) - MIPS_SYS(sys_semctl, 4) - MIPS_SYS(sys_shmget, 3) /* 395 */ - MIPS_SYS(sys_shmctl, 3) - MIPS_SYS(sys_shmat, 3) - MIPS_SYS(sys_shmdt, 1) - MIPS_SYS(sys_msgget, 2) - MIPS_SYS(sys_msgsnd, 4) /* 400 */ - MIPS_SYS(sys_msgrcv, 5) - MIPS_SYS(sys_msgctl, 3) - MIPS_SYS(sys_clock_gettime64, 2) - MIPS_SYS(sys_clock_settime64, 2) - MIPS_SYS(sys_clock_adjtime64, 2) /* 405 */ - MIPS_SYS(sys_clock_getres_time64, 2) - MIPS_SYS(sys_clock_nanosleep_time64, 4) - MIPS_SYS(sys_timer_gettime64, 2) - MIPS_SYS(sys_timer_settime64, 4) - MIPS_SYS(sys_timerfd_gettime64, 2) /* 410 */ - MIPS_SYS(sys_timerfd_settime64, 4) - MIPS_SYS(sys_utimensat_time64, 4) - MIPS_SYS(sys_pselect6_time64, 6) - MIPS_SYS(sys_ppoll_time64, 5) -MIPS_SYSCALL_NUMBER_UNUSED ,/* 415 */ - MIPS_SYS(sys_io_pgetevents_time64, 6) - MIPS_SYS(sys_recvmmsg_time64, 5) - MIPS_SYS(sys_mq_timedsend_time64, 5) - MIPS_SYS(sys_mq_timedreceive_time64, 5) - MIPS_SYS(sys_semtimedop_time64, 4) /* 420 */ - MIPS_SYS(sys_rt_sigtimedwait_time64, 4) - MIPS_SYS(sys_futex_time64, 6) - MIPS_SYS(sys_sched_rr_get_interval_time64, 2) - MIPS_SYS(sys_pidfd_send_signal, 4) - MIPS_SYS(sys_io_uring_setup, 2) /* 425 */ - MIPS_SYS(sys_io_uring_enter, 6) - MIPS_SYS(sys_io_uring_register, 4) - MIPS_SYS(sys_open_tree, 3) - MIPS_SYS(sys_move_mount, 5) - MIPS_SYS(sys_fsopen, 2) /* 430 */ - MIPS_SYS(sys_fsconfig, 5) - MIPS_SYS(sys_fsmount, 3) - MIPS_SYS(sys_fspick, 3) - MIPS_SYS(sys_pidfd_open, 2) -MIPS_SYS (sys_clone3,2 )/* 435 */ - +#include "syscall-args-o32.c.inc" }; -# undef MIPS_SYS# endif /* O32 */ /* Break codes */
linux-user/mips/syscall-args-o32.c.inc new file +438 -0
438 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 06/38] linux-user: Add AT_EXECFN auxval
In reply to Laurent VivierFrom: Lirong Yuan <[email protected]>
This change adds the support for AT_EXECFN auxval.
Message-Id: <[email protected]>
--- linux-user/elfload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
linux-user/elfload.c +2 -1
@@ -1573,7 +1573,7 @@ struct exec ~(abi_ulong)(TARGET_ELF_EXEC_PAGESIZE-1))#define TARGET_ELF_PAGEOFFSET (_v) ((_v) & (TARGET_ELF_EXEC_PAGESIZE-1)) -#define DLINFO_ITEMS 15 +#define DLINFO_ITEMS 16static inline void memcpy_fromfs (void * to,const void * from,unsigned long n) {
@@ -2037,6 +2037,7 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc,NEW_AUX_ENT (AT_CLKTCK , (abi_ulong )sysconf (_SC_CLK_TCK));NEW_AUX_ENT (AT_RANDOM , (abi_ulong ) u_rand_bytes);NEW_AUX_ENT (AT_SECURE , (abi_ulong )qemu_getauxval (AT_SECURE )); +NEW_AUX_ENT (AT_EXECFN , info->file_string);#ifdef ELF_HWCAP2 NEW_AUX_ENT (AT_HWCAP2 , (abi_ulong )ELF_HWCAP2 );
Signature · 1 line
2.24.1
[PULL 15/38] linux-user, alpha: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/alpha/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 2 + linux-user/alpha/Makefile.objs | 5 + linux-user/alpha/syscall.tbl | 479 ++++++++++++++++++++++++++++++++ linux-user/alpha/syscall_nr.h | 492 --------------------------------- linux-user/alpha/syscallhdr.sh | 32 +++ 6 files changed, 520 insertions(+), 493 deletions(-) create mode 100644 linux-user/alpha/Makefile.objs create mode 100644 linux-user/alpha/syscall.tbl delete mode 100644 linux-user/alpha/syscall_nr.h create mode 100644 linux-user/alpha/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in ; do +for arch in alpha ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7795,6 +7795,7 @@ case "$target_name" in ;; alpha) mttcg="yes" + TARGET_SYSTBL_ABI=common ;; arm|armeb) TARGET_ARCH=arm
linux-user/Makefile.objs +2 -0
@@ -8,3 +8,5 @@ obj-$(TARGET_I386) += vm86.o obj-$(TARGET_ARM) += arm/nwfpe/ obj-$(TARGET_ARM) += arm/semihost.o obj-$(TARGET_AARCH64) += arm/semihost.o + +obj-$(TARGET_ALPHA) += alpha/
linux-user/alpha/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/alpha/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/alpha/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/alpha/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/alpha/syscall.tbl new file +479 -0
479 lines not on this page · raw message
linux-user/alpha/syscall_nr.h deleted +0 -492
492 lines not on this page · raw message
linux-user/alpha/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_ALPHA_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 09/38] linux-user: Update TASK_UNMAPPED_BASE for aarch64
In reply to Laurent VivierFrom: Lirong Yuan <[email protected]>
This change updates TASK_UNMAPPED_BASE (the base address for guest programs) for aarch64. It is needed to allow qemu to work with Thread Sanitizer (TSan), which has specific boundary definitions for memory mappings on different platforms:
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/tsan/rtl/tsan_platform.h
Message-Id: <[email protected]>
--- linux-user/mmap.c | 4 ++++ 1 file changed, 4 insertions(+)
linux-user/mmap.c +4 -0
@@ -184,7 +184,11 @@ static int mmap_frag(abi_ulong real_start, }#if HOST_LONG_BITS ==64 &&TARGET_ABI_BITS ==64 +#ifdef TARGET_AARCH64 +# define TASK_UNMAPPED_BASE 0x5500000000 +#else # define TASK_UNMAPPED_BASE (1ul << 38) +#endif #else # define TASK_UNMAPPED_BASE 0x40000000#endif
Signature · 1 line
2.24.1
[PULL 04/38] linux-user: Add x86_64 vsyscall page to /proc/self/maps
In reply to Laurent VivierFrom: Richard Henderson <[email protected]>
The page isn't (necessarily) present in the host /proc/self/maps, and even if it might be it isn't present in page_flags, and even if it was it might not have the same set of page permissions.
The easiest thing to do, particularly when it comes to the "[vsyscall]" note at the end of line, is to special case it.
Message-Id: <[email protected]>
--- linux-user/syscall.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
linux-user/syscall.c +10 -0
@@ -7079,6 +7079,16 @@ static int open_self_maps(void *cpu_env, int fd) } } +#ifdef TARGET_VSYSCALL_PAGE +/* +* We only support execution from the vsyscall page. +* This is as if CONFIG_LEGACY_VSYSCALL_XONLY=y from v5.3. +*/ +dprintf (fd, TARGET_FMT_lx"-" TARGET_FMT_lx +" --xp 00000000 00:00 0 [vsyscall]\n" , +TARGET_VSYSCALL_PAGE ,TARGET_VSYSCALL_PAGE +TARGET_PAGE_SIZE ); +#endif +free (line);fclose (fp);
Signature · 1 line
2.24.1
[PULL 10/38] linux-user: Protect more syscalls
In reply to Laurent VivierFrom: Alistair Francis <[email protected]>
New y2038 safe 32-bit architectures (like RISC-V) don't support old syscalls with a 32-bit time_t. The kernel defines new *_time64 versions of these syscalls. Add some more #ifdefs to syscall.c in linux-user to allow us to compile without these old syscalls.
Message-Id: <9ffc3cc6226756895157f16622be5f6edfa2aee6.1584051142.git.alistair.francis@wdc.com>
--- linux-user/strace.c | 2 ++ linux-user/syscall.c | 68 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 68 insertions(+), 2 deletions(-)
linux-user/strace.c +2 -0
@@ -781,6 +781,7 @@ print_syscall_ret_newselect(const struct syscallname *name, abi_long ret)#define TARGET_TIME_OOP 3/* leap second in progress */ #define TARGET_TIME_WAIT 4/* leap second has occurred */ #define TARGET_TIME_ERROR 5/* clock not synchronized */ +#ifdef TARGET_NR_adjtimexstatic void print_syscall_ret_adjtimex (const struct syscallname *name,abi_long ret) {
@@ -819,6 +820,7 @@ print_syscall_ret_adjtimex(const struct syscallname *name, abi_long ret)qemu_log ("\n" ); } +#endif UNUSED static struct flags access_flags[] = {FLAG_GENERIC (F_OK ),
linux-user/syscall.c +66 -2
307 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 13/38] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel
In reply to Laurent VivierFrom: Alistair Francis <[email protected]>
Message-Id: <8e512fa2dc885aafc4d9c4013ee033442827a4a0.1584051142.git.alistair.francis@wdc.com>
--- linux-user/riscv/syscall32_nr.h | 295 +++++++++++++++++++++++++++++++ linux-user/riscv/syscall64_nr.h | 301 ++++++++++++++++++++++++++++++++ linux-user/riscv/syscall_nr.h | 294 +------------------------------ 3 files changed, 598 insertions(+), 292 deletions(-) create mode 100644 linux-user/riscv/syscall32_nr.h create mode 100644 linux-user/riscv/syscall64_nr.h
linux-user/riscv/syscall32_nr.h new file +295 -0
@@ -0,0 +1,295 @@ +/* +* This file contains the system call numbers. +*/ +#ifndef LINUX_USER_RISCV_SYSCALL32_NR_H +#define LINUX_USER_RISCV_SYSCALL32_NR_H + +#define TARGET_NR_io_setup 0 +#define TARGET_NR_io_destroy 1 +#define TARGET_NR_io_submit 2 +#define TARGET_NR_io_cancel 3 +#define TARGET_NR_setxattr 5 +#define TARGET_NR_lsetxattr 6 +#define TARGET_NR_fsetxattr 7 +#define TARGET_NR_getxattr 8 +#define TARGET_NR_lgetxattr 9 +#define TARGET_NR_fgetxattr 10 +#define TARGET_NR_listxattr 11 +#define TARGET_NR_llistxattr 12 +#define TARGET_NR_flistxattr 13 +#define TARGET_NR_removexattr 14 +#define TARGET_NR_lremovexattr 15 +#define TARGET_NR_fremovexattr 16 +#define TARGET_NR_getcwd 17 +#define TARGET_NR_lookup_dcookie 18 +#define TARGET_NR_eventfd2 19 +#define TARGET_NR_epoll_create1 20 +#define TARGET_NR_epoll_ctl 21 +#define TARGET_NR_epoll_pwait 22 +#define TARGET_NR_dup 23 +#define TARGET_NR_dup3 24 +#define TARGET_NR_fcntl64 25 +#define TARGET_NR_inotify_init1 26 +#define TARGET_NR_inotify_add_watch 27 +#define TARGET_NR_inotify_rm_watch 28 +#define TARGET_NR_ioctl 29 +#define TARGET_NR_ioprio_set 30 +#define TARGET_NR_ioprio_get 31 +#define TARGET_NR_flock 32 +#define TARGET_NR_mknodat 33 +#define TARGET_NR_mkdirat 34 +#define TARGET_NR_unlinkat 35 +#define TARGET_NR_symlinkat 36 +#define TARGET_NR_linkat 37 +#define TARGET_NR_umount2 39 +#define TARGET_NR_mount 40 +#define TARGET_NR_pivot_root 41 +#define TARGET_NR_nfsservctl 42 +#define TARGET_NR_statfs64 43 +#define TARGET_NR_fstatfs64 44 +#define TARGET_NR_truncate64 45 +#define TARGET_NR_ftruncate64 46 +#define TARGET_NR_fallocate 47 +#define TARGET_NR_faccessat 48 +#define TARGET_NR_chdir 49 +#define TARGET_NR_fchdir 50 +#define TARGET_NR_chroot 51 +#define TARGET_NR_fchmod 52 +#define TARGET_NR_fchmodat 53 +#define TARGET_NR_fchownat 54 +#define TARGET_NR_fchown 55 +#define TARGET_NR_openat 56 +#define TARGET_NR_close 57 +#define TARGET_NR_vhangup 58 +#define TARGET_NR_pipe2 59 +#define TARGET_NR_quotactl 60 +#define TARGET_NR_getdents64 61 +#define TARGET_NR_llseek 62 +#define TARGET_NR_read 63 +#define TARGET_NR_write 64 +#define TARGET_NR_readv 65 +#define TARGET_NR_writev 66 +#define TARGET_NR_pread64 67 +#define TARGET_NR_pwrite64 68 +#define TARGET_NR_preadv 69 +#define TARGET_NR_pwritev 70 +#define TARGET_NR_sendfile64 71 +#define TARGET_NR_signalfd4 74 +#define TARGET_NR_vmsplice 75 +#define TARGET_NR_splice 76 +#define TARGET_NR_tee 77 +#define TARGET_NR_readlinkat 78 +#define TARGET_NR_fstatat64 79 +#define TARGET_NR_fstat64 80 +#define TARGET_NR_sync 81 +#define TARGET_NR_fsync 82 +#define TARGET_NR_fdatasync 83 +#define TARGET_NR_sync_file_range 84 +#define TARGET_NR_timerfd_create 85 +#define TARGET_NR_acct 89 +#define TARGET_NR_capget 90 +#define TARGET_NR_capset 91 +#define TARGET_NR_personality 92 +#define TARGET_NR_exit 93 +#define TARGET_NR_exit_group 94 +#define TARGET_NR_waitid 95 +#define TARGET_NR_set_tid_address 96 +#define TARGET_NR_unshare 97 +#define TARGET_NR_set_robust_list 99 +#define TARGET_NR_get_robust_list 100 +#define TARGET_NR_getitimer 102 +#define TARGET_NR_setitimer 103 +#define TARGET_NR_kexec_load 104 +#define TARGET_NR_init_module 105 +#define TARGET_NR_delete_module 106 +#define TARGET_NR_timer_create 107 +#define TARGET_NR_timer_getoverrun 109 +#define TARGET_NR_timer_delete 111 +#define TARGET_NR_syslog 116 +#define TARGET_NR_ptrace 117 +#define TARGET_NR_sched_setparam 118 +#define TARGET_NR_sched_setscheduler 119 +#define TARGET_NR_sched_getscheduler 120 +#define TARGET_NR_sched_getparam 121 +#define TARGET_NR_sched_setaffinity 122 +#define TARGET_NR_sched_getaffinity 123 +#define TARGET_NR_sched_yield 124 +#define TARGET_NR_sched_get_priority_max 125 +#define TARGET_NR_sched_get_priority_min 126 +#define TARGET_NR_restart_syscall 128 +#define TARGET_NR_kill 129 +#define TARGET_NR_tkill 130 +#define TARGET_NR_tgkill 131 +#define TARGET_NR_sigaltstack 132 +#define TARGET_NR_rt_sigsuspend 133 +#define TARGET_NR_rt_sigaction 134 +#define TARGET_NR_rt_sigprocmask 135 +#define TARGET_NR_rt_sigpending 136 +#define TARGET_NR_rt_sigqueueinfo 138 +#define TARGET_NR_rt_sigreturn 139 +#define TARGET_NR_setpriority 140 +#define TARGET_NR_getpriority 141 +#define TARGET_NR_reboot 142 +#define TARGET_NR_setregid 143 +#define TARGET_NR_setgid 144 +#define TARGET_NR_setreuid 145 +#define TARGET_NR_setuid 146 +#define TARGET_NR_setresuid 147 +#define TARGET_NR_getresuid 148 +#define TARGET_NR_setresgid 149 +#define TARGET_NR_getresgid 150 +#define TARGET_NR_setfsuid 151 +#define TARGET_NR_setfsgid 152 +#define TARGET_NR_times 153 +#define TARGET_NR_setpgid 154 +#define TARGET_NR_getpgid 155 +#define TARGET_NR_getsid 156 +#define TARGET_NR_setsid 157 +#define TARGET_NR_getgroups 158 +#define TARGET_NR_setgroups 159 +#define TARGET_NR_uname 160 +#define TARGET_NR_sethostname 161 +#define TARGET_NR_setdomainname 162 +#define TARGET_NR_getrlimit 163 +#define TARGET_NR_setrlimit 164 +#define TARGET_NR_getrusage 165 +#define TARGET_NR_umask 166 +#define TARGET_NR_prctl 167 +#define TARGET_NR_getcpu 168 +#define TARGET_NR_getpid 172 +#define TARGET_NR_getppid 173 +#define TARGET_NR_getuid 174 +#define TARGET_NR_geteuid 175 +#define TARGET_NR_getgid 176 +#define TARGET_NR_getegid 177 +#define TARGET_NR_gettid 178 +#define TARGET_NR_sysinfo 179 +#define TARGET_NR_mq_open 180 +#define TARGET_NR_mq_unlink 181 +#define TARGET_NR_mq_notify 184 +#define TARGET_NR_mq_getsetattr 185 +#define TARGET_NR_msgget 186 +#define TARGET_NR_msgctl 187 +#define TARGET_NR_msgrcv 188 +#define TARGET_NR_msgsnd 189 +#define TARGET_NR_semget 190 +#define TARGET_NR_semctl 191 +#define TARGET_NR_semop 193 +#define TARGET_NR_shmget 194 +#define TARGET_NR_shmctl 195 +#define TARGET_NR_shmat 196 +#define TARGET_NR_shmdt 197 +#define TARGET_NR_socket 198 +#define TARGET_NR_socketpair 199 +#define TARGET_NR_bind 200 +#define TARGET_NR_listen 201 +#define TARGET_NR_accept 202 +#define TARGET_NR_connect 203 +#define TARGET_NR_getsockname 204 +#define TARGET_NR_getpeername 205 +#define TARGET_NR_sendto 206 +#define TARGET_NR_recvfrom 207 +#define TARGET_NR_setsockopt 208 +#define TARGET_NR_getsockopt 209 +#define TARGET_NR_shutdown 210 +#define TARGET_NR_sendmsg 211 +#define TARGET_NR_recvmsg 212 +#define TARGET_NR_readahead 213 +#define TARGET_NR_brk 214 +#define TARGET_NR_munmap 215 +#define TARGET_NR_mremap 216 +#define TARGET_NR_add_key 217 +#define TARGET_NR_request_key 218 +#define TARGET_NR_keyctl 219 +#define TARGET_NR_clone 220 +#define TARGET_NR_execve 221 +#define TARGET_NR_mmap2 222 +#define TARGET_NR_fadvise64_64 223 +#define TARGET_NR_swapon 224 +#define TARGET_NR_swapoff 225 +#define TARGET_NR_mprotect 226 +#define TARGET_NR_msync 227 +#define TARGET_NR_mlock 228 +#define TARGET_NR_munlock 229 +#define TARGET_NR_mlockall 230 +#define TARGET_NR_munlockall 231 +#define TARGET_NR_mincore 232 +#define TARGET_NR_madvise 233 +#define TARGET_NR_remap_file_pages 234 +#define TARGET_NR_mbind 235 +#define TARGET_NR_get_mempolicy 236 +#define TARGET_NR_set_mempolicy 237 +#define TARGET_NR_migrate_pages 238 +#define TARGET_NR_move_pages 239 +#define TARGET_NR_rt_tgsigqueueinfo 240 +#define TARGET_NR_perf_event_open 241 +#define TARGET_NR_accept4 242 +#define TARGET_NR_arch_specific_syscall 244 +#define TARGET_NR_riscv_flush_icache (TARGET_NR_arch_specific_syscall + 15) +#define TARGET_NR_prlimit64 261 +#define TARGET_NR_fanotify_init 262 +#define TARGET_NR_fanotify_mark 263 +#define TARGET_NR_name_to_handle_at 264 +#define TARGET_NR_open_by_handle_at 265 +#define TARGET_NR_syncfs 267 +#define TARGET_NR_setns 268 +#define TARGET_NR_sendmmsg 269 +#define TARGET_NR_process_vm_readv 270 +#define TARGET_NR_process_vm_writev 271 +#define TARGET_NR_kcmp 272 +#define TARGET_NR_finit_module 273 +#define TARGET_NR_sched_setattr 274 +#define TARGET_NR_sched_getattr 275 +#define TARGET_NR_renameat2 276 +#define TARGET_NR_seccomp 277 +#define TARGET_NR_getrandom 278 +#define TARGET_NR_memfd_create 279 +#define TARGET_NR_bpf 280 +#define TARGET_NR_execveat 281 +#define TARGET_NR_userfaultfd 282 +#define TARGET_NR_membarrier 283 +#define TARGET_NR_mlock2 284 +#define TARGET_NR_copy_file_range 285 +#define TARGET_NR_preadv2 286 +#define TARGET_NR_pwritev2 287 +#define TARGET_NR_pkey_mprotect 288 +#define TARGET_NR_pkey_alloc 289 +#define TARGET_NR_pkey_free 290 +#define TARGET_NR_statx 291 +#define TARGET_NR_rseq 293 +#define TARGET_NR_kexec_file_load 294 +#define TARGET_NR_clock_gettime64 403 +#define TARGET_NR_clock_settime64 404 +#define TARGET_NR_clock_adjtime64 405 +#define TARGET_NR_clock_getres_time64 406 +#define TARGET_NR_clock_nanosleep_time64 407 +#define TARGET_NR_timer_gettime64 408 +#define TARGET_NR_timer_settime64 409 +#define TARGET_NR_timerfd_gettime64 410 +#define TARGET_NR_timerfd_settime64 411 +#define TARGET_NR_utimensat_time64 412 +#define TARGET_NR_pselect6_time64 413 +#define TARGET_NR_ppoll_time64 414 +#define TARGET_NR_io_pgetevents_time64 416 +#define TARGET_NR_recvmmsg_time64 417 +#define TARGET_NR_mq_timedsend_time64 418 +#define TARGET_NR_mq_timedreceive_time64 419 +#define TARGET_NR_semtimedop_time64 420 +#define TARGET_NR_rt_sigtimedwait_time64 421 +#define TARGET_NR_futex_time64 422 +#define TARGET_NR_sched_rr_get_interval_time64 423 +#define TARGET_NR_pidfd_send_signal 424 +#define TARGET_NR_io_uring_setup 425 +#define TARGET_NR_io_uring_enter 426 +#define TARGET_NR_io_uring_register 427 +#define TARGET_NR_open_tree 428 +#define TARGET_NR_move_mount 429 +#define TARGET_NR_fsopen 430 +#define TARGET_NR_fsconfig 431 +#define TARGET_NR_fsmount 432 +#define TARGET_NR_fspick 433 +#define TARGET_NR_pidfd_open 434 +#define TARGET_NR_clone3 435 +#define TARGET_NR_syscalls 436 + +#endif /* LINUX_USER_RISCV_SYSCALL32_NR_H */
linux-user/riscv/syscall64_nr.h new file +301 -0
301 lines not on this page · raw message
linux-user/riscv/syscall_nr.h +2 -292
302 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 20/38] linux-user, microblaze: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/microblaze/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/microblaze/Makefile.objs | 5 + linux-user/microblaze/syscall.tbl | 443 ++++++++++++++++++++++++++++ linux-user/microblaze/syscall_nr.h | 442 --------------------------- linux-user/microblaze/syscallhdr.sh | 32 ++ 6 files changed, 483 insertions(+), 443 deletions(-) create mode 100644 linux-user/microblaze/Makefile.objs create mode 100644 linux-user/microblaze/syscall.tbl delete mode 100644 linux-user/microblaze/syscall_nr.h create mode 100644 linux-user/microblaze/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa sh4 ; do +for arch in alpha hppa m68k xtensa sh4 microblaze ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7825,6 +7825,7 @@ case "$target_name" in ;; microblaze|microblazeel) TARGET_ARCH=microblaze + TARGET_SYSTBL_ABI=common bflt="yes" echo "TARGET_ABI32=y" >> $config_target_mak ;;
linux-user/Makefile.objs +1 -0
@@ -12,5 +12,6 @@ obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_M68K) += m68k/ +obj-$(TARGET_MICROBLAZE) += microblaze/ obj-$(TARGET_SH4) += sh4/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/microblaze/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/microblaze/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/microblaze/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/microblaze/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/microblaze/syscall.tbl new file +443 -0
443 lines not on this page · raw message
linux-user/microblaze/syscall_nr.h deleted +0 -442
442 lines not on this page · raw message
linux-user/microblaze/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_MICROBLAZE_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 26/38] linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl
In reply to Laurent VivierDefine do_arch_prctl() for i386 and x86_64, but return -TARGET_ENOSYS for i386.
Message-Id: <[email protected]>
--- linux-user/i386/target_cpu.h | 4 ++-- linux-user/syscall.c | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-)
linux-user/i386/target_cpu.h +2 -2
@@ -33,6 +33,8 @@ static inline void cpu_clone_regs_parent(CPUX86State *env, unsigned flags) { } +abi_long do_arch_prctl (CPUX86State *env,int code,abi_ulong addr); +#if defined(TARGET_ABI32 )abi_long do_set_thread_area (CPUX86State *env,abi_ulong ptr);
@@ -42,8 +44,6 @@ static inline void cpu_set_tls(CPUX86State *env, target_ulong newtls) cpu_x86_load_seg(env, R_GS, env->segs[R_GS].selector); }#else -abi_long do_arch_prctl (CPUX86State *env,int code,abi_ulong addr); -static inline void cpu_set_tls (CPUX86State *env,target_ulong newtls) {do_arch_prctl (env,TARGET_ARCH_SET_FS , newtls);
linux-user/syscall.c +11 -8
@@ -5577,6 +5577,10 @@ static bitmask_transtbl mmap_flags_tbl[] = { { 0, 0, 0, 0 } }; +/* +* NOTE: TARGET_ABI32 is defined for TARGET_I386 (but not for TARGET_X86_64) +* TARGET_I386 is defined if TARGET_X86_64 is defined +*/ #if defined(TARGET_I386 )/* NOTE: there is really one LDT for all the threads */
@@ -5716,7 +5720,7 @@ static abi_long do_modify_ldt(CPUX86State *env, int func, abi_ulong ptr,return ret; } -#if defined(TARGET_I386 ) && defined(TARGET_ABI32 ) +#if defined(TARGET_ABI32 )abi_long do_set_thread_area (CPUX86State *env,abi_ulong ptr) {uint64_t *gdt_table =g2h (env->gdt.base);
@@ -5848,9 +5852,12 @@ static abi_long do_get_thread_area(CPUX86State *env, abi_ulong ptr)unlock_user_struct (target_ldt_info, ptr,1 ); return 0; } -#endif /* TARGET_I386 && TARGET_ABI32 */ -#ifndef TARGET_ABI32 +abi_long do_arch_prctl (CPUX86State *env,int code,abi_ulong addr) +{ +return -ENOSYS ; +} +#else abi_long do_arch_prctl (CPUX86State *env,int code,abi_ulong addr) {abi_long ret =0 ;
@@ -5883,7 +5890,7 @@ abi_long do_arch_prctl(CPUX86State *env, int code, abi_ulong addr) }return ret; } -#endif +#endif /* defined(TARGET_ABI32 */ #endif /* defined(TARGET_I386) */
@@ -10468,11 +10475,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,break ;#ifdef TARGET_NR_arch_prctlcase TARGET_NR_arch_prctl: -#if defined(TARGET_I386 ) && !defined(TARGET_ABI32 )return do_arch_prctl (cpu_env, arg1, arg2); -#else -#error unreachable -#endif #endif #ifdef TARGET_NR_pread64case TARGET_NR_pread64:
Signature · 1 line
2.24.1
[PULL 02/38] linux-user/i386: Split out gen_signal
In reply to Laurent VivierFrom: Richard Henderson <[email protected]>
This is a bit tidier than open-coding the 5 lines necessary to initialize the target_siginfo_t. In addition, this zeros the remaining bytes of the target_siginfo_t, rather than passing in garbage.
Message-Id: <[email protected]>
--- linux-user/i386/cpu_loop.c | 93 ++++++++++++++------------------------ 1 file changed, 33 insertions(+), 60 deletions(-)
linux-user/i386/cpu_loop.c +33 -60
@@ -81,13 +81,23 @@ static void set_idt(int n, unsigned int dpl) }#endif +static void gen_signal (CPUX86State *env,int sig,int code,abi_ptr addr) +{ +target_siginfo_t info = { + .si_signo = sig, + .si_code = code, + ._sifields._sigfault._addr = addr + }; + +queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +} +void cpu_loop (CPUX86State *env) {CPUState *cs =env_cpu (env);int trapnr;abi_ulong pc;abi_ulong ret; -target_siginfo_t info;for (;;) {cpu_exec_start (cs);
@@ -134,70 +144,45 @@ void cpu_loop(CPUX86State *env)#endif case EXCP0B_NOSEG :case EXCP0C_STACK : - info.si_signo =TARGET_SIGBUS ; - info.si_errno =0 ; - info.si_code =TARGET_SI_KERNEL ; - info._sifields._sigfault._addr =0 ; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +gen_signal (env,TARGET_SIGBUS ,TARGET_SI_KERNEL ,0 );break ;case EXCP0D_GPF :/* XXX: potential problem if ABI32 */ #ifndef TARGET_X86_64 if (env->eflags &VM_MASK ) {handle_vm86_fault (env); - } else -#endif - { - info.si_signo =TARGET_SIGSEGV ; - info.si_errno =0 ; - info.si_code =TARGET_SI_KERNEL ; - info._sifields._sigfault._addr =0 ; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +break ; } +#endif +gen_signal (env,TARGET_SIGSEGV ,TARGET_SI_KERNEL ,0 );break ;case EXCP0E_PAGE : - info.si_signo =TARGET_SIGSEGV ; - info.si_errno =0 ; -if (!(env->error_code &1 )) - info.si_code =TARGET_SEGV_MAPERR ; -else - info.si_code =TARGET_SEGV_ACCERR ; - info._sifields._sigfault._addr = env->cr[2 ]; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +gen_signal (env,TARGET_SIGSEGV , + (env->error_code &1 ? +TARGET_SEGV_ACCERR :TARGET_SEGV_MAPERR ), + env->cr[2 ]);break ;case EXCP00_DIVZ :#ifndef TARGET_X86_64 if (env->eflags &VM_MASK ) {handle_vm86_trap (env, trapnr); - } else -#endif - { -/* division by zero */ - info.si_signo =TARGET_SIGFPE ; - info.si_errno =0 ; - info.si_code =TARGET_FPE_INTDIV ; - info._sifields._sigfault._addr = env->eip; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +break ; } +#endif +gen_signal (env,TARGET_SIGFPE ,TARGET_FPE_INTDIV , env->eip);break ;case EXCP01_DB :case EXCP03_INT3 :#ifndef TARGET_X86_64 if (env->eflags &VM_MASK ) {handle_vm86_trap (env, trapnr); - } else +break ; + }#endif - { - info.si_signo =TARGET_SIGTRAP ; - info.si_errno =0 ; -if (trapnr ==EXCP01_DB ) { - info.si_code =TARGET_TRAP_BRKPT ; - info._sifields._sigfault._addr = env->eip; - }else { - info.si_code =TARGET_SI_KERNEL ; - info._sifields._sigfault._addr =0 ; - } -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +if (trapnr ==EXCP01_DB ) { +gen_signal (env,TARGET_SIGTRAP ,TARGET_TRAP_BRKPT , env->eip); + }else { +gen_signal (env,TARGET_SIGTRAP ,TARGET_SI_KERNEL ,0 ); }break ;case EXCP04_INTO :
@@ -205,31 +190,19 @@ void cpu_loop(CPUX86State *env)#ifndef TARGET_X86_64 if (env->eflags &VM_MASK ) {handle_vm86_trap (env, trapnr); - } else -#endif - { - info.si_signo =TARGET_SIGSEGV ; - info.si_errno =0 ; - info.si_code =TARGET_SI_KERNEL ; - info._sifields._sigfault._addr =0 ; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +break ; } +#endif +gen_signal (env,TARGET_SIGSEGV ,TARGET_SI_KERNEL ,0 );break ;case EXCP06_ILLOP : - info.si_signo =TARGET_SIGILL ; - info.si_errno =0 ; - info.si_code =TARGET_ILL_ILLOPN ; - info._sifields._sigfault._addr = env->eip; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +gen_signal (env,TARGET_SIGILL ,TARGET_ILL_ILLOPN , env->eip);break ;case EXCP_INTERRUPT :/* just indicate that signals should be handled asap */ break ;case EXCP_DEBUG : - info.si_signo =TARGET_SIGTRAP ; - info.si_errno =0 ; - info.si_code =TARGET_TRAP_BRKPT ; -queue_signal (env, info.si_signo,QEMU_SI_FAULT , &info); +gen_signal (env,TARGET_SIGTRAP ,TARGET_TRAP_BRKPT ,0 );break ;case EXCP_ATOMIC :cpu_exec_step_atomic (cs);
Signature · 1 line
2.24.1
[PULL 29/38] linux-user, mips: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/mips/kernel/syscalls/syscall_o32.tbl v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Move the offset (4000) from the file to the Makefile.objs to be passed
to syscallhdr.sh
Rename on the fly fadvise64 to fadvise64_64.
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/mips/Makefile.objs | 5 + linux-user/mips/syscall_nr.h | 425 -------------------------------- linux-user/mips/syscall_o32.tbl | 425 ++++++++++++++++++++++++++++++++ linux-user/mips/syscallhdr.sh | 36 +++ 6 files changed, 469 insertions(+), 426 deletions(-) create mode 100644 linux-user/mips/Makefile.objs delete mode 100644 linux-user/mips/syscall_nr.h create mode 100644 linux-user/mips/syscall_o32.tbl create mode 100644 linux-user/mips/syscallhdr.sh
configure +2 -1
@@ -1890,7 +1890,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ - i386 x86_64 ; do + i386 x86_64 mips ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7837,6 +7837,7 @@ case "$target_name" in mttcg="yes" TARGET_ARCH=mips echo "TARGET_ABI_MIPSO32=y" >> $config_target_mak + TARGET_SYSTBL_ABI=o32 ;; mipsn32|mipsn32el) mttcg="yes"
linux-user/Makefile.objs +1 -0
@@ -13,6 +13,7 @@ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_I386) += i386/ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/ +obj-$(TARGET_MIPS) += mips/ obj-$(TARGET_PPC) += ppc/ obj-$(TARGET_PPC64) += ppc/ obj-$(TARGET_S390X) += s390x/
linux-user/mips/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/mips/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/mips/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/mips/syscall_o32.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI) "" 4000,"GEN","$@")
linux-user/mips/syscall_nr.h deleted +0 -425
425 lines not on this page · raw message
linux-user/mips/syscall_o32.tbl new file +425 -0
425 lines not on this page · raw message
linux-user/mips/syscallhdr.sh new file +36 -0
@@ -0,0 +1,36 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_MIPS_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry compat ; do + if [ "$name" = "fadvise64" ] ; then + name="fadvise64_64" + fi + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" + printf "\n" +) > "$out"
Signature · 1 line
2.24.1
[PULL 01/38] target/i386: Renumber EXCP_SYSCALL
In reply to Laurent VivierFrom: Richard Henderson <[email protected]>
We are not short of numbers for EXCP_*. There is no need to confuse things by having EXCP_VMEXIT and EXCP_SYSCALL overlap, even though the former is only used for system mode and the latter is only used for user mode.
Message-Id: <[email protected]>
--- target/i386/cpu.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
target/i386/cpu.h +2 -3
@@ -999,9 +999,8 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];#define EXCP11_ALGN 17#define EXCP12_MCHK 18 -#define EXCP_SYSCALL 0x100/* only happens in user only emulation -for syscall instruction */ -#define EXCP_VMEXIT 0x100 +#define EXCP_VMEXIT 0x100/* only for system emulation */ +#define EXCP_SYSCALL 0x101/* only for user emulation */ /* i386-specific interrupt pending bits. */ #define CPU_INTERRUPT_POLL CPU_INTERRUPT_TGT_EXT_1
Signature · 1 line
2.24.1
[PULL 23/38] linux-user, s390x: remove syscall definitions for !TARGET_S390X
In reply to Laurent VivierWe don't support other 32bit architecture.
Update file to comply with coding style (TAB).
Message-Id: <[email protected]>
--- linux-user/s390x/syscall_nr.h | 313 +++++++++++++--------------------- 1 file changed, 123 insertions(+), 190 deletions(-)
linux-user/s390x/syscall_nr.h +123 -190
@@ -11,7 +11,7 @@#define TARGET_NR_write 4#define TARGET_NR_open 5#define TARGET_NR_close 6 -#define TARGET_NR_restart_syscall 7 +#define TARGET_NR_restart_syscall 7#define TARGET_NR_creat 8#define TARGET_NR_link 9#define TARGET_NR_unlink 10
@@ -108,6 +108,7 @@#define TARGET_NR_personality 136#define TARGET_NR_afs_syscall 137/* Syscall for Andrew File System */ #define TARGET_NR_getdents 141 +#define TARGET_NR_select 142#define TARGET_NR_flock 143#define TARGET_NR_msync 144#define TARGET_NR_readv 145
@@ -147,116 +148,137 @@#define TARGET_NR_capset 185#define TARGET_NR_sigaltstack 186#define TARGET_NR_sendfile 187 -#define TARGET_NR_getpmsg 188 -#define TARGET_NR_putpmsg 189 -#define TARGET_NR_vfork 190 +#define TARGET_NR_getpmsg 188 +#define TARGET_NR_putpmsg 189 +#define TARGET_NR_vfork 190 +#define TARGET_NR_getrlimit 191/* SuS compliant getrlimit */ +#define TARGET_NR_lchown 198 +#define TARGET_NR_getuid 199 +#define TARGET_NR_getgid 200 +#define TARGET_NR_geteuid 201 +#define TARGET_NR_getegid 202 +#define TARGET_NR_setreuid 203 +#define TARGET_NR_setregid 204 +#define TARGET_NR_getgroups 205 +#define TARGET_NR_setgroups 206 +#define TARGET_NR_fchown 207 +#define TARGET_NR_setresuid 208 +#define TARGET_NR_getresuid 209 +#define TARGET_NR_setresgid 210 +#define TARGET_NR_getresgid 211 +#define TARGET_NR_chown 212 +#define TARGET_NR_setuid 213 +#define TARGET_NR_setgid 214 +#define TARGET_NR_setfsuid 215 +#define TARGET_NR_setfsgid 216#define TARGET_NR_pivot_root 217#define TARGET_NR_mincore 218#define TARGET_NR_madvise 219 -#define TARGET_NR_getdents64 220 -#define TARGET_NR_readahead 222 -#define TARGET_NR_setxattr 224 -#define TARGET_NR_lsetxattr 225 -#define TARGET_NR_fsetxattr 226 -#define TARGET_NR_getxattr 227 -#define TARGET_NR_lgetxattr 228 -#define TARGET_NR_fgetxattr 229 -#define TARGET_NR_listxattr 230 -#define TARGET_NR_llistxattr 231 -#define TARGET_NR_flistxattr 232 -#define TARGET_NR_removexattr 233 -#define TARGET_NR_lremovexattr 234 -#define TARGET_NR_fremovexattr 235 -#define TARGET_NR_gettid 236 -#define TARGET_NR_tkill 237 -#define TARGET_NR_futex 238 -#define TARGET_NR_sched_setaffinity 239 -#define TARGET_NR_sched_getaffinity 240 -#define TARGET_NR_tgkill 241 +#define TARGET_NR_getdents64 220 +#define TARGET_NR_readahead 222 +#define TARGET_NR_setxattr 224 +#define TARGET_NR_lsetxattr 225 +#define TARGET_NR_fsetxattr 226 +#define TARGET_NR_getxattr 227 +#define TARGET_NR_lgetxattr 228 +#define TARGET_NR_fgetxattr 229 +#define TARGET_NR_listxattr 230 +#define TARGET_NR_llistxattr 231 +#define TARGET_NR_flistxattr 232 +#define TARGET_NR_removexattr 233 +#define TARGET_NR_lremovexattr 234 +#define TARGET_NR_fremovexattr 235 +#define TARGET_NR_gettid 236 +#define TARGET_NR_tkill 237 +#define TARGET_NR_futex 238 +#define TARGET_NR_sched_setaffinity 239 +#define TARGET_NR_sched_getaffinity 240 +#define TARGET_NR_tgkill 241/* Number 242 is reserved for tux */ -#define TARGET_NR_io_setup 243 -#define TARGET_NR_io_destroy 244 -#define TARGET_NR_io_getevents 245 -#define TARGET_NR_io_submit 246 -#define TARGET_NR_io_cancel 247 -#define TARGET_NR_exit_group 248 -#define TARGET_NR_epoll_create 249 -#define TARGET_NR_epoll_ctl 250 -#define TARGET_NR_epoll_wait 251 -#define TARGET_NR_set_tid_address 252 -#define TARGET_NR_fadvise64 253 -#define TARGET_NR_timer_create 254 -#define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) -#define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) -#define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) -#define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) -#define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) -#define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) -#define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) -#define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) +#define TARGET_NR_io_setup 243 +#define TARGET_NR_io_destroy 244 +#define TARGET_NR_io_getevents 245 +#define TARGET_NR_io_submit 246 +#define TARGET_NR_io_cancel 247 +#define TARGET_NR_exit_group 248 +#define TARGET_NR_epoll_create 249 +#define TARGET_NR_epoll_ctl 250 +#define TARGET_NR_epoll_wait 251 +#define TARGET_NR_set_tid_address 252 +#define TARGET_NR_fadvise64 253 +#define TARGET_NR_timer_create 254 +#define TARGET_NR_timer_settime (TARGET_NR_timer_create + 1) +#define TARGET_NR_timer_gettime (TARGET_NR_timer_create + 2) +#define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create + 3) +#define TARGET_NR_timer_delete (TARGET_NR_timer_create + 4) +#define TARGET_NR_clock_settime (TARGET_NR_timer_create + 5) +#define TARGET_NR_clock_gettime (TARGET_NR_timer_create + 6) +#define TARGET_NR_clock_getres (TARGET_NR_timer_create + 7) +#define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create + 8)/* Number 263 is reserved for vserver */ -#define TARGET_NR_statfs64 265 -#define TARGET_NR_fstatfs64 266 -#define TARGET_NR_remap_file_pages 267 +#define TARGET_NR_statfs64 265 +#define TARGET_NR_fstatfs64 266 +#define TARGET_NR_remap_file_pages 267/* Number 268 is reserved for new sys_mbind */ /* Number 269 is reserved for new sys_get_mempolicy */ /* Number 270 is reserved for new sys_set_mempolicy */ -#define TARGET_NR_mq_open 271 -#define TARGET_NR_mq_unlink 272 -#define TARGET_NR_mq_timedsend 273 -#define TARGET_NR_mq_timedreceive 274 -#define TARGET_NR_mq_notify 275 -#define TARGET_NR_mq_getsetattr 276 -#define TARGET_NR_kexec_load 277 -#define TARGET_NR_add_key 278 -#define TARGET_NR_request_key 279 -#define TARGET_NR_keyctl 280 -#define TARGET_NR_waitid 281 -#define TARGET_NR_ioprio_set 282 -#define TARGET_NR_ioprio_get 283 -#define TARGET_NR_inotify_init 284 -#define TARGET_NR_inotify_add_watch 285 -#define TARGET_NR_inotify_rm_watch 286 +#define TARGET_NR_mq_open 271 +#define TARGET_NR_mq_unlink 272 +#define TARGET_NR_mq_timedsend 273 +#define TARGET_NR_mq_timedreceive 274 +#define TARGET_NR_mq_notify 275 +#define TARGET_NR_mq_getsetattr 276 +#define TARGET_NR_kexec_load 277 +#define TARGET_NR_add_key 278 +#define TARGET_NR_request_key 279 +#define TARGET_NR_keyctl 280 +#define TARGET_NR_waitid 281 +#define TARGET_NR_ioprio_set 282 +#define TARGET_NR_ioprio_get 283 +#define TARGET_NR_inotify_init 284 +#define TARGET_NR_inotify_add_watch 285 +#define TARGET_NR_inotify_rm_watch 286/* Number 287 is reserved for new sys_migrate_pages */ -#define TARGET_NR_openat 288 -#define TARGET_NR_mkdirat 289 -#define TARGET_NR_mknodat 290 -#define TARGET_NR_fchownat 291 -#define TARGET_NR_futimesat 292 -#define TARGET_NR_unlinkat 294 -#define TARGET_NR_renameat 295 -#define TARGET_NR_linkat 296 -#define TARGET_NR_symlinkat 297 -#define TARGET_NR_readlinkat 298 -#define TARGET_NR_fchmodat 299 -#define TARGET_NR_faccessat 300 -#define TARGET_NR_pselect6 301 -#define TARGET_NR_ppoll 302 -#define TARGET_NR_unshare 303 -#define TARGET_NR_set_robust_list 304 -#define TARGET_NR_get_robust_list 305 -#define TARGET_NR_splice 306 -#define TARGET_NR_sync_file_range 307 -#define TARGET_NR_tee 308 -#define TARGET_NR_vmsplice 309 +#define TARGET_NR_openat 288 +#define TARGET_NR_mkdirat 289 +#define TARGET_NR_mknodat 290 +#define TARGET_NR_fchownat 291 +#define TARGET_NR_futimesat 292 +#define TARGET_NR_newfstatat 293 +#define TARGET_NR_unlinkat 294 +#define TARGET_NR_renameat 295 +#define TARGET_NR_linkat 296 +#define TARGET_NR_symlinkat 297 +#define TARGET_NR_readlinkat 298 +#define TARGET_NR_fchmodat 299 +#define TARGET_NR_faccessat 300 +#define TARGET_NR_pselect6 301 +#define TARGET_NR_ppoll 302 +#define TARGET_NR_unshare 303 +#define TARGET_NR_set_robust_list 304 +#define TARGET_NR_get_robust_list 305 +#define TARGET_NR_splice 306 +#define TARGET_NR_sync_file_range 307 +#define TARGET_NR_tee 308 +#define TARGET_NR_vmsplice 309/* Number 310 is reserved for new sys_move_pages */ -#define TARGET_NR_getcpu 311 -#define TARGET_NR_epoll_pwait 312 -#define TARGET_NR_utimes 313 -#define TARGET_NR_fallocate 314 -#define TARGET_NR_utimensat 315 -#define TARGET_NR_signalfd 316 -#define TARGET_NR_timerfd 317 -#define TARGET_NR_eventfd 318 -#define TARGET_NR_timerfd_create 319 -#define TARGET_NR_timerfd_settime 320 -#define TARGET_NR_timerfd_gettime 321 -#define TARGET_NR_signalfd4 322 -#define TARGET_NR_eventfd2 323 -#define TARGET_NR_inotify_init1 324 -#define TARGET_NR_pipe2 325 -#define TARGET_NR_dup3 326 -#define TARGET_NR_epoll_create1 327 +#define TARGET_NR_getcpu 311 +#define TARGET_NR_epoll_pwait 312 +#define TARGET_NR_utimes 313 +#define TARGET_NR_fallocate 314 +#define TARGET_NR_utimensat 315 +#define TARGET_NR_signalfd 316 +#define TARGET_NR_timerfd 317 +#define TARGET_NR_eventfd 318 +#define TARGET_NR_timerfd_create 319 +#define TARGET_NR_timerfd_settime 320 +#define TARGET_NR_timerfd_gettime 321 +#define TARGET_NR_signalfd4 322 +#define TARGET_NR_eventfd2 323 +#define TARGET_NR_inotify_init1 324 +#define TARGET_NR_pipe2 325 +#define TARGET_NR_dup3 326 +#define TARGET_NR_epoll_create1 327#define TARGET_NR_preadv 328#define TARGET_NR_pwritev 329#define TARGET_NR_rt_tgsigqueueinfo 330
@@ -305,94 +327,5 @@#define TARGET_NR_shutdown 373#define TARGET_NR_mlock2 374 -/* -* There are some system calls that are not present on 64 bit, some -* have a different name although they do the same (e.g. TARGET_NR_chown32 -* is TARGET_NR_chown on 64 bit). -*/ -#ifndef TARGET_S390X - -#define TARGET_NR_time 13 -#define TARGET_NR_lchown 16 -#define TARGET_NR_setuid 23 -#define TARGET_NR_getuid 24 -#define TARGET_NR_stime 25 -#define TARGET_NR_setgid 46 -#define TARGET_NR_getgid 47 -#define TARGET_NR_geteuid 49 -#define TARGET_NR_getegid 50 -#define TARGET_NR_setreuid 70 -#define TARGET_NR_setregid 71 -#define TARGET_NR_getrlimit 76 -#define TARGET_NR_getgroups 80 -#define TARGET_NR_setgroups 81 -#define TARGET_NR_fchown 95 -#define TARGET_NR_ioperm 101 -#define TARGET_NR_setfsuid 138 -#define TARGET_NR_setfsgid 139 -#define TARGET_NR__llseek 140 -#define TARGET_NR__newselect 142 -#define TARGET_NR_setresuid 164 -#define TARGET_NR_getresuid 165 -#define TARGET_NR_setresgid 170 -#define TARGET_NR_getresgid 171 -#define TARGET_NR_chown 182 -#define TARGET_NR_ugetrlimit 191/* SuS compliant getrlimit */ -#define TARGET_NR_mmap2 192 -#define TARGET_NR_truncate64 193 -#define TARGET_NR_ftruncate64 194 -#define TARGET_NR_stat64 195 -#define TARGET_NR_lstat64 196 -#define TARGET_NR_fstat64 197 -#define TARGET_NR_lchown32 198 -#define TARGET_NR_getuid32 199 -#define TARGET_NR_getgid32 200 -#define TARGET_NR_geteuid32 201 -#define TARGET_NR_getegid32 202 -#define TARGET_NR_setreuid32 203 -#define TARGET_NR_setregid32 204 -#define TARGET_NR_getgroups32 205 -#define TARGET_NR_setgroups32 206 -#define TARGET_NR_fchown32 207 -#define TARGET_NR_setresuid32 208 -#define TARGET_NR_getresuid32 209 -#define TARGET_NR_setresgid32 210 -#define TARGET_NR_getresgid32 211 -#define TARGET_NR_chown32 212 -#define TARGET_NR_setuid32 213 -#define TARGET_NR_setgid32 214 -#define TARGET_NR_setfsuid32 215 -#define TARGET_NR_setfsgid32 216 -#define TARGET_NR_fcntl64 221 -#define TARGET_NR_sendfile64 223 -#define TARGET_NR_fadvise64_64 264 -#define TARGET_NR_fstatat64 293 - -#else - -#define TARGET_NR_select 142 -#define TARGET_NR_getrlimit 191/* SuS compliant getrlimit */ -#define TARGET_NR_lchown 198 -#define TARGET_NR_getuid 199 -#define TARGET_NR_getgid 200 -#define TARGET_NR_geteuid 201 -#define TARGET_NR_getegid 202 -#define TARGET_NR_setreuid 203 -#define TARGET_NR_setregid 204 -#define TARGET_NR_getgroups 205 -#define TARGET_NR_setgroups 206 -#define TARGET_NR_fchown 207 -#define TARGET_NR_setresuid 208 -#define TARGET_NR_getresuid 209 -#define TARGET_NR_setresgid 210 -#define TARGET_NR_getresgid 211 -#define TARGET_NR_chown 212 -#define TARGET_NR_setuid 213 -#define TARGET_NR_setgid 214 -#define TARGET_NR_setfsuid 215 -#define TARGET_NR_setfsgid 216 -#define TARGET_NR_newfstatat 293 - -#endif #endif
Signature · 1 line
2.24.1
[PULL 11/38] linux-user/syscall: Add support for clock_gettime64/clock_settime64
In reply to Laurent VivierFrom: Alistair Francis <[email protected]>
Add support for the clock_gettime64/clock_settime64 syscalls.
If your host is 64-bit or is 32-bit with the *_time64 syscall then the timespec will correctly be a 64-bit time_t. Otherwise the host will return a 32-bit time_t which will be rounded to 64-bits. This will be incorrect after y2038.
Message-Id: <4a7fd05532400d10aa0f684c9043e2ac7b34d91c.1584051142.git.alistair.francis@wdc.com>
--- linux-user/syscall.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
linux-user/syscall.c +39 -0
@@ -1229,6 +1229,22 @@ static inline abi_long target_to_host_timespec(struct timespec *host_ts, }#endif +#if defined(TARGET_NR_clock_settime64) +static inline abi_long target_to_host_timespec64 (struct timespec *host_ts, +abi_ulong target_addr) +{ +struct target__kernel_timespec *target_ts; + +if (!lock_user_struct (VERIFY_READ , target_ts, target_addr,1 )) { +return -TARGET_EFAULT ; + } +__get_user (host_ts->tv_sec, &target_ts->tv_sec); +__get_user (host_ts->tv_nsec, &target_ts->tv_nsec); +unlock_user_struct (target_ts, target_addr,0 ); +return 0 ; +} +#endif +static inline abi_long host_to_target_timespec (abi_ulong target_addr,struct timespec *host_ts) {
@@ -11491,6 +11507,18 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,return ret; }#endif +#ifdef TARGET_NR_clock_settime64 +case TARGET_NR_clock_settime64: + { +struct timespec ts; + + ret =target_to_host_timespec64 (&ts, arg2); +if (!is_error (ret)) { + ret =get_errno (clock_settime (arg1, &ts)); + } +return ret; + } +#endif #ifdef TARGET_NR_clock_gettimecase TARGET_NR_clock_gettime: {
@@ -11502,6 +11530,17 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,return ret; }#endif +#ifdef TARGET_NR_clock_gettime64 +case TARGET_NR_clock_gettime64: + { +struct timespec ts; + ret =get_errno (clock_gettime (arg1, &ts)); +if (!is_error (ret)) { + ret =host_to_target_timespec64 (arg2, &ts); + } +return ret; + } +#endif #ifdef TARGET_NR_clock_getrescase TARGET_NR_clock_getres: {
Signature · 1 line
2.24.1
[PULL 37/38] linux-user, nios2: sync syscall numbers with kernel v5.5
In reply to Laurent VivierUse helper script scripts/gensyscalls.sh to generate the file.
This adds TARGET_NR_llseek that was missing and remove syscalls 1024 to 1079.
Add new syscalls from 288 (pkey_mprotect) to 434 (pidfd_open)
Message-Id: <[email protected]>
--- linux-user/nios2/syscall_nr.h | 650 +++++++++++++++++----------------- 1 file changed, 320 insertions(+), 330 deletions(-)
linux-user/nios2/syscall_nr.h +320 -330
@@ -1,334 +1,324 @@ +/* +* This file contains the system call numbers. +* Do not modify. +* This file is generated by scripts/gensyscalls.sh +*/ #ifndef LINUX_USER_NIOS2_SYSCALL_NR_H #define LINUX_USER_NIOS2_SYSCALL_NR_H -#define TARGET_NR_io_setup 0 -#define TARGET_NR_io_destroy 1 -#define TARGET_NR_io_submit 2 -#define TARGET_NR_io_cancel 3 -#define TARGET_NR_io_getevents 4 -#define TARGET_NR_setxattr 5 -#define TARGET_NR_lsetxattr 6 -#define TARGET_NR_fsetxattr 7 -#define TARGET_NR_getxattr 8 -#define TARGET_NR_lgetxattr 9 -#define TARGET_NR_fgetxattr 10 -#define TARGET_NR_listxattr 11 -#define TARGET_NR_llistxattr 12 -#define TARGET_NR_flistxattr 13 -#define TARGET_NR_removexattr 14 -#define TARGET_NR_lremovexattr 15 -#define TARGET_NR_fremovexattr 16 -#define TARGET_NR_getcwd 17 -#define TARGET_NR_lookup_dcookie 18 -#define TARGET_NR_eventfd2 19 -#define TARGET_NR_epoll_create1 20 -#define TARGET_NR_epoll_ctl 21 -#define TARGET_NR_epoll_pwait 22 -#define TARGET_NR_dup 23 -#define TARGET_NR_dup3 24 -#define TARGET_NR_fcntl64 25 -#define TARGET_NR_inotify_init1 26 -#define TARGET_NR_inotify_add_watch 27 -#define TARGET_NR_inotify_rm_watch 28 -#define TARGET_NR_ioctl 29 -#define TARGET_NR_ioprio_set 30 -#define TARGET_NR_ioprio_get 31 -#define TARGET_NR_flock 32 -#define TARGET_NR_mknodat 33 -#define TARGET_NR_mkdirat 34 -#define TARGET_NR_unlinkat 35 -#define TARGET_NR_symlinkat 36 -#define TARGET_NR_linkat 37 -#define TARGET_NR_renameat 38 -#define TARGET_NR_umount2 39 -#define TARGET_NR_mount 40 -#define TARGET_NR_pivot_root 41 -#define TARGET_NR_nfsservctl 42 -#define TARGET_NR_statfs64 43 -#define TARGET_NR_fstatfs64 44 -#define TARGET_NR_truncate64 45 -#define TARGET_NR_ftruncate64 46 -#define TARGET_NR_fallocate 47 -#define TARGET_NR_faccessat 48 -#define TARGET_NR_chdir 49 -#define TARGET_NR_fchdir 50 -#define TARGET_NR_chroot 51 -#define TARGET_NR_fchmod 52 -#define TARGET_NR_fchmodat 53 -#define TARGET_NR_fchownat 54 -#define TARGET_NR_fchown 55 -#define TARGET_NR_openat 56 -#define TARGET_NR_close 57 -#define TARGET_NR_vhangup 58 -#define TARGET_NR_pipe2 59 -#define TARGET_NR_quotactl 60 -#define TARGET_NR_getdents64 61 -#define TARGET_NR_read 63 -#define TARGET_NR_write 64 -#define TARGET_NR_readv 65 -#define TARGET_NR_writev 66 -#define TARGET_NR_pread64 67 -#define TARGET_NR_pwrite64 68 -#define TARGET_NR_preadv 69 -#define TARGET_NR_pwritev 70 -#define TARGET_NR_sendfile64 71 -#define TARGET_NR_pselect6 72 -#define TARGET_NR_ppoll 73 -#define TARGET_NR_signalfd4 74 -#define TARGET_NR_vmsplice 75 -#define TARGET_NR_splice 76 -#define TARGET_NR_tee 77 -#define TARGET_NR_readlinkat 78 -#define TARGET_NR_fstatat64 79 -#define TARGET_NR_fstat64 80 -#define TARGET_NR_sync 81 -#define TARGET_NR_fsync 82 -#define TARGET_NR_fdatasync 83 -#define TARGET_NR_sync_file_range 84 -#define TARGET_NR_timerfd_create 85 -#define TARGET_NR_timerfd_settime 86 -#define TARGET_NR_timerfd_gettime 87 -#define TARGET_NR_utimensat 88 -#define TARGET_NR_acct 89 -#define TARGET_NR_capget 90 -#define TARGET_NR_capset 91 -#define TARGET_NR_personality 92 -#define TARGET_NR_exit 93 -#define TARGET_NR_exit_group 94 -#define TARGET_NR_waitid 95 -#define TARGET_NR_set_tid_address 96 -#define TARGET_NR_unshare 97 -#define TARGET_NR_futex 98 -#define TARGET_NR_set_robust_list 99 -#define TARGET_NR_get_robust_list 100 -#define TARGET_NR_nanosleep 101 -#define TARGET_NR_getitimer 102 -#define TARGET_NR_setitimer 103 -#define TARGET_NR_kexec_load 104 -#define TARGET_NR_init_module 105 -#define TARGET_NR_delete_module 106 -#define TARGET_NR_timer_create 107 -#define TARGET_NR_timer_gettime 108 -#define TARGET_NR_timer_getoverrun 109 -#define TARGET_NR_timer_settime 110 -#define TARGET_NR_timer_delete 111 -#define TARGET_NR_clock_settime 112 -#define TARGET_NR_clock_gettime 113 -#define TARGET_NR_clock_getres 114 -#define TARGET_NR_clock_nanosleep 115 -#define TARGET_NR_syslog 116 -#define TARGET_NR_ptrace 117 -#define TARGET_NR_sched_setparam 118 -#define TARGET_NR_sched_setscheduler 119 -#define TARGET_NR_sched_getscheduler 120 -#define TARGET_NR_sched_getparam 121 -#define TARGET_NR_sched_setaffinity 122 -#define TARGET_NR_sched_getaffinity 123 -#define TARGET_NR_sched_yield 124 -#define TARGET_NR_sched_get_priority_max 125 -#define TARGET_NR_sched_get_priority_min 126 -#define TARGET_NR_sched_rr_get_interval 127 -#define TARGET_NR_restart_syscall 128 -#define TARGET_NR_kill 129 -#define TARGET_NR_tkill 130 -#define TARGET_NR_tgkill 131 -#define TARGET_NR_sigaltstack 132 -#define TARGET_NR_rt_sigsuspend 133 -#define TARGET_NR_rt_sigaction 134 -#define TARGET_NR_rt_sigprocmask 135 -#define TARGET_NR_rt_sigpending 136 -#define TARGET_NR_rt_sigtimedwait 137 -#define TARGET_NR_rt_sigqueueinfo 138 -#define TARGET_NR_rt_sigreturn 139 -#define TARGET_NR_setpriority 140 -#define TARGET_NR_getpriority 141 -#define TARGET_NR_reboot 142 -#define TARGET_NR_setregid 143 -#define TARGET_NR_setgid 144 -#define TARGET_NR_setreuid 145 -#define TARGET_NR_setuid 146 -#define TARGET_NR_setresuid 147 -#define TARGET_NR_getresuid 148 -#define TARGET_NR_setresgid 149 -#define TARGET_NR_getresgid 150 -#define TARGET_NR_setfsuid 151 -#define TARGET_NR_setfsgid 152 -#define TARGET_NR_times 153 -#define TARGET_NR_setpgid 154 -#define TARGET_NR_getpgid 155 -#define TARGET_NR_getsid 156 -#define TARGET_NR_setsid 157 -#define TARGET_NR_getgroups 158 -#define TARGET_NR_setgroups 159 -#define TARGET_NR_uname 160 -#define TARGET_NR_sethostname 161 -#define TARGET_NR_setdomainname 162 -#define TARGET_NR_getrlimit 163 -#define TARGET_NR_setrlimit 164 -#define TARGET_NR_getrusage 165 -#define TARGET_NR_umask 166 -#define TARGET_NR_prctl 167 -#define TARGET_NR_getcpu 168 -#define TARGET_NR_gettimeofday 169 -#define TARGET_NR_settimeofday 170 -#define TARGET_NR_adjtimex 171 -#define TARGET_NR_getpid 172 -#define TARGET_NR_getppid 173 -#define TARGET_NR_getuid 174 -#define TARGET_NR_geteuid 175 -#define TARGET_NR_getgid 176 -#define TARGET_NR_getegid 177 -#define TARGET_NR_gettid 178 -#define TARGET_NR_sysinfo 179 -#define TARGET_NR_mq_open 180 -#define TARGET_NR_mq_unlink 181 -#define TARGET_NR_mq_timedsend 182 -#define TARGET_NR_mq_timedreceive 183 -#define TARGET_NR_mq_notify 184 -#define TARGET_NR_mq_getsetattr 185 -#define TARGET_NR_msgget 186 -#define TARGET_NR_msgctl 187 -#define TARGET_NR_msgrcv 188 -#define TARGET_NR_msgsnd 189 -#define TARGET_NR_semget 190 -#define TARGET_NR_semctl 191 -#define TARGET_NR_semtimedop 192 -#define TARGET_NR_semop 193 -#define TARGET_NR_shmget 194 -#define TARGET_NR_shmctl 195 -#define TARGET_NR_shmat 196 -#define TARGET_NR_shmdt 197 -#define TARGET_NR_socket 198 -#define TARGET_NR_socketpair 199 -#define TARGET_NR_bind 200 -#define TARGET_NR_listen 201 -#define TARGET_NR_accept 202 -#define TARGET_NR_connect 203 -#define TARGET_NR_getsockname 204 -#define TARGET_NR_getpeername 205 -#define TARGET_NR_sendto 206 -#define TARGET_NR_recvfrom 207 -#define TARGET_NR_setsockopt 208 -#define TARGET_NR_getsockopt 209 -#define TARGET_NR_shutdown 210 -#define TARGET_NR_sendmsg 211 -#define TARGET_NR_recvmsg 212 -#define TARGET_NR_readahead 213 -#define TARGET_NR_brk 214 -#define TARGET_NR_munmap 215 -#define TARGET_NR_mremap 216 -#define TARGET_NR_add_key 217 -#define TARGET_NR_request_key 218 -#define TARGET_NR_keyctl 219 -#define TARGET_NR_clone 220 -#define TARGET_NR_execve 221 -#define TARGET_NR_mmap2 222 -#define TARGET_NR_fadvise64_64 223 -#define TARGET_NR_swapon 224 -#define TARGET_NR_swapoff 225 -#define TARGET_NR_mprotect 226 -#define TARGET_NR_msync 227 -#define TARGET_NR_mlock 228 -#define TARGET_NR_munlock 229 -#define TARGET_NR_mlockall 230 -#define TARGET_NR_munlockall 231 -#define TARGET_NR_mincore 232 -#define TARGET_NR_madvise 233 -#define TARGET_NR_remap_file_pages 234 -#define TARGET_NR_mbind 235 -#define TARGET_NR_get_mempolicy 236 -#define TARGET_NR_set_mempolicy 237 -#define TARGET_NR_migrate_pages 238 -#define TARGET_NR_move_pages 239 -#define TARGET_NR_rt_tgsigqueueinfo 240 -#define TARGET_NR_perf_event_open 241 -#define TARGET_NR_accept4 242 -#define TARGET_NR_recvmmsg 243 -#define TARGET_NR_cacheflush 244 -#define TARGET_NR_arch_specific_syscall 244 -#define TARGET_NR_wait4 260 -#define TARGET_NR_prlimit64 261 -#define TARGET_NR_fanotify_init 262 -#define TARGET_NR_fanotify_mark 263 -#define TARGET_NR_name_to_handle_at 264 -#define TARGET_NR_open_by_handle_at 265 -#define TARGET_NR_clock_adjtime 266 -#define TARGET_NR_syncfs 267 -#define TARGET_NR_setns 268 -#define TARGET_NR_sendmmsg 269 -#define TARGET_NR_process_vm_readv 270 -#define TARGET_NR_process_vm_writev 271 -#define TARGET_NR_kcmp 272 -#define TARGET_NR_finit_module 273 -#define TARGET_NR_sched_setattr 274 -#define TARGET_NR_sched_getattr 275 -#define TARGET_NR_renameat2 276 -#define TARGET_NR_seccomp 277 -#define TARGET_NR_getrandom 278 -#define TARGET_NR_memfd_create 279 -#define TARGET_NR_bpf 280 -#define TARGET_NR_execveat 281 -#define TARGET_NR_userfaultfd 282 -#define TARGET_NR_membarrier 283 -#define TARGET_NR_mlock2 284 -#define TARGET_NR_copy_file_range 285 -#define TARGET_NR_preadv2 286 -#define TARGET_NR_pwritev2 287 -#define TARGET_NR_open 1024 -#define TARGET_NR_link 1025 -#define TARGET_NR_unlink 1026 -#define TARGET_NR_mknod 1027 -#define TARGET_NR_chmod 1028 -#define TARGET_NR_chown 1029 -#define TARGET_NR_mkdir 1030 -#define TARGET_NR_rmdir 1031 -#define TARGET_NR_lchown 1032 -#define TARGET_NR_access 1033 -#define TARGET_NR_rename 1034 -#define TARGET_NR_readlink 1035 -#define TARGET_NR_symlink 1036 -#define TARGET_NR_utimes 1037 -#define TARGET_NR_3264_stat 1038 -#define TARGET_NR_3264_lstat 1039 -#define TARGET_NR_pipe 1040 -#define TARGET_NR_dup2 1041 -#define TARGET_NR_epoll_create 1042 -#define TARGET_NR_inotify_init 1043 -#define TARGET_NR_eventfd 1044 -#define TARGET_NR_signalfd 1045 -#define TARGET_NR_sendfile 1046 -#define TARGET_NR_ftruncate 1047 -#define TARGET_NR_truncate 1048 -#define TARGET_NR_stat 1049 -#define TARGET_NR_lstat 1050 -#define TARGET_NR_fstat 1051 -#define TARGET_NR_fcntl 1052 -#define TARGET_NR_fadvise64 1053 -#define TARGET_NR_newfstatat 1054 -#define TARGET_NR_fstatfs 1055 -#define TARGET_NR_statfs 1056 -#define TARGET_NR_lseek 1057 -#define TARGET_NR_mmap 1058 -#define TARGET_NR_alarm 1059 -#define TARGET_NR_getpgrp 1060 -#define TARGET_NR_pause 1061 -#define TARGET_NR_time 1062 -#define TARGET_NR_utime 1063 -#define TARGET_NR_creat 1064 -#define TARGET_NR_getdents 1065 -#define TARGET_NR_futimesat 1066 -#define TARGET_NR_select 1067 -#define TARGET_NR_poll 1068 -#define TARGET_NR_epoll_wait 1069 -#define TARGET_NR_ustat 1070 -#define TARGET_NR_vfork 1071 -#define TARGET_NR_oldwait4 1072 -#define TARGET_NR_recv 1073 -#define TARGET_NR_send 1074 -#define TARGET_NR_bdflush 1075 -#define TARGET_NR_umount 1076 -#define TARGET_NR_uselib 1077 -#define TARGET_NR__sysctl 1078 -#define TARGET_NR_fork 1079 +#define TARGET_NR_cacheflush (TARGET_NR_arch_specific_syscall) +#define TARGET_NR_io_setup 0 +#define TARGET_NR_io_destroy 1 +#define TARGET_NR_io_submit 2 +#define TARGET_NR_io_cancel 3 +#define TARGET_NR_io_getevents 4 +#define TARGET_NR_setxattr 5 +#define TARGET_NR_lsetxattr 6 +#define TARGET_NR_fsetxattr 7 +#define TARGET_NR_getxattr 8 +#define TARGET_NR_lgetxattr 9 +#define TARGET_NR_fgetxattr 10 +#define TARGET_NR_listxattr 11 +#define TARGET_NR_llistxattr 12 +#define TARGET_NR_flistxattr 13 +#define TARGET_NR_removexattr 14 +#define TARGET_NR_lremovexattr 15 +#define TARGET_NR_fremovexattr 16 +#define TARGET_NR_getcwd 17 +#define TARGET_NR_lookup_dcookie 18 +#define TARGET_NR_eventfd2 19 +#define TARGET_NR_epoll_create1 20 +#define TARGET_NR_epoll_ctl 21 +#define TARGET_NR_epoll_pwait 22 +#define TARGET_NR_dup 23 +#define TARGET_NR_dup3 24 +#define TARGET_NR_fcntl64 25 +#define TARGET_NR_inotify_init1 26 +#define TARGET_NR_inotify_add_watch 27 +#define TARGET_NR_inotify_rm_watch 28 +#define TARGET_NR_ioctl 29 +#define TARGET_NR_ioprio_set 30 +#define TARGET_NR_ioprio_get 31 +#define TARGET_NR_flock 32 +#define TARGET_NR_mknodat 33 +#define TARGET_NR_mkdirat 34 +#define TARGET_NR_unlinkat 35 +#define TARGET_NR_symlinkat 36 +#define TARGET_NR_linkat 37 +#define TARGET_NR_renameat 38 +#define TARGET_NR_umount2 39 +#define TARGET_NR_mount 40 +#define TARGET_NR_pivot_root 41 +#define TARGET_NR_nfsservctl 42 +#define TARGET_NR_statfs64 43 +#define TARGET_NR_fstatfs64 44 +#define TARGET_NR_truncate64 45 +#define TARGET_NR_ftruncate64 46 +#define TARGET_NR_fallocate 47 +#define TARGET_NR_faccessat 48 +#define TARGET_NR_chdir 49 +#define TARGET_NR_fchdir 50 +#define TARGET_NR_chroot 51 +#define TARGET_NR_fchmod 52 +#define TARGET_NR_fchmodat 53 +#define TARGET_NR_fchownat 54 +#define TARGET_NR_fchown 55 +#define TARGET_NR_openat 56 +#define TARGET_NR_close 57 +#define TARGET_NR_vhangup 58 +#define TARGET_NR_pipe2 59 +#define TARGET_NR_quotactl 60 +#define TARGET_NR_getdents64 61 +#define TARGET_NR_llseek 62 +#define TARGET_NR_read 63 +#define TARGET_NR_write 64 +#define TARGET_NR_readv 65 +#define TARGET_NR_writev 66 +#define TARGET_NR_pread64 67 +#define TARGET_NR_pwrite64 68 +#define TARGET_NR_preadv 69 +#define TARGET_NR_pwritev 70 +#define TARGET_NR_sendfile64 71 +#define TARGET_NR_pselect6 72 +#define TARGET_NR_ppoll 73 +#define TARGET_NR_signalfd4 74 +#define TARGET_NR_vmsplice 75 +#define TARGET_NR_splice 76 +#define TARGET_NR_tee 77 +#define TARGET_NR_readlinkat 78 +#define TARGET_NR_fstatat64 79 +#define TARGET_NR_fstat64 80 +#define TARGET_NR_sync 81 +#define TARGET_NR_fsync 82 +#define TARGET_NR_fdatasync 83 +#define TARGET_NR_sync_file_range 84 +#define TARGET_NR_timerfd_create 85 +#define TARGET_NR_timerfd_settime 86 +#define TARGET_NR_timerfd_gettime 87 +#define TARGET_NR_utimensat 88 +#define TARGET_NR_acct 89 +#define TARGET_NR_capget 90 +#define TARGET_NR_capset 91 +#define TARGET_NR_personality 92 +#define TARGET_NR_exit 93 +#define TARGET_NR_exit_group 94 +#define TARGET_NR_waitid 95 +#define TARGET_NR_set_tid_address 96 +#define TARGET_NR_unshare 97 +#define TARGET_NR_futex 98 +#define TARGET_NR_set_robust_list 99 +#define TARGET_NR_get_robust_list 100 +#define TARGET_NR_nanosleep 101 +#define TARGET_NR_getitimer 102 +#define TARGET_NR_setitimer 103 +#define TARGET_NR_kexec_load 104 +#define TARGET_NR_init_module 105 +#define TARGET_NR_delete_module 106 +#define TARGET_NR_timer_create 107 +#define TARGET_NR_timer_gettime 108 +#define TARGET_NR_timer_getoverrun 109 +#define TARGET_NR_timer_settime 110 +#define TARGET_NR_timer_delete 111 +#define TARGET_NR_clock_settime 112 +#define TARGET_NR_clock_gettime 113 +#define TARGET_NR_clock_getres 114 +#define TARGET_NR_clock_nanosleep 115 +#define TARGET_NR_syslog 116 +#define TARGET_NR_ptrace 117 +#define TARGET_NR_sched_setparam 118 +#define TARGET_NR_sched_setscheduler 119 +#define TARGET_NR_sched_getscheduler 120 +#define TARGET_NR_sched_getparam 121 +#define TARGET_NR_sched_setaffinity 122 +#define TARGET_NR_sched_getaffinity 123 +#define TARGET_NR_sched_yield 124 +#define TARGET_NR_sched_get_priority_max 125 +#define TARGET_NR_sched_get_priority_min 126 +#define TARGET_NR_sched_rr_get_interval 127 +#define TARGET_NR_restart_syscall 128 +#define TARGET_NR_kill 129 +#define TARGET_NR_tkill 130 +#define TARGET_NR_tgkill 131 +#define TARGET_NR_sigaltstack 132 +#define TARGET_NR_rt_sigsuspend 133 +#define TARGET_NR_rt_sigaction 134 +#define TARGET_NR_rt_sigprocmask 135 +#define TARGET_NR_rt_sigpending 136 +#define TARGET_NR_rt_sigtimedwait 137 +#define TARGET_NR_rt_sigqueueinfo 138 +#define TARGET_NR_rt_sigreturn 139 +#define TARGET_NR_setpriority 140 +#define TARGET_NR_getpriority 141 +#define TARGET_NR_reboot 142 +#define TARGET_NR_setregid 143 +#define TARGET_NR_setgid 144 +#define TARGET_NR_setreuid 145 +#define TARGET_NR_setuid 146 +#define TARGET_NR_setresuid 147 +#define TARGET_NR_getresuid 148 +#define TARGET_NR_setresgid 149 +#define TARGET_NR_getresgid 150 +#define TARGET_NR_setfsuid 151 +#define TARGET_NR_setfsgid 152 +#define TARGET_NR_times 153 +#define TARGET_NR_setpgid 154 +#define TARGET_NR_getpgid 155 +#define TARGET_NR_getsid 156 +#define TARGET_NR_setsid 157 +#define TARGET_NR_getgroups 158 +#define TARGET_NR_setgroups 159 +#define TARGET_NR_uname 160 +#define TARGET_NR_sethostname 161 +#define TARGET_NR_setdomainname 162 +#define TARGET_NR_getrlimit 163 +#define TARGET_NR_setrlimit 164 +#define TARGET_NR_getrusage 165 +#define TARGET_NR_umask 166 +#define TARGET_NR_prctl 167 +#define TARGET_NR_getcpu 168 +#define TARGET_NR_gettimeofday 169 +#define TARGET_NR_settimeofday 170 +#define TARGET_NR_adjtimex 171 +#define TARGET_NR_getpid 172 +#define TARGET_NR_getppid 173 +#define TARGET_NR_getuid 174 +#define TARGET_NR_geteuid 175 +#define TARGET_NR_getgid 176 +#define TARGET_NR_getegid 177 +#define TARGET_NR_gettid 178 +#define TARGET_NR_sysinfo 179 +#define TARGET_NR_mq_open 180 +#define TARGET_NR_mq_unlink 181 +#define TARGET_NR_mq_timedsend 182 +#define TARGET_NR_mq_timedreceive 183 +#define TARGET_NR_mq_notify 184 +#define TARGET_NR_mq_getsetattr 185 +#define TARGET_NR_msgget 186 +#define TARGET_NR_msgctl 187 +#define TARGET_NR_msgrcv 188 +#define TARGET_NR_msgsnd 189 +#define TARGET_NR_semget 190 +#define TARGET_NR_semctl 191 +#define TARGET_NR_semtimedop 192 +#define TARGET_NR_semop 193 +#define TARGET_NR_shmget 194 +#define TARGET_NR_shmctl 195 +#define TARGET_NR_shmat 196 +#define TARGET_NR_shmdt 197 +#define TARGET_NR_socket 198 +#define TARGET_NR_socketpair 199 +#define TARGET_NR_bind 200 +#define TARGET_NR_listen 201 +#define TARGET_NR_accept 202 +#define TARGET_NR_connect 203 +#define TARGET_NR_getsockname 204 +#define TARGET_NR_getpeername 205 +#define TARGET_NR_sendto 206 +#define TARGET_NR_recvfrom 207 +#define TARGET_NR_setsockopt 208 +#define TARGET_NR_getsockopt 209 +#define TARGET_NR_shutdown 210 +#define TARGET_NR_sendmsg 211 +#define TARGET_NR_recvmsg 212 +#define TARGET_NR_readahead 213 +#define TARGET_NR_brk 214 +#define TARGET_NR_munmap 215 +#define TARGET_NR_mremap 216 +#define TARGET_NR_add_key 217 +#define TARGET_NR_request_key 218 +#define TARGET_NR_keyctl 219 +#define TARGET_NR_clone 220 +#define TARGET_NR_execve 221 +#define TARGET_NR_mmap2 222 +#define TARGET_NR_fadvise64_64 223 +#define TARGET_NR_swapon 224 +#define TARGET_NR_swapoff 225 +#define TARGET_NR_mprotect 226 +#define TARGET_NR_msync 227 +#define TARGET_NR_mlock 228 +#define TARGET_NR_munlock 229 +#define TARGET_NR_mlockall 230 +#define TARGET_NR_munlockall 231 +#define TARGET_NR_mincore 232 +#define TARGET_NR_madvise 233 +#define TARGET_NR_remap_file_pages 234 +#define TARGET_NR_mbind 235 +#define TARGET_NR_get_mempolicy 236 +#define TARGET_NR_set_mempolicy 237 +#define TARGET_NR_migrate_pages 238 +#define TARGET_NR_move_pages 239 +#define TARGET_NR_rt_tgsigqueueinfo 240 +#define TARGET_NR_perf_event_open 241 +#define TARGET_NR_accept4 242 +#define TARGET_NR_recvmmsg 243 +#define TARGET_NR_arch_specific_syscall 244 +#define TARGET_NR_wait4 260 +#define TARGET_NR_prlimit64 261 +#define TARGET_NR_fanotify_init 262 +#define TARGET_NR_fanotify_mark 263 +#define TARGET_NR_name_to_handle_at 264 +#define TARGET_NR_open_by_handle_at 265 +#define TARGET_NR_clock_adjtime 266 +#define TARGET_NR_syncfs 267 +#define TARGET_NR_setns 268 +#define TARGET_NR_sendmmsg 269 +#define TARGET_NR_process_vm_readv 270 +#define TARGET_NR_process_vm_writev 271 +#define TARGET_NR_kcmp 272 +#define TARGET_NR_finit_module 273 +#define TARGET_NR_sched_setattr 274 +#define TARGET_NR_sched_getattr 275 +#define TARGET_NR_renameat2 276 +#define TARGET_NR_seccomp 277 +#define TARGET_NR_getrandom 278 +#define TARGET_NR_memfd_create 279 +#define TARGET_NR_bpf 280 +#define TARGET_NR_execveat 281 +#define TARGET_NR_userfaultfd 282 +#define TARGET_NR_membarrier 283 +#define TARGET_NR_mlock2 284 +#define TARGET_NR_copy_file_range 285 +#define TARGET_NR_preadv2 286 +#define TARGET_NR_pwritev2 287 +#define TARGET_NR_pkey_mprotect 288 +#define TARGET_NR_pkey_alloc 289 +#define TARGET_NR_pkey_free 290 +#define TARGET_NR_statx 291 +#define TARGET_NR_io_pgetevents 292 +#define TARGET_NR_rseq 293 +#define TARGET_NR_kexec_file_load 294 +#define TARGET_NR_clock_gettime64 403 +#define TARGET_NR_clock_settime64 404 +#define TARGET_NR_clock_adjtime64 405 +#define TARGET_NR_clock_getres_time64 406 +#define TARGET_NR_clock_nanosleep_time64 407 +#define TARGET_NR_timer_gettime64 408 +#define TARGET_NR_timer_settime64 409 +#define TARGET_NR_timerfd_gettime64 410 +#define TARGET_NR_timerfd_settime64 411 +#define TARGET_NR_utimensat_time64 412 +#define TARGET_NR_pselect6_time64 413 +#define TARGET_NR_ppoll_time64 414 +#define TARGET_NR_io_pgetevents_time64 416 +#define TARGET_NR_recvmmsg_time64 417 +#define TARGET_NR_mq_timedsend_time64 418 +#define TARGET_NR_mq_timedreceive_time64 419 +#define TARGET_NR_semtimedop_time64 420 +#define TARGET_NR_rt_sigtimedwait_time64 421 +#define TARGET_NR_futex_time64 422 +#define TARGET_NR_sched_rr_get_interval_time64 423 +#define TARGET_NR_pidfd_send_signal 424 +#define TARGET_NR_io_uring_setup 425 +#define TARGET_NR_io_uring_enter 426 +#define TARGET_NR_io_uring_register 427 +#define TARGET_NR_open_tree 428 +#define TARGET_NR_move_mount 429 +#define TARGET_NR_fsopen 430 +#define TARGET_NR_fsconfig 431 +#define TARGET_NR_fsmount 432 +#define TARGET_NR_fspick 433 +#define TARGET_NR_pidfd_open 434 +#define TARGET_NR_syscalls 436 + +#endif /* LINUX_USER_NIOS2_SYSCALL_NR_H */ -#endif
Signature · 1 line
2.24.1
[PULL 05/38] linux-user: Flush out implementation of gettimeofday
In reply to Laurent VivierFrom: Richard Henderson <[email protected]>
The first argument, timeval, is allowed to be NULL.
The second argument, timezone, was missing. While its use is deprecated, it is still present in the syscall.
Message-Id: <[email protected]>
--- linux-user/syscall.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-)
linux-user/syscall.c +25 -2
@@ -1228,6 +1228,23 @@ static inline abi_long host_to_target_timespec64(abi_ulong target_addr,return 0 ; } +static inline abi_long copy_to_user_timezone (abi_ulong target_tz_addr, +struct timezone *tz) +{ +struct target_timezone *target_tz; + +if (!lock_user_struct (VERIFY_WRITE , target_tz, target_tz_addr,1 )) { +return -TARGET_EFAULT ; + } + +__put_user (tz->tz_minuteswest, &target_tz->tz_minuteswest); +__put_user (tz->tz_dsttime, &target_tz->tz_dsttime); + +unlock_user_struct (target_tz, target_tz_addr,1 ); + +return 0 ; +} +static inline abi_long copy_from_user_timezone (struct timezone *tz,abi_ulong target_tz_addr) {
@@ -8642,10 +8659,16 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,case TARGET_NR_gettimeofday: {struct timeval tv; - ret =get_errno (gettimeofday (&tv,NULL )); +struct timezone tz; + + ret =get_errno (gettimeofday (&tv, &tz));if (!is_error (ret)) { -if (copy_to_user_timeval (arg1, &tv)) +if (arg1 &©_to_user_timeval (arg1, &tv)) {return -TARGET_EFAULT ; + } +if (arg2 &©_to_user_timezone (arg2, &tz)) { +return -TARGET_EFAULT ; + } } }return ret;
Signature · 1 line
2.24.1
[PULL 30/38] linux-user, mips64: add syscall table generation support
In reply to Laurent VivierCopy syscall_n32.tbl, syscall_n64.tbl and syscallhdr.sh from linux/arch/parisc/kernel/syscalls v5.5
Update syscallhdr.sh to generate QEMU syscall_nr.h
Move the offsets (6000 for n32 and 5000 for n64) from the file to the Makefile.objs to be passed to syscallhdr.sh
Message-Id: <[email protected]>
--- configure | 4 +- linux-user/Makefile.objs | 1 + linux-user/mips64/Makefile.objs | 12 + linux-user/mips64/syscall_n32.tbl | 376 ++++++++++++++++ linux-user/mips64/syscall_n64.tbl | 352 +++++++++++++++ linux-user/mips64/syscall_nr.h | 725 ------------------------------ linux-user/mips64/syscallhdr.sh | 33 ++ 7 files changed, 777 insertions(+), 726 deletions(-) create mode 100644 linux-user/mips64/Makefile.objs create mode 100644 linux-user/mips64/syscall_n32.tbl create mode 100644 linux-user/mips64/syscall_n64.tbl delete mode 100644 linux-user/mips64/syscall_nr.h create mode 100644 linux-user/mips64/syscallhdr.sh
configure +3 -1
@@ -1890,7 +1890,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ - i386 x86_64 mips ; do + i386 x86_64 mips mips64 ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7845,12 +7845,14 @@ case "$target_name" in TARGET_BASE_ARCH=mips echo "TARGET_ABI_MIPSN32=y" >> $config_target_mak echo "TARGET_ABI32=y" >> $config_target_mak + TARGET_SYSTBL_ABI=n32 ;; mips64|mips64el) mttcg="yes" TARGET_ARCH=mips64 TARGET_BASE_ARCH=mips echo "TARGET_ABI_MIPSN64=y" >> $config_target_mak + TARGET_SYSTBL_ABI=n64 ;; moxie) ;;
linux-user/Makefile.objs +1 -0
@@ -14,6 +14,7 @@ obj-$(TARGET_I386) += i386/ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/ obj-$(TARGET_MIPS) += mips/ +obj-$(TARGET_MIPS64) += mips64/ obj-$(TARGET_PPC) += ppc/ obj-$(TARGET_PPC64) += ppc/ obj-$(TARGET_S390X) += s390x/
linux-user/mips64/Makefile.objs new file +12 -0
@@ -0,0 +1,12 @@ +generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh + +ifeq ($(TARGET_SYSTBL_ABI),n32) +%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n32.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ n32 "" 6000,"GEN","$@") +endif +ifeq ($(TARGET_SYSTBL_ABI),n64) +%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall_n64.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ n64 "" 5000,"GEN","$@") +endif
linux-user/mips64/syscall_n32.tbl new file +376 -0
376 lines not on this page · raw message
linux-user/mips64/syscall_n64.tbl new file +352 -0
352 lines not on this page · raw message
linux-user/mips64/syscall_nr.h deleted +0 -725
725 lines not on this page · raw message
linux-user/mips64/syscallhdr.sh new file +33 -0
@@ -0,0 +1,33 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_MIPS64_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry compat ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" + printf "\n" +) > "$out"
Signature · 1 line
2.24.1
[PULL 12/38] linux-user: Support futex_time64
In reply to Laurent VivierFrom: Alistair Francis <[email protected]>
Add support for host and target futex_time64. If futex_time64 exists on the host we try that first before falling back to the standard futex syscall.
Message-Id: <517832730838e1d0b5eda26781b280854d792f9e.1584143748.git.alistair.francis@wdc.com>
--- linux-user/syscall.c | 144 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 131 insertions(+), 13 deletions(-)
linux-user/syscall.c +131 -13
@@ -245,7 +245,12 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \#define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo#define __NR_sys_rt_tgsigqueueinfo __NR_rt_tgsigqueueinfo#define __NR_sys_syslog __NR_syslog -#define __NR_sys_futex __NR_futex +#if defined(__NR_futex) +# define __NR_sys_futex __NR_futex +#endif +#if defined(__NR_futex_time64) +# define __NR_sys_futex_time64 __NR_futex_time64 +#endif #define __NR_sys_inotify_init __NR_inotify_init#define __NR_sys_inotify_add_watch __NR_inotify_add_watch#define __NR_sys_inotify_rm_watch __NR_inotify_rm_watch
@@ -295,10 +300,16 @@ _syscall1(int,exit_group,int,error_code)#if defined(TARGET_NR_set_tid_address) && defined(__NR_set_tid_address) _syscall1(int,set_tid_address,int *,tidptr)#endif -#if defined(TARGET_NR_futex) && defined(__NR_futex) +#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \ + (defined(TARGET_NR_futex_time64) && \ + (HOST_LONG_BITS ==64 && defined(__NR_futex))) _syscall6(int,sys_futex,int *,uaddr,int,op,int,val, const struct timespec *,timeout,int *,uaddr2,int,val3)#endif +#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64)) +_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val, + const struct timespec *,timeout,int *,uaddr2,int,val3) +#endif #define __NR_sys_sched_getaffinity __NR_sched_getaffinity _syscall3(int, sys_sched_getaffinity, pid_t, pid, unsigned int, len, unsigned long *, user_mask_ptr);
@@ -762,10 +773,14 @@ safe_syscall5(int, ppoll, struct pollfd *, ufds, unsigned int, nfds, safe_syscall6(int, epoll_pwait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout, const sigset_t *, sigmask, size_t, sigsetsize) -#ifdef TARGET_NR_futex +#if defined(__NR_futex) safe_syscall6(int,futex,int *,uaddr,int,op,int,val, \ const struct timespec *,timeout,int *,uaddr2,int,val3)#endif +#if defined(__NR_futex_time64) +safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \ + const struct timespec *,timeout,int *,uaddr2,int,val3) +#endif safe_syscall2(int, rt_sigsuspend, sigset_t *, newset, size_t, sigsetsize) safe_syscall2(int, kill, pid_t, pid, int, sig)safe_syscall2 (int, tkill, int, tid, int, sig)
@@ -1229,7 +1244,7 @@ static inline abi_long target_to_host_timespec(struct timespec *host_ts, }#endif -#if defined(TARGET_NR_clock_settime64) +#if defined(TARGET_NR_clock_settime64) || defined(TARGET_NR_futex_time64)static inline abi_long target_to_host_timespec64 (struct timespec *host_ts,abi_ulong target_addr) {
@@ -6907,6 +6922,55 @@ static inline abi_long host_to_target_statx(struct target_statx *host_stx, }#endif +static int do_sys_futex (int *uaddr,int op,int val, +const struct timespec *timeout,int *uaddr2, +int val3) +{ +#if HOST_LONG_BITS ==64 +#if defined(__NR_futex) +/* always a 64-bit time_t, it doesn't define _time64 version */ +return sys_futex (uaddr, op, val, timeout, uaddr2, val3); + +#endif +#else /* HOST_LONG_BITS == 64 */ +#if defined(__NR_futex_time64) +if (sizeof (timeout->tv_sec) ==8 ) { +/* _time64 function on 32bit arch */ +return sys_futex_time64 (uaddr, op, val, timeout, uaddr2, val3); + } +#endif +#if defined(__NR_futex) +/* old function on 32bit arch */ +return sys_futex (uaddr, op, val, timeout, uaddr2, val3); +#endif +#endif /* HOST_LONG_BITS == 64 */ +g_assert_not_reached (); +} + +static int do_safe_futex (int *uaddr,int op,int val, +const struct timespec *timeout,int *uaddr2, +int val3) +{ +#if HOST_LONG_BITS ==64 +#if defined(__NR_futex) +/* always a 64-bit time_t, it doesn't define _time64 version */ +return get_errno (safe_futex (uaddr, op, val, timeout, uaddr2, val3)); +#endif +#else /* HOST_LONG_BITS == 64 */ +#if defined(__NR_futex_time64) +if (sizeof (timeout->tv_sec) ==8 ) { +/* _time64 function on 32bit arch */ +return get_errno (safe_futex_time64 (uaddr, op, val, timeout, uaddr2, + val3)); + } +#endif +#if defined(__NR_futex) +/* old function on 32bit arch */ +return get_errno (safe_futex (uaddr, op, val, timeout, uaddr2, val3)); +#endif +#endif /* HOST_LONG_BITS == 64 */ +return -TARGET_ENOSYS ; +}/* ??? Using host futex calls even when target atomic operations are not really atomic probably breaks things. However implementing
@@ -6936,12 +7000,61 @@ static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout, } else { pts =NULL ; } -return get_errno (safe_futex (g2h (uaddr), op,tswap32 (val), +return get_errno (do_safe_futex (g2h (uaddr), op,tswap32 (val), + pts,NULL , val3)); +case FUTEX_WAKE : +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +case FUTEX_FD : +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +case FUTEX_REQUEUE : +case FUTEX_CMP_REQUEUE : +case FUTEX_WAKE_OP : +/* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the +TIMEOUT parameter is interpreted as a uint32_t by the kernel. +But the prototype takes a `struct timespec *'; insert casts +to satisfy the compiler. We do not need to tswap TIMEOUT +since it's not compared to guest memory. */ + pts = (struct timespec *)(uintptr_t ) timeout; +return get_errno (do_safe_futex (g2h (uaddr), op, val, pts, +g2h (uaddr2), + (base_op ==FUTEX_CMP_REQUEUE + ?tswap32 (val3) + : val3))); +default : +return -TARGET_ENOSYS ; + } +} +#endif + +#if defined(TARGET_NR_futex_time64) +static int do_futex_time64 (target_ulong uaddr,int op,int val,target_ulong timeout, +target_ulong uaddr2,int val3) +{ +struct timespec ts, *pts; +int base_op; + +/* ??? We assume FUTEX_* constants are the same on both host +and target. */ +#ifdef FUTEX_CMD_MASK + base_op = op &FUTEX_CMD_MASK ; +#else + base_op = op; +#endif +switch (base_op) { +case FUTEX_WAIT : +case FUTEX_WAIT_BITSET : +if (timeout) { + pts = &ts; +target_to_host_timespec64 (pts, timeout); + }else { + pts =NULL ; + } +return get_errno (do_safe_futex (g2h (uaddr), op,tswap32 (val), pts,NULL , val3));case FUTEX_WAKE : -return get_errno (safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 ));case FUTEX_FD : -return get_errno (safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 ));case FUTEX_REQUEUE :case FUTEX_CMP_REQUEUE :case FUTEX_WAKE_OP :
@@ -6951,16 +7064,17 @@ static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout,to satisfy the compiler. We do not need to tswap TIMEOUT since it's not compared to guest memory. */ pts = (struct timespec *)(uintptr_t ) timeout; -return get_errno (safe_futex (g2h (uaddr), op, val, pts, -g2h (uaddr2), - (base_op ==FUTEX_CMP_REQUEUE - ?tswap32 (val3) - : val3))); +return get_errno (do_safe_futex (g2h (uaddr), op, val, pts, +g2h (uaddr2), + (base_op ==FUTEX_CMP_REQUEUE + ?tswap32 (val3) + : val3)));default : return -TARGET_ENOSYS; } }#endif +#if defined(TARGET_NR_name_to_handle_at) && defined(CONFIG_OPEN_BY_HANDLE ) static abi_long do_name_to_handle_at(abi_long dirfd, abi_long pathname, abi_long handle, abi_long mount_id,
@@ -7532,7 +7646,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, ts = cpu->opaque;if (ts->child_tidptr) {put_user_u32 (0 , ts->child_tidptr); -sys_futex (g2h (ts->child_tidptr),FUTEX_WAKE ,INT_MAX , +do_sys_futex (g2h (ts->child_tidptr),FUTEX_WAKE ,INT_MAX ,NULL ,NULL ,0 ); } thread_cpu =NULL ;
@@ -11630,6 +11744,10 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,case TARGET_NR_futex:return do_futex (arg1, arg2, arg3, arg4, arg5, arg6);#endif +#ifdef TARGET_NR_futex_time64 +case TARGET_NR_futex_time64: +return do_futex_time64 (arg1, arg2, arg3, arg4, arg5, arg6); +#endif #if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init)case TARGET_NR_inotify_init: ret =get_errno (sys_inotify_init ());
Signature · 1 line
2.24.1
Re: [PULL 12/38] linux-user: Support futex_time64
Hi Alistair,
I have removed this patch from the pull request because Peter reported a problem:
Compile failure, aarch32:
/home/peter.maydell/qemu/linux-user/syscall.c: In function 'do_sys_futex':/home/peter.maydell/qemu/linux-user/syscall.c:6946:16: error: implicit declaration of function 'sys_futex_time64'; did you mean 'safe_futex_time64'? [-Werror=implicit-function-declaration]
return sys_futex_time64(uaddr, op, val, timeout, uaddr2, val3);
^~~~~~~~~~~~~~~~
safe_futex_time64Moreover patchew reported some style issues for the code you have added (yes, it's a cut'n'paste of existing code, but I think it's a good opportunity to fix that too).
Could you have a look?
I will add the new patch to my next pull request as it is a bugfix that can be merged during thr RC cycle.
Thanks,
Laurent
Le 16/03/2020 à 17:15, Laurent Vivier a écrit :
Quoted 240 lines
From: Alistair Francis <[email protected]>
Add support for host and target
futex_time64. Iffutex_time64exists on the host we try that first before falling back to the standard futex syscall.Signed-off-by Alistair Francis <[email protected]>Reviewed-by Laurent Vivier <[email protected]>Message-Id: <517832730838e1d0b5eda26781b280854d792f9e.1584143748.git.alistair.francis@wdc.com>
Signed-off-by Laurent Vivier <[email protected]>--- linux-user/syscall.c | 144 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 131 insertions(+), 13 deletions(-)linux-user/syscall.c +131
-13@@ -245,7 +245,12 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \#define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo#define __NR_sys_rt_tgsigqueueinfo __NR_rt_tgsigqueueinfo#define __NR_sys_syslog __NR_syslog -#define __NR_sys_futex __NR_futex +#if defined(__NR_futex) +# define __NR_sys_futex __NR_futex +#endif +#if defined(__NR_futex_time64) +# define __NR_sys_futex_time64 __NR_futex_time64 +#endif #define __NR_sys_inotify_init __NR_inotify_init#define __NR_sys_inotify_add_watch __NR_inotify_add_watch#define __NR_sys_inotify_rm_watch __NR_inotify_rm_watch@@ -295,10 +300,16 @@ _syscall1(int,exit_group,int,error_code)#if defined(TARGET_NR_set_tid_address) && defined(__NR_set_tid_address) _syscall1(int,set_tid_address,int *,tidptr)#endif -#if defined(TARGET_NR_futex) && defined(__NR_futex) +#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \ + (defined(TARGET_NR_futex_time64) && \ + (HOST_LONG_BITS ==64 && defined(__NR_futex))) _syscall6(int,sys_futex,int *,uaddr,int,op,int,val, const struct timespec *,timeout,int *,uaddr2,int,val3)#endif +#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64)) +_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val, + const struct timespec *,timeout,int *,uaddr2,int,val3) +#endif #define __NR_sys_sched_getaffinity __NR_sched_getaffinity _syscall3(int, sys_sched_getaffinity, pid_t, pid, unsigned int, len, unsigned long *, user_mask_ptr);@@ -762,10 +773,14 @@ safe_syscall5(int, ppoll, struct pollfd *, ufds, unsigned int, nfds, safe_syscall6(int, epoll_pwait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout, const sigset_t *, sigmask, size_t, sigsetsize) -#ifdef TARGET_NR_futex +#if defined(__NR_futex) safe_syscall6(int,futex,int *,uaddr,int,op,int,val, \ const struct timespec *,timeout,int *,uaddr2,int,val3)#endif +#if defined(__NR_futex_time64) +safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \ + const struct timespec *,timeout,int *,uaddr2,int,val3) +#endif safe_syscall2(int, rt_sigsuspend, sigset_t *, newset, size_t, sigsetsize) safe_syscall2(int, kill, pid_t, pid, int, sig)safe_syscall2 (int, tkill, int, tid, int, sig)@@ -1229,7 +1244,7 @@ static inline abi_long target_to_host_timespec(struct timespec *host_ts, }#endif -#if defined(TARGET_NR_clock_settime64) +#if defined(TARGET_NR_clock_settime64) || defined(TARGET_NR_futex_time64)static inline abi_long target_to_host_timespec64 (struct timespec *host_ts,abi_ulong target_addr) {@@ -6907,6 +6922,55 @@ static inline abi_long host_to_target_statx(struct target_statx *host_stx, }#endif +static int do_sys_futex (int *uaddr,int op,int val, +const struct timespec *timeout,int *uaddr2, +int val3) +{ +#if HOST_LONG_BITS ==64 +#if defined(__NR_futex) +/* always a 64-bit time_t, it doesn't define _time64 version */ +return sys_futex (uaddr, op, val, timeout, uaddr2, val3); + +#endif +#else /* HOST_LONG_BITS == 64 */ +#if defined(__NR_futex_time64) +if (sizeof (timeout->tv_sec) ==8 ) { +/* _time64 function on 32bit arch */ +return sys_futex_time64 (uaddr, op, val, timeout, uaddr2, val3); + } +#endif +#if defined(__NR_futex) +/* old function on 32bit arch */ +return sys_futex (uaddr, op, val, timeout, uaddr2, val3); +#endif +#endif /* HOST_LONG_BITS == 64 */ +g_assert_not_reached (); +} + +static int do_safe_futex (int *uaddr,int op,int val, +const struct timespec *timeout,int *uaddr2, +int val3) +{ +#if HOST_LONG_BITS ==64 +#if defined(__NR_futex) +/* always a 64-bit time_t, it doesn't define _time64 version */ +return get_errno (safe_futex (uaddr, op, val, timeout, uaddr2, val3)); +#endif +#else /* HOST_LONG_BITS == 64 */ +#if defined(__NR_futex_time64) +if (sizeof (timeout->tv_sec) ==8 ) { +/* _time64 function on 32bit arch */ +return get_errno (safe_futex_time64 (uaddr, op, val, timeout, uaddr2, + val3)); + } +#endif +#if defined(__NR_futex) +/* old function on 32bit arch */ +return get_errno (safe_futex (uaddr, op, val, timeout, uaddr2, val3)); +#endif +#endif /* HOST_LONG_BITS == 64 */ +return -TARGET_ENOSYS ; +}/* ??? Using host futex calls even when target atomic operations are not really atomic probably breaks things. However implementing @@ -6936,12 +7000,61 @@ static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout, } else { pts =NULL ; } -return get_errno (safe_futex (g2h (uaddr), op,tswap32 (val), +return get_errno (do_safe_futex (g2h (uaddr), op,tswap32 (val), + pts,NULL , val3)); +case FUTEX_WAKE : +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +case FUTEX_FD : +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +case FUTEX_REQUEUE : +case FUTEX_CMP_REQUEUE : +case FUTEX_WAKE_OP : +/* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the +TIMEOUT parameter is interpreted as a uint32_t by the kernel. +But the prototype takes a `struct timespec *'; insert casts +to satisfy the compiler. We do not need to tswap TIMEOUT +since it's not compared to guest memory. */ + pts = (struct timespec *)(uintptr_t ) timeout; +return get_errno (do_safe_futex (g2h (uaddr), op, val, pts, +g2h (uaddr2), + (base_op ==FUTEX_CMP_REQUEUE + ?tswap32 (val3) + : val3))); +default : +return -TARGET_ENOSYS ; + } +} +#endif + +#if defined(TARGET_NR_futex_time64) +static int do_futex_time64 (target_ulong uaddr,int op,int val,target_ulong timeout, +target_ulong uaddr2,int val3) +{ +struct timespec ts, *pts; +int base_op; + +/* ??? We assume FUTEX_* constants are the same on both host +and target. */ +#ifdef FUTEX_CMD_MASK + base_op = op &FUTEX_CMD_MASK ; +#else + base_op = op; +#endif +switch (base_op) { +case FUTEX_WAIT : +case FUTEX_WAIT_BITSET : +if (timeout) { + pts = &ts; +target_to_host_timespec64 (pts, timeout); + }else { + pts =NULL ; + } +return get_errno (do_safe_futex (g2h (uaddr), op,tswap32 (val), pts,NULL , val3));case FUTEX_WAKE : -return get_errno (safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 ));case FUTEX_FD : -return get_errno (safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 )); +return get_errno (do_safe_futex (g2h (uaddr), op, val,NULL ,NULL ,0 ));case FUTEX_REQUEUE :case FUTEX_CMP_REQUEUE :case FUTEX_WAKE_OP :@@ -6951,16 +7064,17 @@ static int do_futex(target_ulong uaddr, int op, int val, target_ulong timeout,to satisfy the compiler. We do not need to tswap TIMEOUT since it's not compared to guest memory. */ pts = (struct timespec *)(uintptr_t ) timeout; -return get_errno (safe_futex (g2h (uaddr), op, val, pts, -g2h (uaddr2), - (base_op ==FUTEX_CMP_REQUEUE - ?tswap32 (val3) - : val3))); +return get_errno (do_safe_futex (g2h (uaddr), op, val, pts, +g2h (uaddr2), + (base_op ==FUTEX_CMP_REQUEUE + ?tswap32 (val3) + : val3)));default : return -TARGET_ENOSYS; } }#endif +#if defined(TARGET_NR_name_to_handle_at) && defined(CONFIG_OPEN_BY_HANDLE ) static abi_long do_name_to_handle_at(abi_long dirfd, abi_long pathname, abi_long handle, abi_long mount_id,@@ -7532,7 +7646,7 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, ts = cpu->opaque;if (ts->child_tidptr) {put_user_u32 (0 , ts->child_tidptr); -sys_futex (g2h (ts->child_tidptr),FUTEX_WAKE ,INT_MAX , +do_sys_futex (g2h (ts->child_tidptr),FUTEX_WAKE ,INT_MAX ,NULL ,NULL ,0 ); } thread_cpu =NULL ;@@ -11630,6 +11744,10 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,case TARGET_NR_futex:return do_futex (arg1, arg2, arg3, arg4, arg5, arg6);#endif +#ifdef TARGET_NR_futex_time64 +case TARGET_NR_futex_time64: +return do_futex_time64 (arg1, arg2, arg3, arg4, arg5, arg6); +#endif #if defined(TARGET_NR_inotify_init) && defined(__NR_inotify_init)case TARGET_NR_inotify_init: ret =get_errno (sys_inotify_init ());
[PULL 22/38] linux-user, ppc: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/ppc/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
and to not generate the entry if entry point is sys_ni_syscall.
Fix ppc/signal.c to define do_sigreturn() for TARGET_ABI32.
Message-Id: <[email protected]>
--- configure | 6 +- linux-user/Makefile.objs | 2 + linux-user/ppc/Makefile.objs | 6 + linux-user/ppc/signal.c | 2 +- linux-user/ppc/syscall.tbl | 519 +++++++++++++++++++++++++++++++++++ linux-user/ppc/syscall_nr.h | 402 --------------------------- linux-user/ppc/syscallhdr.sh | 34 +++ 7 files changed, 567 insertions(+), 404 deletions(-) create mode 100644 linux-user/ppc/Makefile.objs create mode 100644 linux-user/ppc/syscall.tbl delete mode 100644 linux-user/ppc/syscall_nr.h create mode 100644 linux-user/ppc/syscallhdr.sh
configure +5 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa sh4 microblaze arm ; do +for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7858,10 +7858,12 @@ case "$target_name" in ;; ppc) gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" + TARGET_SYSTBL_ABI=common,nospu,32 ;; ppc64) TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc + TARGET_SYSTBL_ABI=common,nospu,64 mttcg=yes gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" ;;
@@ -7869,6 +7871,7 @@ case "$target_name" in TARGET_ARCH=ppc64 TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc + TARGET_SYSTBL_ABI=common,nospu,64 mttcg=yes gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" ;;
@@ -7876,6 +7879,7 @@ case "$target_name" in TARGET_ARCH=ppc64 TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc + TARGET_SYSTBL_ABI=common,nospu,32 echo "TARGET_ABI32=y" >> $config_target_mak gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" ;;
linux-user/Makefile.objs +2 -0
@@ -12,5 +12,7 @@ obj-$(TARGET_ARM) += arm/ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/ +obj-$(TARGET_PPC) += ppc/ +obj-$(TARGET_PPC64) += ppc/ obj-$(TARGET_SH4) += sh4/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/ppc/Makefile.objs new file +6 -0
@@ -0,0 +1,6 @@ +generated-files-y += linux-user/$(TARGET_ABI_DIR)/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscallhdr.sh + +%/syscall_nr.h: $(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/ppc/signal.c +1 -1
@@ -588,7 +588,7 @@ sigsegv: } -#if !defined(TARGET_PPC64 ) +#if !defined(TARGET_PPC64 ) || defined(TARGET_ABI32 )long do_sigreturn (CPUPPCState *env) {struct target_sigcontext *sc =NULL ;
linux-user/ppc/syscall.tbl new file +519 -0
519 lines not on this page · raw message
linux-user/ppc/syscall_nr.h deleted +0 -402
402 lines not on this page · raw message
linux-user/ppc/syscallhdr.sh new file +34 -0
@@ -0,0 +1,34 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_PPC_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + while read nr abi name entry compat ; do + if [ "$entry" = "sys_ni_syscall" ] ; then + continue + fi + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" + printf "\n" +) > "$out"
Signature · 1 line
2.24.1
[PULL 27/38] linux-user, i386: add syscall table generation support
In reply to Laurent VivierCopy syscall_32.tbl and syscallhdr.sh from linux/arch/x86/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/i386/Makefile.objs | 5 + linux-user/i386/syscall_32.tbl | 442 +++++++++++++++++++++++++++++++++ linux-user/i386/syscall_nr.h | 387 ----------------------------- linux-user/i386/syscallhdr.sh | 28 +++ 6 files changed, 478 insertions(+), 388 deletions(-) create mode 100644 linux-user/i386/Makefile.objs create mode 100644 linux-user/i386/syscall_32.tbl delete mode 100644 linux-user/i386/syscall_nr.h create mode 100644 linux-user/i386/syscallhdr.sh
configure +2 -1
@@ -1890,7 +1890,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x sparc sparc64 \ - ; do + i386 ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7788,6 +7788,7 @@ case "$target_name" in i386) mttcg="yes" gdb_xml_files="i386-32bit.xml" + TARGET_SYSTBL_ABI=i386 ;; x86_64) TARGET_BASE_ARCH=i386
linux-user/Makefile.objs +1 -0
@@ -10,6 +10,7 @@ obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ obj-$(TARGET_ARM) += arm/ obj-$(TARGET_HPPA) += hppa/ +obj-$(TARGET_I386) += i386/ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/ obj-$(TARGET_PPC) += ppc/
linux-user/i386/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/i386/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/i386/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/i386/syscall_32.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/i386/syscall_32.tbl new file +442 -0
442 lines not on this page · raw message
linux-user/i386/syscall_nr.h deleted +0 -387
387 lines not on this page · raw message
linux-user/i386/syscallhdr.sh new file +28 -0
@@ -0,0 +1,28 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_I386_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + echo "#ifndef ${fileguard}" + echo "#define ${fileguard} 1" + echo "" + + while read nr abi name entry ; do + if [ -z "$offset" ]; then + echo "#define TARGET_NR_${prefix}${name} $nr" + else + echo "#define TARGET_NR_${prefix}${name} ($offset + $nr)" + fi + done + + echo "" + echo "#endif /* ${fileguard} */" +) > "$out"
Signature · 1 line
2.24.1
[PULL 34/38] linux-user,mips: update syscall-args-o32.c.inc
In reply to Laurent VivierAdd a script to update the file from strace github and run it
Message-Id: <[email protected]>
--- MAINTAINERS | 1 + linux-user/mips/syscall-args-o32.c.inc | 874 ++++++++++++------------- scripts/update-mips-syscall-args.sh | 57 ++ 3 files changed, 494 insertions(+), 438 deletions(-) create mode 100755 scripts/update-mips-syscall-args.sh
MAINTAINERS +1 -0
@@ -2449,6 +2449,7 @@ F: linux-user/ F: default-configs/*-linux-user.mak F: scripts/qemu-binfmt-conf.sh F: scripts/update-syscalltbl.sh +F: scripts/update-mips-syscall-args.sh Tiny Code Generator (TCG) -------------------------
linux-user/mips/syscall-args-o32.c.inc +436 -438
874 lines not on this page · raw message
scripts/update-mips-syscall-args.sh new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
2.24.1
[PULL 24/38] linux-user, s390x: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl from linux/arch/s390x/kernel/syscalls v5.5 Copy syscallhdr.sh from m68k.
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/s390x/Makefile.objs | 5 + linux-user/s390x/syscall.tbl | 440 +++++++++++++++++++++++++++++++++ linux-user/s390x/syscall_nr.h | 331 ------------------------- linux-user/s390x/syscallhdr.sh | 32 +++ 6 files changed, 480 insertions(+), 332 deletions(-) create mode 100644 linux-user/s390x/Makefile.objs create mode 100644 linux-user/s390x/syscall.tbl delete mode 100644 linux-user/s390x/syscall_nr.h create mode 100755 linux-user/s390x/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc ; do +for arch in alpha hppa m68k xtensa sh4 microblaze arm ppc s390x ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7912,6 +7912,7 @@ case "$target_name" in echo "TARGET_ABI32=y" >> $config_target_mak ;; s390x) + TARGET_SYSTBL_ABI=common,64 mttcg=yes gdb_xml_files="s390x-core64.xml s390-acr.xml s390-fpr.xml s390-vx.xml s390-cr.xml s390-virt.xml s390-gs.xml" ;;
linux-user/Makefile.objs +1 -0
@@ -14,5 +14,6 @@ obj-$(TARGET_M68K) += m68k/ obj-$(TARGET_MICROBLAZE) += microblaze/ obj-$(TARGET_PPC) += ppc/ obj-$(TARGET_PPC64) += ppc/ +obj-$(TARGET_S390X) += s390x/ obj-$(TARGET_SH4) += sh4/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/s390x/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/s390x/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/s390x/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/s390x/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/s390x/syscall.tbl new file +440 -0
440 lines not on this page · raw message
linux-user/s390x/syscall_nr.h deleted +0 -331
331 lines not on this page · raw message
linux-user/s390x/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_S390X_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */\n" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 18/38] linux-user, xtensa: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/xtensa/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/xtensa/Makefile.objs | 5 + linux-user/xtensa/syscall.tbl | 408 +++++++++++++++++++++++++++ linux-user/xtensa/syscall_nr.h | 469 -------------------------------- linux-user/xtensa/syscallhdr.sh | 32 +++ 6 files changed, 448 insertions(+), 470 deletions(-) create mode 100644 linux-user/xtensa/Makefile.objs create mode 100644 linux-user/xtensa/syscall.tbl delete mode 100644 linux-user/xtensa/syscall_nr.h create mode 100644 linux-user/xtensa/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k ; do +for arch in alpha hppa m68k xtensa ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7916,6 +7916,7 @@ case "$target_name" in ;; xtensa|xtensaeb) TARGET_ARCH=xtensa + TARGET_SYSTBL_ABI=common bflt="yes" mttcg="yes" ;;
linux-user/Makefile.objs +1 -0
@@ -12,3 +12,4 @@ obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_M68K) += m68k/ +obj-$(TARGET_XTENSA) += xtensa/
linux-user/xtensa/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/xtensa/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/xtensa/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/xtensa/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/xtensa/syscall.tbl new file +408 -0
408 lines not on this page · raw message
linux-user/xtensa/syscall_nr.h deleted +0 -469
469 lines not on this page · raw message
linux-user/xtensa/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_XTENSA_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
[PULL 19/38] linux-user, sh4: add syscall table generation support
In reply to Laurent VivierCopy syscall.tbl and syscallhdr.sh from linux/arch/sh/kernel/syscalls v5.5 Update syscallhdr.sh to generate QEMU syscall_nr.h
Message-Id: <[email protected]>
--- configure | 3 +- linux-user/Makefile.objs | 1 + linux-user/sh4/Makefile.objs | 5 + linux-user/sh4/syscall.tbl | 440 ++++++++++++++++++++++++++++++++++ linux-user/sh4/syscall_nr.h | 441 ----------------------------------- linux-user/sh4/syscallhdr.sh | 32 +++ 6 files changed, 480 insertions(+), 442 deletions(-) create mode 100644 linux-user/sh4/Makefile.objs create mode 100644 linux-user/sh4/syscall.tbl delete mode 100644 linux-user/sh4/syscall_nr.h create mode 100644 linux-user/sh4/syscallhdr.sh
configure +2 -1
@@ -1889,7 +1889,7 @@ rm -f */config-devices.mak.d # Remove syscall_nr.h to be sure they will be regenerated in the build # directory, not in the source directory -for arch in alpha hppa m68k xtensa ; do +for arch in alpha hppa m68k xtensa sh4 ; do # remove the file if it has been generated in the source directory rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" # remove the dependency files
@@ -7891,6 +7891,7 @@ case "$target_name" in ;; sh4|sh4eb) TARGET_ARCH=sh4 + TARGET_SYSTBL_ABI=common bflt="yes" ;; sparc)
linux-user/Makefile.objs +1 -0
@@ -12,4 +12,5 @@ obj-$(TARGET_AARCH64) += arm/semihost.o obj-$(TARGET_ALPHA) += alpha/ obj-$(TARGET_HPPA) += hppa/ obj-$(TARGET_M68K) += m68k/ +obj-$(TARGET_SH4) += sh4/ obj-$(TARGET_XTENSA) += xtensa/
linux-user/sh4/Makefile.objs new file +5 -0
@@ -0,0 +1,5 @@ +generated-files-y += linux-user/sh4/syscall_nr.h + +syshdr := $(SRC_PATH)/linux-user/sh4/syscallhdr.sh +%/syscall_nr.h: $(SRC_PATH)/linux-user/sh4/syscall.tbl $(syshdr) + $(call quiet-command, sh $(syshdr) $< $@ $(TARGET_SYSTBL_ABI),"GEN","$@")
linux-user/sh4/syscall.tbl new file +440 -0
440 lines not on this page · raw message
linux-user/sh4/syscall_nr.h deleted +0 -441
441 lines not on this page · raw message
linux-user/sh4/syscallhdr.sh new file +32 -0
@@ -0,0 +1,32 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +in="$1" +out="$2" +my_abis=`echo "($3)" | tr ',' '|'` +prefix="$4" +offset="$5" + +fileguard=LINUX_USER_SH4_`basename "$out" | sed \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ + -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` +grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( + printf "#ifndef %s\n" "${fileguard}" + printf "#define %s\n" "${fileguard}" + printf "\n" + + nxt=0 + while read nr abi name entry ; do + if [ -z "$offset" ]; then + printf "#define TARGET_NR_%s%s\t%s\n" \ + "${prefix}" "${name}" "${nr}" + else + printf "#define TARGET_NR_%s%s\t(%s + %s)\n" \ + "${prefix}" "${name}" "${offset}" "${nr}" + fi + nxt=$((nr+1)) + done + + printf "\n" + printf "#endif /* %s */" "${fileguard}" +) > "$out"
Signature · 1 line
2.24.1
Quoted 11 lines · Laurent Vivier
The following changes since commit
373c7068dd610e97f0b551b5a6d0a27cd6da4506:qemu.nsi: Install Sphinx documentation (2020-03-09 16:45:00 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/linux-user-for-5.0-pull-requestfor you to fetch changes up to
63e05b3db1e5f0560ae579050c53d1ee36ed5aca:
Quoted 7 lines
linux-user, openrisc: sync syscall numbers with kernel v5.5 (2020-03-16 14:20:07 +0100)
----------------------------------------------------------------
update syscall numbers to linux 5.5 (with scripts) add futex_time64/clock_gettime64/clock_settime64 addAT_EXECFN
Emulatex86_64vsyscalls
Compile failure, aarch32:
/home/peter.maydell/qemu/linux-user/syscall.c: In function 'do_sys_futex':/home/peter.maydell/qemu/linux-user/syscall.c:6946:16: error: implicit declaration of function 'sys_futex_time64'; did you mean 'safe_futex_time64'? [-Werror=implicit-function-declaration]
return sys_futex_time64(uaddr, op, val, timeout, uaddr2, val3);
^~~~~~~~~~~~~~~~
safe_futex_time64Compile failure, x86-64 with clang:
/home/petmay01/linaro/qemu-for-merges/linux-user/syscall.c:1291:24:
error: unused function 'copy_to_user_timezone' [-Werror,-Wunused-function]
static inline abi_long copy_to_user_timezone(abi_ulong target_tz_addr,
^
1 error generated. /home/petmay01/linaro/qemu-for-merges/rules.mak:69: recipe for target 'linux-user/syscall.o' failed
thanks
-- PMM
Le 16/03/2020 à 20:17, Peter Maydell a écrit :
Quoted 33 lines · Laurent Vivier
Quoted 11 lines
The following changes since commit
373c7068dd610e97f0b551b5a6d0a27cd6da4506:qemu.nsi: Install Sphinx documentation (2020-03-09 16:45:00 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.gittags/linux-user-for-5.0-pull-requestfor you to fetch changes up to
63e05b3db1e5f0560ae579050c53d1ee36ed5aca:Quoted 7 lines
linux-user, openrisc: sync syscall numbers with kernel v5.5 (2020-03-16 14:20:07 +0100)
----------------------------------------------------------------
update syscall numbers to linux 5.5 (with scripts) add futex_time64/clock_gettime64/clock_settime64 addAT_EXECFN
Emulatex86_64vsyscallsCompile failure, aarch32:
/home/peter.maydell/qemu/linux-user/syscall.c: In function 'do_sys_futex':/home/peter.maydell/qemu/linux-user/syscall.c:6946:16: error: implicit declaration of function 'sys_futex_time64'; did you mean 'safe_futex_time64'? [-Werror=implicit-function-declaration]return sys_futex_time64(uaddr, op, val, timeout, uaddr2, val3); ^~~~~~~~~~~~~~~~ safe_futex_time64Compile failure, x86-64 with clang:
Quoted 8 lines
/home/petmay01/linaro/qemu-for-merges/linux-user/syscall.c:1291:24:
error: unused function 'copy_to_user_timezone' [-Werror,-Wunused-function]
static inlineabi_longcopy_to_user_timezone(abi_ulongtarget_tz_addr,^1 error generated.
/home/petmay01/linaro/qemu-for-merges/rules.mak:69: recipe for target 'linux-user/syscall.o' failed
Thank you.
I remove it from the list and re-send the pull request.
Laurent
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/38] Linux user for 5.0 patches
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
a5c430a linux-user, openrisc: sync syscall numbers with kernel v5.5 eb272b1 linux-user, nios2: sync syscall numbers with kernel v5.5 22c8c60 linux-user, aarch64: sync syscall numbers with kernel v5.5 ff2d7fb scripts: add a script to generate syscall_nr.h
e61c688 linux-user,mips: update syscall-args-o32.c.inc
2d3af3b linux-user,mips: move content of mips_syscall_args b059ae6 linux-user: update syscall.tbl from linux 0bf999f9c5e7 e1673a3 linux-user, scripts: add a script to update syscall.tbl 66cb246 linux-user, mips64: add syscall table generation support 1a19648 linux-user, mips: add syscall table generation support 0735d9e linux-user, x86_64: add syscall table generation support 082a58f linux-user, i386: add syscall table generation support 3725dc8 linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl c4e0a3a linux-user, sparc, sparc64: add syscall table generation support b587fb3 linux-user, s390x: add syscall table generation support b5216b5 linux-user, s390x: remove syscall definitions for !TARGET_S390X 8386d4c linux-user, ppc: add syscall table generation support 787b89e linux-user, arm: add syscall table generation support f623fac linux-user, microblaze: add syscall table generation support 0257a88 linux-user, sh4: add syscall table generation support 172cbeb linux-user, xtensa: add syscall table generation support 5ec8555 linux-user, m68k: add syscall table generation support 0519335 linux-user, hppa: add syscall table generation support 586725d linux-user, alpha: add syscall table generation support a3ebf49 linux-user: introduce parameters to generate syscall_nr.h a129601 linux-user/riscv: Update the syscall_nr's to the 5.5 kernel 29571d4 linux-user: Support futex_time64
78be30d linux-user/syscall: Add support for clock_gettime64/clock_settime64 3781280 linux-user: Protect more syscalls
1e4fd4c linux-user: Update TASK_UNMAPPED_BASE for aarch64 ffe5816 linux-user: fix socket() strace
af7e366 linux-user: do prlimit selectively
de1e86d linux-user: Add AT_EXECFN auxval
0045e32 linux-user: Flush out implementation of gettimeofday dcc5ae2 linux-user: Add x86_64 vsyscall page to /proc/self/maps aca467b linux-user/i386: Emulate x86_64 vsyscalls
6828cf1 linux-user/i386: Split out gen_signal
e14979b target/i386: Renumber EXCP_SYSCALL
=== OUTPUT BEGIN ===
1/38 Checking commit e14979b2eea7 (target/i386: Renumber EXCP_SYSCALL)
2/38 Checking commit 6828cf104a6a (linux-user/i386: Split out gen_signal)
3/38 Checking commit aca467bf22c7 (linux-user/i386: Emulate x86_64 vsyscalls)
4/38 Checking commit dcc5ae296a75 (linux-user: Add x86_64 vsyscall page to /proc/self/maps) 5/38 Checking commit 0045e32d7be7 (linux-user: Flush out implementation of gettimeofday) 6/38 Checking commit de1e86dceed4 (linux-user: Add AT_EXECFN auxval)
7/38 Checking commit af7e3667c6cf (linux-user: do prlimit selectively)
8/38 Checking commit ffe5816ec43b (linux-user: fix socket() strace)
9/38 Checking commit 1e4fd4cc3de4 (linux-user: Update TASK_UNMAPPED_BASE for aarch64) 10/38 Checking commit 37812805e354 (linux-user: Protect more syscalls)
11/38 Checking commit 78be30d9711a (linux-user/syscall: Add support for clock_gettime64/clock_settime64) 12/38 Checking commit 29571d4f51fe (linux-user: Support futex_time64)
WARNING: architecture specific defines should be avoided
#26: FILE: linux-user/syscall.c:248:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #29: FILE: linux-user/syscall.c:251:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #40: FILE: linux-user/syscall.c:303:
+#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \
WARNING: architecture specific defines should be avoided #46: FILE: linux-user/syscall.c:309:
+#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64))
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #58: FILE: linux-user/syscall.c:776:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #62: FILE: linux-user/syscall.c:780:
+#if defined(__NR_futex_time64)
ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #87: FILE: linux-user/syscall.c:6930:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #93: FILE: linux-user/syscall.c:6936:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #99: FILE: linux-user/syscall.c:6942:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #112: FILE: linux-user/syscall.c:6955:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #117: FILE: linux-user/syscall.c:6960:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #124: FILE: linux-user/syscall.c:6967:
+#if defined(__NR_futex)
WARNING: line over 80 characters
#171: FILE: linux-user/syscall.c:7030:
+static int do_futex_time64(target_ulong uaddr, int op, int val, target_ulong timeout,
WARNING: Block comments use a leading /* on a separate line #177: FILE: linux-user/syscall.c:7036:
+ /* ??? We assume FUTEX_* constants are the same on both host
WARNING: Block comments use * on subsequent lines
#178: FILE: linux-user/syscall.c:7037:
+ /* ??? We assume FUTEX_* constants are the same on both host
+ and target. */
WARNING: Block comments use a trailing */ on a separate line #178: FILE: linux-user/syscall.c:7037:
+ and target. */
WARNING: Block comments use a leading /* on a separate line #202: FILE: linux-user/syscall.c:7061:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
WARNING: Block comments use * on subsequent lines
#203: FILE: linux-user/syscall.c:7062:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
+ TIMEOUT parameter is interpreted as a uint32_t by the kernel.
WARNING: Block comments use a trailing */ on a separate line #206: FILE: linux-user/syscall.c:7065:
+ since it's not compared to guest memory. */
total: 24 errors, 19 warnings, 212 lines checked
Patch 12/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
13/38 Checking commit a129601e0679 (linux-user/riscv: Update the syscall_nr's to the 5.5 kernel)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#14:
new file mode 100644
total: 0 errors, 1 warnings, 898 lines checked
Patch 13/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/38 Checking commit a3ebf497a3cd (linux-user: introduce parameters to generate syscall_nr.h) 15/38 Checking commit 586725dced44 (linux-user, alpha: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 536 lines checked
Patch 15/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/38 Checking commit 05193353112d (linux-user, hppa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 491 lines checked
Patch 16/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/38 Checking commit 5ec8555440ac (linux-user, m68k: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 493 lines checked
Patch 17/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/38 Checking commit 172cbeb90a08 (linux-user, xtensa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#47:
new file mode 100644
total: 0 errors, 1 warnings, 464 lines checked
Patch 18/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/38 Checking commit 0257a884cf0d (linux-user, sh4: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 19/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/38 Checking commit f623facdcca6 (linux-user, microblaze: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 501 lines checked
Patch 20/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
21/38 Checking commit 787b89eb71bf (linux-user, arm: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #62:
new file mode 100644
total: 0 errors, 1 warnings, 531 lines checked
Patch 21/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
22/38 Checking commit 8386d4cabadf (linux-user, ppc: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 608 lines checked
Patch 22/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
23/38 Checking commit b5216b513e16 (linux-user, s390x: remove syscall definitions for !TARGET_S390X) 24/38 Checking commit b587fb37cad9 (linux-user, s390x: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 498 lines checked
Patch 24/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
25/38 Checking commit c4e0a3af84d6 (linux-user, sparc, sparc64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#60:
new file mode 100644
total: 0 errors, 1 warnings, 1072 lines checked
Patch 25/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/38 Checking commit 3725dc887c53 (linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl) 27/38 Checking commit 082a58f0d348 (linux-user, i386: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #50:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 27/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
28/38 Checking commit 0735d9ec6fd8 (linux-user, x86_64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#48:
new file mode 100644
total: 0 errors, 1 warnings, 455 lines checked
Patch 28/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/38 Checking commit 1a196486af12 (linux-user, mips: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 488 lines checked
Patch 29/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/38 Checking commit 66cb24669452 (linux-user, mips64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#61:
new file mode 100644
total: 0 errors, 1 warnings, 802 lines checked
Patch 30/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
31/38 Checking commit e1673a367170 (linux-user, scripts: add a script to update syscall.tbl)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 56 lines checked
Patch 31/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
32/38 Checking commit b059ae6bc332 (linux-user: update syscall.tbl from linux 0bf999f9c5e7) 33/38 Checking commit 2d3af3bad3cd (linux-user,mips: move content of mips_syscall_args)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #470:
new file mode 100644
total: 0 errors, 1 warnings, 886 lines checked
Patch 33/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
34/38 Checking commit e61c6889354f (linux-user,mips: update syscall-args-o32.c.inc)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #908:
new file mode 100755
total: 0 errors, 1 warnings, 938 lines checked
Patch 34/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
35/38 Checking commit ff2d7fb77e00 (scripts: add a script to generate syscall_nr.h)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 109 lines checked
Patch 35/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
36/38 Checking commit 22c8c60bc6d1 (linux-user, aarch64: sync syscall numbers with kernel v5.5) 37/38 Checking commit eb272b1cc2c1 (linux-user, nios2: sync syscall numbers with kernel v5.5) 38/38 Checking commit a5c430a0f6e0 (linux-user, openrisc: sync syscall numbers with kernel v5.5) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/38] Linux user for 5.0 patches
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Switched to a new branch 'test'
fee33bd linux-user, openrisc: sync syscall numbers with kernel v5.5 fd2f311 linux-user, nios2: sync syscall numbers with kernel v5.5 6a5d29c linux-user, aarch64: sync syscall numbers with kernel v5.5 0f61c49 scripts: add a script to generate syscall_nr.h
ba74d13 linux-user,mips: update syscall-args-o32.c.inc
6093ee8 linux-user,mips: move content of mips_syscall_args 329d3cf linux-user: update syscall.tbl from linux 0bf999f9c5e7 fdd68d1 linux-user, scripts: add a script to update syscall.tbl 39929e8 linux-user, mips64: add syscall table generation support cd6dd35 linux-user, mips: add syscall table generation support 890ff9d linux-user, x86_64: add syscall table generation support 353fb76 linux-user, i386: add syscall table generation support 9db49be linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl 9da00a8 linux-user, sparc, sparc64: add syscall table generation support e7dfa49 linux-user, s390x: add syscall table generation support 07108d6 linux-user, s390x: remove syscall definitions for !TARGET_S390X 0a1acf7 linux-user, ppc: add syscall table generation support 48126a9 linux-user, arm: add syscall table generation support 13a5cdd linux-user, microblaze: add syscall table generation support ea958ad linux-user, sh4: add syscall table generation support 2599c73 linux-user, xtensa: add syscall table generation support 9764b87 linux-user, m68k: add syscall table generation support 52d7b45 linux-user, hppa: add syscall table generation support baeb698 linux-user, alpha: add syscall table generation support b3d6a3d linux-user: introduce parameters to generate syscall_nr.h c4be834 linux-user/riscv: Update the syscall_nr's to the 5.5 kernel e9992a7 linux-user: Support futex_time64
022b88e linux-user/syscall: Add support for clock_gettime64/clock_settime64 0bf2c2d linux-user: Protect more syscalls
fc4fcbe linux-user: Update TASK_UNMAPPED_BASE for aarch64 0e97ba7 linux-user: fix socket() strace
99fda14 linux-user: do prlimit selectively
8eb735a linux-user: Add AT_EXECFN auxval
571a225 linux-user: Flush out implementation of gettimeofday 092c4cc linux-user: Add x86_64 vsyscall page to /proc/self/maps d1a6687 linux-user/i386: Emulate x86_64 vsyscalls
169e4fb linux-user/i386: Split out gen_signal
dfc6a82 target/i386: Renumber EXCP_SYSCALL
=== OUTPUT BEGIN ===
1/38 Checking commit dfc6a82f8f0a (target/i386: Renumber EXCP_SYSCALL)
2/38 Checking commit 169e4fb16716 (linux-user/i386: Split out gen_signal)
3/38 Checking commit d1a668759f5b (linux-user/i386: Emulate x86_64 vsyscalls)
4/38 Checking commit 092c4ccea82d (linux-user: Add x86_64 vsyscall page to /proc/self/maps) 5/38 Checking commit 571a225e5502 (linux-user: Flush out implementation of gettimeofday) 6/38 Checking commit 8eb735a75f6a (linux-user: Add AT_EXECFN auxval)
7/38 Checking commit 99fda143c672 (linux-user: do prlimit selectively)
8/38 Checking commit 0e97ba7c8e8e (linux-user: fix socket() strace)
9/38 Checking commit fc4fcbe8aae4 (linux-user: Update TASK_UNMAPPED_BASE for aarch64) 10/38 Checking commit 0bf2c2d4158a (linux-user: Protect more syscalls)
11/38 Checking commit 022b88e1c6bd (linux-user/syscall: Add support for clock_gettime64/clock_settime64) 12/38 Checking commit e9992a7e4a00 (linux-user: Support futex_time64)
WARNING: architecture specific defines should be avoided
#26: FILE: linux-user/syscall.c:248:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #29: FILE: linux-user/syscall.c:251:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #40: FILE: linux-user/syscall.c:303:
+#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \
WARNING: architecture specific defines should be avoided #46: FILE: linux-user/syscall.c:309:
+#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64))
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #58: FILE: linux-user/syscall.c:776:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #62: FILE: linux-user/syscall.c:780:
+#if defined(__NR_futex_time64)
ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #87: FILE: linux-user/syscall.c:6930:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #93: FILE: linux-user/syscall.c:6936:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #99: FILE: linux-user/syscall.c:6942:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #112: FILE: linux-user/syscall.c:6955:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #117: FILE: linux-user/syscall.c:6960:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #124: FILE: linux-user/syscall.c:6967:
+#if defined(__NR_futex)
WARNING: line over 80 characters
#171: FILE: linux-user/syscall.c:7030:
+static int do_futex_time64(target_ulong uaddr, int op, int val, target_ulong timeout,
WARNING: Block comments use a leading /* on a separate line #177: FILE: linux-user/syscall.c:7036:
+ /* ??? We assume FUTEX_* constants are the same on both host
WARNING: Block comments use * on subsequent lines
#178: FILE: linux-user/syscall.c:7037:
+ /* ??? We assume FUTEX_* constants are the same on both host
+ and target. */
WARNING: Block comments use a trailing */ on a separate line #178: FILE: linux-user/syscall.c:7037:
+ and target. */
WARNING: Block comments use a leading /* on a separate line #202: FILE: linux-user/syscall.c:7061:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
WARNING: Block comments use * on subsequent lines
#203: FILE: linux-user/syscall.c:7062:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
+ TIMEOUT parameter is interpreted as a uint32_t by the kernel.
WARNING: Block comments use a trailing */ on a separate line #206: FILE: linux-user/syscall.c:7065:
+ since it's not compared to guest memory. */
total: 24 errors, 19 warnings, 212 lines checked
Patch 12/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
13/38 Checking commit c4be83414339 (linux-user/riscv: Update the syscall_nr's to the 5.5 kernel)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#14:
new file mode 100644
total: 0 errors, 1 warnings, 898 lines checked
Patch 13/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/38 Checking commit b3d6a3dcfe70 (linux-user: introduce parameters to generate syscall_nr.h) 15/38 Checking commit baeb698b9306 (linux-user, alpha: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 536 lines checked
Patch 15/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/38 Checking commit 52d7b45efd03 (linux-user, hppa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 491 lines checked
Patch 16/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/38 Checking commit 9764b87461da (linux-user, m68k: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 493 lines checked
Patch 17/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/38 Checking commit 2599c73b5bdb (linux-user, xtensa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#47:
new file mode 100644
total: 0 errors, 1 warnings, 464 lines checked
Patch 18/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/38 Checking commit ea958add11f3 (linux-user, sh4: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 19/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/38 Checking commit 13a5cddfae33 (linux-user, microblaze: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 501 lines checked
Patch 20/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
21/38 Checking commit 48126a917e3d (linux-user, arm: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #62:
new file mode 100644
total: 0 errors, 1 warnings, 531 lines checked
Patch 21/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
22/38 Checking commit 0a1acf77ecde (linux-user, ppc: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 608 lines checked
Patch 22/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
23/38 Checking commit 07108d6e6087 (linux-user, s390x: remove syscall definitions for !TARGET_S390X) 24/38 Checking commit e7dfa49f0460 (linux-user, s390x: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 498 lines checked
Patch 24/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
25/38 Checking commit 9da00a843cbf (linux-user, sparc, sparc64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#60:
new file mode 100644
total: 0 errors, 1 warnings, 1072 lines checked
Patch 25/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/38 Checking commit 9db49bea0808 (linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl) 27/38 Checking commit 353fb76ec26f (linux-user, i386: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #50:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 27/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
28/38 Checking commit 890ff9d1b11d (linux-user, x86_64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#48:
new file mode 100644
total: 0 errors, 1 warnings, 455 lines checked
Patch 28/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/38 Checking commit cd6dd35e397a (linux-user, mips: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 488 lines checked
Patch 29/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/38 Checking commit 39929e8aeb2c (linux-user, mips64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#61:
new file mode 100644
total: 0 errors, 1 warnings, 802 lines checked
Patch 30/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
31/38 Checking commit fdd68d1d7569 (linux-user, scripts: add a script to update syscall.tbl)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 56 lines checked
Patch 31/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
32/38 Checking commit 329d3cf038c3 (linux-user: update syscall.tbl from linux 0bf999f9c5e7) 33/38 Checking commit 6093ee87e3ba (linux-user,mips: move content of mips_syscall_args)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #470:
new file mode 100644
total: 0 errors, 1 warnings, 886 lines checked
Patch 33/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
34/38 Checking commit ba74d13404a4 (linux-user,mips: update syscall-args-o32.c.inc)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #908:
new file mode 100755
total: 0 errors, 1 warnings, 938 lines checked
Patch 34/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
35/38 Checking commit 0f61c4904ada (scripts: add a script to generate syscall_nr.h)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 109 lines checked
Patch 35/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
36/38 Checking commit 6a5d29c054a4 (linux-user, aarch64: sync syscall numbers with kernel v5.5) 37/38 Checking commit fd2f311991d3 (linux-user, nios2: sync syscall numbers with kernel v5.5) 38/38 Checking commit fee33bdd3665 (linux-user, openrisc: sync syscall numbers with kernel v5.5) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/38] Linux user for 5.0 patches
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Switched to a new branch 'test'
10fafb1 linux-user, openrisc: sync syscall numbers with kernel v5.5 6782f6a linux-user, nios2: sync syscall numbers with kernel v5.5 9f6200d linux-user, aarch64: sync syscall numbers with kernel v5.5 45ee667 scripts: add a script to generate syscall_nr.h
1f2ea4d linux-user,mips: update syscall-args-o32.c.inc
d23d2a1 linux-user,mips: move content of mips_syscall_args f41ff3c linux-user: update syscall.tbl from linux 0bf999f9c5e7 19a0e30 linux-user, scripts: add a script to update syscall.tbl 4eec500 linux-user, mips64: add syscall table generation support aeec810 linux-user, mips: add syscall table generation support 9815b8d linux-user, x86_64: add syscall table generation support 2695951 linux-user, i386: add syscall table generation support 1459c30 linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl 4158bb5 linux-user, sparc, sparc64: add syscall table generation support 91ebd50 linux-user, s390x: add syscall table generation support b456bac linux-user, s390x: remove syscall definitions for !TARGET_S390X 9a58453 linux-user, ppc: add syscall table generation support 01a0d3e linux-user, arm: add syscall table generation support 5c48386 linux-user, microblaze: add syscall table generation support c908a6a linux-user, sh4: add syscall table generation support 4a37ce6 linux-user, xtensa: add syscall table generation support e6f088c linux-user, m68k: add syscall table generation support b3099a5 linux-user, hppa: add syscall table generation support 550b771 linux-user, alpha: add syscall table generation support af30485 linux-user: introduce parameters to generate syscall_nr.h 136c2bf linux-user/riscv: Update the syscall_nr's to the 5.5 kernel b2dec49 linux-user: Support futex_time64
44d988e linux-user/syscall: Add support for clock_gettime64/clock_settime64 96402ae linux-user: Protect more syscalls
8b3e85d linux-user: Update TASK_UNMAPPED_BASE for aarch64 0cbf17e linux-user: fix socket() strace
91bd410 linux-user: do prlimit selectively
403d5bc linux-user: Add AT_EXECFN auxval
06b7595 linux-user: Flush out implementation of gettimeofday 4050585 linux-user: Add x86_64 vsyscall page to /proc/self/maps 1db8bf7 linux-user/i386: Emulate x86_64 vsyscalls
f47d45b linux-user/i386: Split out gen_signal
34bb353 target/i386: Renumber EXCP_SYSCALL
=== OUTPUT BEGIN ===
1/38 Checking commit 34bb353a89ec (target/i386: Renumber EXCP_SYSCALL)
2/38 Checking commit f47d45b3bace (linux-user/i386: Split out gen_signal)
3/38 Checking commit 1db8bf765b39 (linux-user/i386: Emulate x86_64 vsyscalls)
4/38 Checking commit 405058564933 (linux-user: Add x86_64 vsyscall page to /proc/self/maps) 5/38 Checking commit 06b75956b14e (linux-user: Flush out implementation of gettimeofday) 6/38 Checking commit 403d5bca8b6d (linux-user: Add AT_EXECFN auxval)
7/38 Checking commit 91bd41044ad3 (linux-user: do prlimit selectively)
8/38 Checking commit 0cbf17e17283 (linux-user: fix socket() strace)
9/38 Checking commit 8b3e85d562b1 (linux-user: Update TASK_UNMAPPED_BASE for aarch64) 10/38 Checking commit 96402ae791e6 (linux-user: Protect more syscalls)
11/38 Checking commit 44d988e75f99 (linux-user/syscall: Add support for clock_gettime64/clock_settime64) 12/38 Checking commit b2dec497276d (linux-user: Support futex_time64)
WARNING: architecture specific defines should be avoided
#26: FILE: linux-user/syscall.c:248:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #29: FILE: linux-user/syscall.c:251:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #40: FILE: linux-user/syscall.c:303:
+#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \
WARNING: architecture specific defines should be avoided #46: FILE: linux-user/syscall.c:309:
+#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64))
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #58: FILE: linux-user/syscall.c:776:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #62: FILE: linux-user/syscall.c:780:
+#if defined(__NR_futex_time64)
ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #87: FILE: linux-user/syscall.c:6930:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #93: FILE: linux-user/syscall.c:6936:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #99: FILE: linux-user/syscall.c:6942:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #112: FILE: linux-user/syscall.c:6955:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #117: FILE: linux-user/syscall.c:6960:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #124: FILE: linux-user/syscall.c:6967:
+#if defined(__NR_futex)
WARNING: line over 80 characters
#171: FILE: linux-user/syscall.c:7030:
+static int do_futex_time64(target_ulong uaddr, int op, int val, target_ulong timeout,
WARNING: Block comments use a leading /* on a separate line #177: FILE: linux-user/syscall.c:7036:
+ /* ??? We assume FUTEX_* constants are the same on both host
WARNING: Block comments use * on subsequent lines
#178: FILE: linux-user/syscall.c:7037:
+ /* ??? We assume FUTEX_* constants are the same on both host
+ and target. */
WARNING: Block comments use a trailing */ on a separate line #178: FILE: linux-user/syscall.c:7037:
+ and target. */
WARNING: Block comments use a leading /* on a separate line #202: FILE: linux-user/syscall.c:7061:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
WARNING: Block comments use * on subsequent lines
#203: FILE: linux-user/syscall.c:7062:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
+ TIMEOUT parameter is interpreted as a uint32_t by the kernel.
WARNING: Block comments use a trailing */ on a separate line #206: FILE: linux-user/syscall.c:7065:
+ since it's not compared to guest memory. */
total: 24 errors, 19 warnings, 212 lines checked
Patch 12/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
13/38 Checking commit 136c2bf1d6c5 (linux-user/riscv: Update the syscall_nr's to the 5.5 kernel)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#14:
new file mode 100644
total: 0 errors, 1 warnings, 898 lines checked
Patch 13/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/38 Checking commit af304858050f (linux-user: introduce parameters to generate syscall_nr.h) 15/38 Checking commit 550b77128c2e (linux-user, alpha: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 536 lines checked
Patch 15/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/38 Checking commit b3099a5f69ea (linux-user, hppa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 491 lines checked
Patch 16/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/38 Checking commit e6f088c503bf (linux-user, m68k: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 493 lines checked
Patch 17/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/38 Checking commit 4a37ce61da27 (linux-user, xtensa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#47:
new file mode 100644
total: 0 errors, 1 warnings, 464 lines checked
Patch 18/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/38 Checking commit c908a6ade856 (linux-user, sh4: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 19/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/38 Checking commit 5c48386eb066 (linux-user, microblaze: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 501 lines checked
Patch 20/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
21/38 Checking commit 01a0d3e7ba67 (linux-user, arm: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #62:
new file mode 100644
total: 0 errors, 1 warnings, 531 lines checked
Patch 21/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
22/38 Checking commit 9a5845309428 (linux-user, ppc: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 608 lines checked
Patch 22/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
23/38 Checking commit b456bac3f69e (linux-user, s390x: remove syscall definitions for !TARGET_S390X) 24/38 Checking commit 91ebd50eb411 (linux-user, s390x: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 498 lines checked
Patch 24/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
25/38 Checking commit 4158bb5c6c01 (linux-user, sparc, sparc64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#60:
new file mode 100644
total: 0 errors, 1 warnings, 1072 lines checked
Patch 25/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/38 Checking commit 1459c30a1c94 (linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl) 27/38 Checking commit 2695951d66ff (linux-user, i386: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #50:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 27/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
28/38 Checking commit 9815b8d388bf (linux-user, x86_64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#48:
new file mode 100644
total: 0 errors, 1 warnings, 455 lines checked
Patch 28/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/38 Checking commit aeec8106c76f (linux-user, mips: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 488 lines checked
Patch 29/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/38 Checking commit 4eec50017ab5 (linux-user, mips64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#61:
new file mode 100644
total: 0 errors, 1 warnings, 802 lines checked
Patch 30/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
31/38 Checking commit 19a0e30f46a8 (linux-user, scripts: add a script to update syscall.tbl)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 56 lines checked
Patch 31/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
32/38 Checking commit f41ff3c5579b (linux-user: update syscall.tbl from linux 0bf999f9c5e7) 33/38 Checking commit d23d2a1599de (linux-user,mips: move content of mips_syscall_args)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #470:
new file mode 100644
total: 0 errors, 1 warnings, 886 lines checked
Patch 33/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
34/38 Checking commit 1f2ea4d95fc4 (linux-user,mips: update syscall-args-o32.c.inc)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #908:
new file mode 100755
total: 0 errors, 1 warnings, 938 lines checked
Patch 34/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
35/38 Checking commit 45ee6674ac01 (scripts: add a script to generate syscall_nr.h)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 109 lines checked
Patch 35/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
36/38 Checking commit 9f6200d52184 (linux-user, aarch64: sync syscall numbers with kernel v5.5) 37/38 Checking commit 6782f6a378da (linux-user, nios2: sync syscall numbers with kernel v5.5) 38/38 Checking commit 10fafb17f794 (linux-user, openrisc: sync syscall numbers with kernel v5.5) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/38] Linux user for 5.0 patches
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'e0e5c4d41 linux-user, openrisc: sync syscall numbers with kernel v5.5 2910e84 linux-user, nios2: sync syscall numbers with kernel v5.5 8c86b7e linux-user, aarch64: sync syscall numbers with kernel v5.5 6e455d8 scripts: add a script to generate syscall_nr.h
0e2de33 linux-user,mips: update syscall-args-o32.c.inc
d4f3bcb linux-user,mips: move content of mips_syscall_args 480aff5 linux-user: update syscall.tbl from linux 0bf999f9c5e7 3fc8443 linux-user, scripts: add a script to update syscall.tbl 0948216 linux-user, mips64: add syscall table generation support b9ae2f7 linux-user, mips: add syscall table generation support a047c7e linux-user, x86_64: add syscall table generation support 9585b9f linux-user, i386: add syscall table generation support 95211fc linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl f1b32e0 linux-user, sparc, sparc64: add syscall table generation support 54f036b linux-user, s390x: add syscall table generation support 6a847de linux-user, s390x: remove syscall definitions for !TARGET_S390X 9e0df32 linux-user, ppc: add syscall table generation support ed29cb5 linux-user, arm: add syscall table generation support 50fd494 linux-user, microblaze: add syscall table generation support bfe6334 linux-user, sh4: add syscall table generation support 976cf65 linux-user, xtensa: add syscall table generation support e541b96 linux-user, m68k: add syscall table generation support 192f551 linux-user, hppa: add syscall table generation support feeb587 linux-user, alpha: add syscall table generation support 9eab8db0 linux-user: introduce parameters to generate syscall_nr.h c360ebe linux-user/riscv: Update the syscall_nr's to the 5.5 kernel dd8dcb9 linux-user: Support futex_time64
b3a71ee linux-user/syscall: Add support for clock_gettime64/clock_settime64 e16637d linux-user: Protect more syscalls
8c0e24b linux-user: Update TASK_UNMAPPED_BASE for aarch64 8076da7 linux-user: fix socket() strace
a8ead8b linux-user: do prlimit selectively
53c5852 linux-user: Add AT_EXECFN auxval
8071d57 linux-user: Flush out implementation of gettimeofday 79ab97a linux-user: Add x86_64 vsyscall page to /proc/self/maps 1623ac6 linux-user/i386: Emulate x86_64 vsyscalls
0c9b392 linux-user/i386: Split out gen_signal
6b005bd target/i386: Renumber EXCP_SYSCALL
=== OUTPUT BEGIN ===
1/38 Checking commit 6b005bde41b2 (target/i386: Renumber EXCP_SYSCALL)
2/38 Checking commit 0c9b3925c43e (linux-user/i386: Split out gen_signal)
3/38 Checking commit 1623ac6f2365 (linux-user/i386: Emulate x86_64 vsyscalls)
4/38 Checking commit 79ab97a59627 (linux-user: Add x86_64 vsyscall page to /proc/self/maps) 5/38 Checking commit 8071d573d622 (linux-user: Flush out implementation of gettimeofday) 6/38 Checking commit 53c58520ac4a (linux-user: Add AT_EXECFN auxval)
7/38 Checking commit a8ead8b1c548 (linux-user: do prlimit selectively)
8/38 Checking commit 8076da785c55 (linux-user: fix socket() strace)
9/38 Checking commit 8c0e24b13310 (linux-user: Update TASK_UNMAPPED_BASE for aarch64) 10/38 Checking commit e16637d2e34d (linux-user: Protect more syscalls)
11/38 Checking commit b3a71ee542ba (linux-user/syscall: Add support for clock_gettime64/clock_settime64) 12/38 Checking commit dd8dcb9f6218 (linux-user: Support futex_time64)
WARNING: architecture specific defines should be avoided
#26: FILE: linux-user/syscall.c:248:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #29: FILE: linux-user/syscall.c:251:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #40: FILE: linux-user/syscall.c:303:
+#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \
WARNING: architecture specific defines should be avoided #46: FILE: linux-user/syscall.c:309:
+#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64))
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #58: FILE: linux-user/syscall.c:776:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #62: FILE: linux-user/syscall.c:780:
+#if defined(__NR_futex_time64)
ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #87: FILE: linux-user/syscall.c:6930:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #93: FILE: linux-user/syscall.c:6936:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #99: FILE: linux-user/syscall.c:6942:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #112: FILE: linux-user/syscall.c:6955:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #117: FILE: linux-user/syscall.c:6960:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #124: FILE: linux-user/syscall.c:6967:
+#if defined(__NR_futex)
WARNING: line over 80 characters
#171: FILE: linux-user/syscall.c:7030:
+static int do_futex_time64(target_ulong uaddr, int op, int val, target_ulong timeout,
WARNING: Block comments use a leading /* on a separate line #177: FILE: linux-user/syscall.c:7036:
+ /* ??? We assume FUTEX_* constants are the same on both host
WARNING: Block comments use * on subsequent lines
#178: FILE: linux-user/syscall.c:7037:
+ /* ??? We assume FUTEX_* constants are the same on both host
+ and target. */
WARNING: Block comments use a trailing */ on a separate line #178: FILE: linux-user/syscall.c:7037:
+ and target. */
WARNING: Block comments use a leading /* on a separate line #202: FILE: linux-user/syscall.c:7061:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
WARNING: Block comments use * on subsequent lines
#203: FILE: linux-user/syscall.c:7062:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
+ TIMEOUT parameter is interpreted as a uint32_t by the kernel.
WARNING: Block comments use a trailing */ on a separate line #206: FILE: linux-user/syscall.c:7065:
+ since it's not compared to guest memory. */
total: 24 errors, 19 warnings, 212 lines checked
Patch 12/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
13/38 Checking commit c360ebe7de7c (linux-user/riscv: Update the syscall_nr's to the 5.5 kernel)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#14:
new file mode 100644
total: 0 errors, 1 warnings, 898 lines checked
Patch 13/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/38 Checking commit 9eab8db04760 (linux-user: introduce parameters to generate syscall_nr.h) 15/38 Checking commit feeb58754c64 (linux-user, alpha: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 536 lines checked
Patch 15/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/38 Checking commit 192f5517224c (linux-user, hppa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 491 lines checked
Patch 16/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/38 Checking commit e541b963923a (linux-user, m68k: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 493 lines checked
Patch 17/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/38 Checking commit 976cf651bda4 (linux-user, xtensa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#47:
new file mode 100644
total: 0 errors, 1 warnings, 464 lines checked
Patch 18/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/38 Checking commit bfe633493e3f (linux-user, sh4: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 19/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/38 Checking commit 50fd494f1955 (linux-user, microblaze: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 501 lines checked
Patch 20/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
21/38 Checking commit ed29cb5bbefd (linux-user, arm: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #62:
new file mode 100644
total: 0 errors, 1 warnings, 531 lines checked
Patch 21/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
22/38 Checking commit 9e0df327c4ad (linux-user, ppc: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 608 lines checked
Patch 22/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
23/38 Checking commit 6a847de9f011 (linux-user, s390x: remove syscall definitions for !TARGET_S390X) 24/38 Checking commit 54f036b32733 (linux-user, s390x: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 498 lines checked
Patch 24/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
25/38 Checking commit f1b32e0612eb (linux-user, sparc, sparc64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#60:
new file mode 100644
total: 0 errors, 1 warnings, 1072 lines checked
Patch 25/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/38 Checking commit 95211fc87250 (linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl) 27/38 Checking commit 9585b9f23dee (linux-user, i386: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #50:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 27/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
28/38 Checking commit a047c7eb4e5d (linux-user, x86_64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#48:
new file mode 100644
total: 0 errors, 1 warnings, 455 lines checked
Patch 28/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/38 Checking commit b9ae2f7b8c15 (linux-user, mips: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 488 lines checked
Patch 29/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/38 Checking commit 0948216dd07f (linux-user, mips64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#61:
new file mode 100644
total: 0 errors, 1 warnings, 802 lines checked
Patch 30/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
31/38 Checking commit 3fc8443a1f92 (linux-user, scripts: add a script to update syscall.tbl)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 56 lines checked
Patch 31/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
32/38 Checking commit 480aff5b8af6 (linux-user: update syscall.tbl from linux 0bf999f9c5e7) 33/38 Checking commit d4f3bcb3817a (linux-user,mips: move content of mips_syscall_args)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #470:
new file mode 100644
total: 0 errors, 1 warnings, 886 lines checked
Patch 33/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
34/38 Checking commit 0e2de33421e5 (linux-user,mips: update syscall-args-o32.c.inc)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #908:
new file mode 100755
total: 0 errors, 1 warnings, 938 lines checked
Patch 34/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
35/38 Checking commit 6e455d83bfa0 (scripts: add a script to generate syscall_nr.h)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 109 lines checked
Patch 35/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
36/38 Checking commit 8c86b7e22eaf (linux-user, aarch64: sync syscall numbers with kernel v5.5) 37/38 Checking commit 2910e845696d (linux-user, nios2: sync syscall numbers with kernel v5.5) 38/38 Checking commit e0e5c4d41f17 (linux-user, openrisc: sync syscall numbers with kernel v5.5) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Subject: [PULL 00/38] Linux user for 5.0 patches
Message-id: [email protected]
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
1bc4578 linux-user, openrisc: sync syscall numbers with kernel v5.5 275bdae linux-user, nios2: sync syscall numbers with kernel v5.5 d7f7755 linux-user, aarch64: sync syscall numbers with kernel v5.5 d274711 scripts: add a script to generate syscall_nr.h
b3e9680 linux-user,mips: update syscall-args-o32.c.inc
e26a1be linux-user,mips: move content of mips_syscall_args e1cac57 linux-user: update syscall.tbl from linux 0bf999f9c5e7 3a51017 linux-user, scripts: add a script to update syscall.tbl 2c2876d linux-user, mips64: add syscall table generation support 20353f9 linux-user, mips: add syscall table generation support 2760210 linux-user, x86_64: add syscall table generation support c280817 linux-user, i386: add syscall table generation support 1458029 linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl 9478b8e linux-user, sparc, sparc64: add syscall table generation support 1553992 linux-user, s390x: add syscall table generation support fbd36b7 linux-user, s390x: remove syscall definitions for !TARGET_S390X 3c686ee linux-user, ppc: add syscall table generation support 76525c6 linux-user, arm: add syscall table generation support 9402b9f linux-user, microblaze: add syscall table generation support 97fee9a linux-user, sh4: add syscall table generation support ef7c323 linux-user, xtensa: add syscall table generation support a1150d5 linux-user, m68k: add syscall table generation support ceb7559 linux-user, hppa: add syscall table generation support b7160c7 linux-user, alpha: add syscall table generation support 7900d95 linux-user: introduce parameters to generate syscall_nr.h 02ba121 linux-user/riscv: Update the syscall_nr's to the 5.5 kernel 19eb9e3 linux-user: Support futex_time64
b9b6629 linux-user/syscall: Add support for clock_gettime64/clock_settime64 4ebab6c linux-user: Protect more syscalls
baa0e71 linux-user: Update TASK_UNMAPPED_BASE for aarch64 4fcfda0 linux-user: fix socket() strace
13110bd linux-user: do prlimit selectively
a99c994 linux-user: Add AT_EXECFN auxval
b006c5c linux-user: Flush out implementation of gettimeofday 6bdd12d linux-user: Add x86_64 vsyscall page to /proc/self/maps e65d100 linux-user/i386: Emulate x86_64 vsyscalls
e90a705 linux-user/i386: Split out gen_signal
8703c17 target/i386: Renumber EXCP_SYSCALL
=== OUTPUT BEGIN ===
1/38 Checking commit 8703c1770f3e (target/i386: Renumber EXCP_SYSCALL)
2/38 Checking commit e90a7057d9fa (linux-user/i386: Split out gen_signal)
3/38 Checking commit e65d100c17e5 (linux-user/i386: Emulate x86_64 vsyscalls)
4/38 Checking commit 6bdd12d66dcb (linux-user: Add x86_64 vsyscall page to /proc/self/maps) 5/38 Checking commit b006c5c97f9e (linux-user: Flush out implementation of gettimeofday) 6/38 Checking commit a99c994a9a7a (linux-user: Add AT_EXECFN auxval)
7/38 Checking commit 13110bd183ea (linux-user: do prlimit selectively)
8/38 Checking commit 4fcfda0cbd8a (linux-user: fix socket() strace)
9/38 Checking commit baa0e71093cc (linux-user: Update TASK_UNMAPPED_BASE for aarch64) 10/38 Checking commit 4ebab6c489e6 (linux-user: Protect more syscalls)
11/38 Checking commit b9b6629bd329 (linux-user/syscall: Add support for clock_gettime64/clock_settime64) 12/38 Checking commit 19eb9e3d100b (linux-user: Support futex_time64)
WARNING: architecture specific defines should be avoided
#26: FILE: linux-user/syscall.c:248:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #29: FILE: linux-user/syscall.c:251:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #40: FILE: linux-user/syscall.c:303:
+#if (defined(TARGET_NR_futex) && defined(__NR_futex)) || \
WARNING: architecture specific defines should be avoided #46: FILE: linux-user/syscall.c:309:
+#if (defined(TARGET_NR_futex_time64) && defined(__NR_futex_teim64))
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:VxV) #47: FILE: linux-user/syscall.c:310:
+_syscall6(int,sys_futex_time64,int *,uaddr,int,op,int,val,
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#48: FILE: linux-user/syscall.c:311:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #58: FILE: linux-user/syscall.c:776:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #62: FILE: linux-user/syscall.c:780:
+#if defined(__NR_futex_time64)
ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:VxV)
#63: FILE: linux-user/syscall.c:781:
+safe_syscall6(int,futex_time64,int *,uaddr,int,op,int,val, \
^ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:OxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
ERROR: space required after that ',' (ctx:VxV)
#64: FILE: linux-user/syscall.c:782:
+ const struct timespec *,timeout,int *,uaddr2,int,val3)
^
WARNING: architecture specific defines should be avoided #87: FILE: linux-user/syscall.c:6930:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #93: FILE: linux-user/syscall.c:6936:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #99: FILE: linux-user/syscall.c:6942:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #112: FILE: linux-user/syscall.c:6955:
+#if defined(__NR_futex)
WARNING: architecture specific defines should be avoided #117: FILE: linux-user/syscall.c:6960:
+#if defined(__NR_futex_time64)
WARNING: architecture specific defines should be avoided #124: FILE: linux-user/syscall.c:6967:
+#if defined(__NR_futex)
WARNING: line over 80 characters
#171: FILE: linux-user/syscall.c:7030:
+static int do_futex_time64(target_ulong uaddr, int op, int val, target_ulong timeout,
WARNING: Block comments use a leading /* on a separate line #177: FILE: linux-user/syscall.c:7036:
+ /* ??? We assume FUTEX_* constants are the same on both host
WARNING: Block comments use * on subsequent lines
#178: FILE: linux-user/syscall.c:7037:
+ /* ??? We assume FUTEX_* constants are the same on both host
+ and target. */
WARNING: Block comments use a trailing */ on a separate line #178: FILE: linux-user/syscall.c:7037:
+ and target. */
WARNING: Block comments use a leading /* on a separate line #202: FILE: linux-user/syscall.c:7061:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
WARNING: Block comments use * on subsequent lines
#203: FILE: linux-user/syscall.c:7062:
+ /* For FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, and FUTEX_WAKE_OP, the
+ TIMEOUT parameter is interpreted as a uint32_t by the kernel.
WARNING: Block comments use a trailing */ on a separate line #206: FILE: linux-user/syscall.c:7065:
+ since it's not compared to guest memory. */
total: 24 errors, 19 warnings, 212 lines checked
Patch 12/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
13/38 Checking commit 02ba121e2143 (linux-user/riscv: Update the syscall_nr's to the 5.5 kernel)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#14:
new file mode 100644
total: 0 errors, 1 warnings, 898 lines checked
Patch 13/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
14/38 Checking commit 7900d95851ba (linux-user: introduce parameters to generate syscall_nr.h) 15/38 Checking commit b7160c722d10 (linux-user, alpha: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 536 lines checked
Patch 15/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
16/38 Checking commit ceb755998c50 (linux-user, hppa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 491 lines checked
Patch 16/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/38 Checking commit a1150d5fc852 (linux-user, m68k: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #47:
new file mode 100644
total: 0 errors, 1 warnings, 493 lines checked
Patch 17/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
18/38 Checking commit ef7c32304b9d (linux-user, xtensa: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#47:
new file mode 100644
total: 0 errors, 1 warnings, 464 lines checked
Patch 18/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
19/38 Checking commit 97fee9aed4cb (linux-user, sh4: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #48:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 19/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
20/38 Checking commit 9402b9fe0c51 (linux-user, microblaze: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 501 lines checked
Patch 20/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
21/38 Checking commit 76525c62474d (linux-user, arm: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #62:
new file mode 100644
total: 0 errors, 1 warnings, 531 lines checked
Patch 21/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
22/38 Checking commit 3c686ee30c6c (linux-user, ppc: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #74:
new file mode 100644
total: 0 errors, 1 warnings, 608 lines checked
Patch 22/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
23/38 Checking commit fbd36b79f0f2 (linux-user, s390x: remove syscall definitions for !TARGET_S390X) 24/38 Checking commit 1553992d2738 (linux-user, s390x: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#49:
new file mode 100644
total: 0 errors, 1 warnings, 498 lines checked
Patch 24/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
25/38 Checking commit 9478b8eda12b (linux-user, sparc, sparc64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#60:
new file mode 100644
total: 0 errors, 1 warnings, 1072 lines checked
Patch 25/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
26/38 Checking commit 14580297fe50 (linux-user, x86_64, i386: cleanup TARGET_NR_arch_prctl) 27/38 Checking commit c280817ad0a8 (linux-user, i386: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #50:
new file mode 100644
total: 0 errors, 1 warnings, 497 lines checked
Patch 27/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
28/38 Checking commit 2760210c4f0b (linux-user, x86_64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#48:
new file mode 100644
total: 0 errors, 1 warnings, 455 lines checked
Patch 28/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
29/38 Checking commit 20353f9a4a27 (linux-user, mips: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 488 lines checked
Patch 29/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
30/38 Checking commit 2c2876d5c79f (linux-user, mips64: add syscall table generation support)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#61:
new file mode 100644
total: 0 errors, 1 warnings, 802 lines checked
Patch 30/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
31/38 Checking commit 3a51017c7c7b (linux-user, scripts: add a script to update syscall.tbl)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 56 lines checked
Patch 31/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
32/38 Checking commit e1cac57a0539 (linux-user: update syscall.tbl from linux 0bf999f9c5e7) 33/38 Checking commit e26a1beca0f9 (linux-user,mips: move content of mips_syscall_args)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #470:
new file mode 100644
total: 0 errors, 1 warnings, 886 lines checked
Patch 33/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
34/38 Checking commit b3e96808bbe7 (linux-user,mips: update syscall-args-o32.c.inc)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #908:
new file mode 100755
total: 0 errors, 1 warnings, 938 lines checked
Patch 34/38 has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
35/38 Checking commit d2747119be6a (scripts: add a script to generate syscall_nr.h)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100755
total: 0 errors, 1 warnings, 109 lines checked
Patch 35/38 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
36/38 Checking commit d7f77556e91c (linux-user, aarch64: sync syscall numbers with kernel v5.5) 37/38 Checking commit 275bdae45e8c (linux-user, nios2: sync syscall numbers with kernel v5.5) 38/38 Checking commit 1bc45787f51d (linux-user, openrisc: sync syscall numbers with kernel v5.5) === OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]