Module Name: src Committed By: thorpej Date: Mon Sep 20 00:09:34 UTC 2021
Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux32/arch/amd64: linux32_syscall.h linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c linux32_systrace_args.c Log Message: Regen for eventfd. To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.111 -r1.112 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.113 -r1.114 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.17 -r1.18 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.17 -r1.18 \ src/sys/compat/linux/arch/arm/linux_systrace_args.c cvs rdiff -u -r1.118 -r1.119 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.119 -r1.120 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.13 -r1.14 \ src/sys/compat/linux/arch/i386/linux_systrace_args.c cvs rdiff -u -r1.110 -r1.111 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.109 -r1.110 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.82 -r1.83 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.87 -r1.88 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c cvs rdiff -u -r1.83 -r1.84 \ src/sys/compat/linux32/arch/amd64/linux32_syscall.h \ src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h \ src/sys/compat/linux32/arch/amd64/linux32_syscalls.c \ src/sys/compat/linux32/arch/amd64/linux32_sysent.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.112 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.113 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.112 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.112 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.113 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -714,6 +714,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 475 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 478 + /* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ #define LINUX_SYS_recvmmsg 479 @@ -729,6 +732,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_gettime 483 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 485 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 487 Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.112 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.113 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.112 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.112 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.113 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.112 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.113 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1904,8 +1904,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 477 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 478 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 478 = eventfd */ { ns(struct linux_sys_recvmmsg_args), .sy_flags = SYCALL_ARG_PTR, @@ -1934,8 +1935,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 484 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 485 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 485 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 486 = filler */ Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.111 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.112 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.111 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.111 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.112 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1133,6 +1133,11 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_recvmmsg_args { syscallarg(int) s; syscallarg(struct linux_mmsghdr *) msgvec; @@ -1170,6 +1175,12 @@ struct linux_sys_timerfd_gettime_args { }; check_syscall_args(linux_sys_timerfd_gettime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1675,6 +1686,8 @@ int sys___futex_get_robust_list(struct l int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); @@ -1685,6 +1698,8 @@ int linux_sys_timerfd_settime(struct lwp int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/alpha/linux_syscalls.c diff -u src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.113 src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.114 --- src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.113 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/alpha/linux_syscalls.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.113 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.114 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.99 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.100 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.113 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.114 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -537,14 +537,14 @@ const char *const linux_syscallnames[] = /* 475 */ "utimensat", /* 476 */ "#476 (unimplemented signalfd)", /* 477 */ "#477 (unimplemented timerfd)", - /* 478 */ "#478 (unimplemented eventfd)", + /* 478 */ "eventfd", /* 479 */ "recvmmsg", /* 480 */ "fallocate", /* 481 */ "timerfd_create", /* 482 */ "timerfd_settime", /* 483 */ "timerfd_gettime", /* 484 */ "#484 (unimplemented signalfd4)", - /* 485 */ "#485 (unimplemented eventfd2)", + /* 485 */ "eventfd2", /* 486 */ "#486 (unimplemented epoll_create1)", /* 487 */ "dup3", /* 488 */ "pipe2", @@ -1078,14 +1078,14 @@ const char *const altlinux_syscallnames[ /* 475 */ NULL, /* utimensat */ /* 476 */ NULL, /* unimplemented signalfd */ /* 477 */ NULL, /* unimplemented timerfd */ - /* 478 */ NULL, /* unimplemented eventfd */ + /* 478 */ NULL, /* eventfd */ /* 479 */ NULL, /* recvmmsg */ /* 480 */ NULL, /* fallocate */ /* 481 */ NULL, /* timerfd_create */ /* 482 */ NULL, /* timerfd_settime */ /* 483 */ NULL, /* timerfd_gettime */ /* 484 */ NULL, /* unimplemented signalfd4 */ - /* 485 */ NULL, /* unimplemented eventfd2 */ + /* 485 */ NULL, /* eventfd2 */ /* 486 */ NULL, /* unimplemented epoll_create1 */ /* 487 */ NULL, /* dup3 */ /* 488 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.73 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.74 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.73 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -663,6 +663,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 283 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 284 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 285 @@ -675,6 +678,9 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 288 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 290 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 292 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.73 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.74 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.73 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1029,6 +1029,11 @@ struct linux_sys_timerfd_create_args { }; check_syscall_args(linux_sys_timerfd_create) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1059,6 +1064,12 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1532,6 +1543,8 @@ int linux_sys_utimensat(struct lwp *, co int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); @@ -1540,6 +1553,8 @@ int linux_sys_timerfd_gettime(struct lwp int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.73 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.74 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.73 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.73 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -350,13 +350,13 @@ const char *const linux_syscallnames[] = /* 281 */ "#281 (unimplemented epoll_pwait)", /* 282 */ "#282 (unimplemented signalfd)", /* 283 */ "timerfd_create", - /* 284 */ "#284 (unimplemented eventfd)", + /* 284 */ "eventfd", /* 285 */ "fallocate", /* 286 */ "timerfd_settime", /* 287 */ "timerfd_gettime", /* 288 */ "accept4", /* 289 */ "#289 (unimplemented signalfd4)", - /* 290 */ "#290 (unimplemented eventfd2)", + /* 290 */ "eventfd2", /* 291 */ "#291 (unimplemented epoll_create1)", /* 292 */ "dup3", /* 293 */ "pipe2", @@ -894,13 +894,13 @@ const char *const altlinux_syscallnames[ /* 281 */ NULL, /* unimplemented epoll_pwait */ /* 282 */ NULL, /* unimplemented signalfd */ /* 283 */ NULL, /* timerfd_create */ - /* 284 */ NULL, /* unimplemented eventfd */ + /* 284 */ NULL, /* eventfd */ /* 285 */ NULL, /* fallocate */ /* 286 */ NULL, /* timerfd_settime */ /* 287 */ NULL, /* timerfd_gettime */ /* 288 */ NULL, /* accept4 */ /* 289 */ NULL, /* unimplemented signalfd4 */ - /* 290 */ NULL, /* unimplemented eventfd2 */ + /* 290 */ NULL, /* eventfd2 */ /* 291 */ NULL, /* unimplemented epoll_create1 */ /* 292 */ NULL, /* dup3 */ /* 293 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.73 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.74 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.73 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.73 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.65 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.73 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.74 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1285,8 +1285,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 283 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 284 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 284 = eventfd */ { ns(struct linux_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1311,8 +1312,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 289 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 290 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 290 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 291 = filler */ Index: src/sys/compat/linux/arch/amd64/linux_systrace_args.c diff -u src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.17 src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.18 --- src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.17 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Mon Sep 20 00:09:33 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.17 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.18 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1792,6 +1792,13 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_eventfd */ + case 284: { + const struct linux_sys_eventfd_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + *n_args = 1; + break; + } /* linux_sys_fallocate */ case 285: { const struct linux_sys_fallocate_args *p = params; @@ -1830,6 +1837,14 @@ systrace_args(register_t sysnum, const v *n_args = 4; break; } + /* linux_sys_eventfd2 */ + case 290: { + const struct linux_sys_eventfd2_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + iarg[1] = SCARG(p, flags); /* int */ + *n_args = 2; + break; + } /* linux_sys_dup3 */ case 292: { const struct linux_sys_dup3_args *p = params; @@ -4845,6 +4860,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd */ + case 284: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + default: + break; + }; + break; /* linux_sys_fallocate */ case 285: switch(ndx) { @@ -4915,6 +4940,19 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd2 */ + case 290: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; /* linux_sys_dup3 */ case 292: switch(ndx) { @@ -6026,6 +6064,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd */ + case 284: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_fallocate */ case 285: if (ndx == 0 || ndx == 1) @@ -6046,6 +6089,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd2 */ + case 290: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_dup3 */ case 292: if (ndx == 0 || ndx == 1) Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.84 src/sys/compat/linux/arch/arm/linux_syscall.h:1.85 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.84 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.84 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.85 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.72 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -721,6 +721,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 350 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 351 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 352 @@ -730,6 +733,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_gettime 354 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 356 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 358 Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.84 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.85 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.84 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.84 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.85 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.72 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1103,6 +1103,11 @@ struct linux_sys_timerfd_create_args { }; check_syscall_args(linux_sys_timerfd_create) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1125,6 +1130,12 @@ struct linux_sys_timerfd_gettime_args { }; check_syscall_args(linux_sys_timerfd_gettime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1629,12 +1640,16 @@ int linux_sys_utimensat(struct lwp *, co int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.84 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.85 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.84 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.84 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.85 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.72 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.84 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.85 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -386,12 +386,12 @@ const char *const linux_syscallnames[] = /* 348 */ "utimensat", /* 349 */ "#349 (unimplemented signalfd)", /* 350 */ "timerfd_create", - /* 351 */ "#351 (unimplemented eventfd)", + /* 351 */ "eventfd", /* 352 */ "fallocate", /* 353 */ "timerfd_settime", /* 354 */ "timerfd_gettime", /* 355 */ "#355 (unimplemented signalfd4)", - /* 356 */ "#356 (unimplemented eventfd2)", + /* 356 */ "eventfd2", /* 357 */ "#357 (unimplemented epoll_create1)", /* 358 */ "dup3", /* 359 */ "pipe2", @@ -908,12 +908,12 @@ const char *const altlinux_syscallnames[ /* 348 */ NULL, /* utimensat */ /* 349 */ NULL, /* unimplemented signalfd */ /* 350 */ NULL, /* timerfd_create */ - /* 351 */ NULL, /* unimplemented eventfd */ + /* 351 */ NULL, /* eventfd */ /* 352 */ NULL, /* fallocate */ /* 353 */ NULL, /* timerfd_settime */ /* 354 */ NULL, /* timerfd_gettime */ /* 355 */ NULL, /* unimplemented signalfd4 */ - /* 356 */ NULL, /* unimplemented eventfd2 */ + /* 356 */ NULL, /* eventfd2 */ /* 357 */ NULL, /* unimplemented epoll_create1 */ /* 358 */ NULL, /* dup3 */ /* 359 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.84 src/sys/compat/linux/arch/arm/linux_sysent.c:1.85 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.84 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.84 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.85 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.72 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.84 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.85 2021/09/20 00:09:33 thorpej Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1458,8 +1458,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 350 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 351 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 351 = eventfd */ { ns(struct linux_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1479,8 +1480,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 355 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 356 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 356 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 357 = filler */ Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.17 src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.18 --- src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.17 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Mon Sep 20 00:09:33 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.17 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.18 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1891,6 +1891,13 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_eventfd */ + case 351: { + const struct linux_sys_eventfd_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + *n_args = 1; + break; + } /* linux_sys_fallocate */ case 352: { const struct linux_sys_fallocate_args *p = params; @@ -1919,6 +1926,14 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_eventfd2 */ + case 356: { + const struct linux_sys_eventfd2_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + iarg[1] = SCARG(p, flags); /* int */ + *n_args = 2; + break; + } /* linux_sys_dup3 */ case 358: { const struct linux_sys_dup3_args *p = params; @@ -5065,6 +5080,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd */ + case 351: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + default: + break; + }; + break; /* linux_sys_fallocate */ case 352: switch(ndx) { @@ -5116,6 +5141,19 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd2 */ + case 356: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; /* linux_sys_dup3 */ case 358: switch(ndx) { @@ -6341,6 +6379,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd */ + case 351: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_fallocate */ case 352: if (ndx == 0 || ndx == 1) @@ -6356,6 +6399,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd2 */ + case 356: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_dup3 */ case 358: if (ndx == 0 || ndx == 1) Index: src/sys/compat/linux/arch/i386/linux_syscall.h diff -u src/sys/compat/linux/arch/i386/linux_syscall.h:1.118 src/sys/compat/linux/arch/i386/linux_syscall.h:1.119 --- src/sys/compat/linux/arch/i386/linux_syscall.h:1.118 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/i386/linux_syscall.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.118 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.119 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.126 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.127 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -743,6 +743,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 322 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 323 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 324 @@ -752,6 +755,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_gettime 326 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 328 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 330 Index: src/sys/compat/linux/arch/i386/linux_syscallargs.h diff -u src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.118 src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.119 --- src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.118 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/i386/linux_syscallargs.h Mon Sep 20 00:09:33 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.118 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.119 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.126 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.127 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1150,6 +1150,11 @@ struct linux_sys_timerfd_create_args { }; check_syscall_args(linux_sys_timerfd_create) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1172,6 +1177,12 @@ struct linux_sys_timerfd_gettime_args { }; check_syscall_args(linux_sys_timerfd_gettime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1655,12 +1666,16 @@ int linux_sys_utimensat(struct lwp *, co int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/i386/linux_sysent.c diff -u src/sys/compat/linux/arch/i386/linux_sysent.c:1.118 src/sys/compat/linux/arch/i386/linux_sysent.c:1.119 --- src/sys/compat/linux/arch/i386/linux_sysent.c:1.118 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/i386/linux_sysent.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.118 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.119 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.126 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.127 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.118 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.119 2021/09/20 00:09:33 thorpej Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1387,8 +1387,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 322 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 323 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 323 = eventfd */ { ns(struct linux_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1408,8 +1409,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 327 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 328 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 328 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 329 = filler */ Index: src/sys/compat/linux/arch/i386/linux_syscalls.c diff -u src/sys/compat/linux/arch/i386/linux_syscalls.c:1.119 src/sys/compat/linux/arch/i386/linux_syscalls.c:1.120 --- src/sys/compat/linux/arch/i386/linux_syscalls.c:1.119 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/i386/linux_syscalls.c Mon Sep 20 00:09:33 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.119 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.120 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.126 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.127 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.119 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.120 2021/09/20 00:09:33 thorpej Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -357,12 +357,12 @@ const char *const linux_syscallnames[] = /* 320 */ "utimensat", /* 321 */ "#321 (unimplemented signalfd)", /* 322 */ "timerfd_create", - /* 323 */ "#323 (unimplemented eventfd)", + /* 323 */ "eventfd", /* 324 */ "fallocate", /* 325 */ "timerfd_settime", /* 326 */ "timerfd_gettime", /* 327 */ "#327 (unimplemented signalfd4)", - /* 328 */ "#328 (unimplemented eventfd2)", + /* 328 */ "eventfd2", /* 329 */ "#329 (unimplemented epoll_create1)", /* 330 */ "dup3", /* 331 */ "pipe2", @@ -879,12 +879,12 @@ const char *const altlinux_syscallnames[ /* 320 */ NULL, /* utimensat */ /* 321 */ NULL, /* unimplemented signalfd */ /* 322 */ NULL, /* timerfd_create */ - /* 323 */ NULL, /* unimplemented eventfd */ + /* 323 */ NULL, /* eventfd */ /* 324 */ NULL, /* fallocate */ /* 325 */ NULL, /* timerfd_settime */ /* 326 */ NULL, /* timerfd_gettime */ /* 327 */ NULL, /* unimplemented signalfd4 */ - /* 328 */ NULL, /* unimplemented eventfd2 */ + /* 328 */ NULL, /* eventfd2 */ /* 329 */ NULL, /* unimplemented epoll_create1 */ /* 330 */ NULL, /* dup3 */ /* 331 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/i386/linux_systrace_args.c diff -u src/sys/compat/linux/arch/i386/linux_systrace_args.c:1.13 src/sys/compat/linux/arch/i386/linux_systrace_args.c:1.14 --- src/sys/compat/linux/arch/i386/linux_systrace_args.c:1.13 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/i386/linux_systrace_args.c Mon Sep 20 00:09:33 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.13 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.14 2021/09/20 00:09:33 thorpej Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1954,6 +1954,13 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_eventfd */ + case 323: { + const struct linux_sys_eventfd_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + *n_args = 1; + break; + } /* linux_sys_fallocate */ case 324: { const struct linux_sys_fallocate_args *p = params; @@ -1982,6 +1989,14 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux_sys_eventfd2 */ + case 328: { + const struct linux_sys_eventfd2_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + iarg[1] = SCARG(p, flags); /* int */ + *n_args = 2; + break; + } /* linux_sys_dup3 */ case 330: { const struct linux_sys_dup3_args *p = params; @@ -5177,6 +5192,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd */ + case 323: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + default: + break; + }; + break; /* linux_sys_fallocate */ case 324: switch(ndx) { @@ -5228,6 +5253,19 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux_sys_eventfd2 */ + case 328: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; /* linux_sys_dup3 */ case 330: switch(ndx) { @@ -6404,6 +6442,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd */ + case 323: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_fallocate */ case 324: if (ndx == 0 || ndx == 1) @@ -6419,6 +6462,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux_sys_eventfd2 */ + case 328: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux_sys_dup3 */ case 330: if (ndx == 0 || ndx == 1) Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.110 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.111 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.110 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.110 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.111 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.97 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.98 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -732,6 +732,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 318 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 319 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 320 @@ -741,6 +744,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_gettime 322 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 324 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 326 Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.110 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.111 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.110 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.110 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.111 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.97 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.98 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.110 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.111 2021/09/20 00:09:34 thorpej Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -373,12 +373,12 @@ const char *const linux_syscallnames[] = /* 316 */ "utimensat", /* 317 */ "#317 (unimplemented signalfd)", /* 318 */ "timerfd_create", - /* 319 */ "#319 (unimplemented eventfd)", + /* 319 */ "eventfd", /* 320 */ "fallocate", /* 321 */ "timerfd_settime", /* 322 */ "timerfd_gettime", /* 323 */ "#323 (unimplemented signalfd4)", - /* 324 */ "#324 (unimplemented eventfd2)", + /* 324 */ "eventfd2", /* 325 */ "#325 (unimplemented epoll_create1)", /* 326 */ "dup3", /* 327 */ "pipe2", @@ -911,12 +911,12 @@ const char *const altlinux_syscallnames[ /* 316 */ NULL, /* utimensat */ /* 317 */ NULL, /* unimplemented signalfd */ /* 318 */ NULL, /* timerfd_create */ - /* 319 */ NULL, /* unimplemented eventfd */ + /* 319 */ NULL, /* eventfd */ /* 320 */ NULL, /* fallocate */ /* 321 */ NULL, /* timerfd_settime */ /* 322 */ NULL, /* timerfd_gettime */ /* 323 */ NULL, /* unimplemented signalfd4 */ - /* 324 */ NULL, /* unimplemented eventfd2 */ + /* 324 */ NULL, /* eventfd2 */ /* 325 */ NULL, /* unimplemented epoll_create1 */ /* 326 */ NULL, /* dup3 */ /* 327 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/m68k/linux_sysent.c diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.110 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.111 --- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.110 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/m68k/linux_sysent.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.110 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.111 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.97 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.98 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.110 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.111 2021/09/20 00:09:34 thorpej Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -1385,8 +1385,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 318 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 319 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 319 = eventfd */ { ns(struct linux_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1406,8 +1407,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 323 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 324 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 324 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 325 = filler */ Index: src/sys/compat/linux/arch/m68k/linux_syscallargs.h diff -u src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.109 src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.110 --- src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.109 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.109 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.110 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.97 2021/09/19 23:51:36 thorpej Exp + * created from NetBSD: syscalls.master,v 1.98 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1111,6 +1111,11 @@ struct linux_sys_timerfd_create_args { }; check_syscall_args(linux_sys_timerfd_create) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1133,6 +1138,12 @@ struct linux_sys_timerfd_gettime_args { }; check_syscall_args(linux_sys_timerfd_gettime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1637,12 +1648,16 @@ int linux_sys_utimensat(struct lwp *, co int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.82 src/sys/compat/linux/arch/mips/linux_syscall.h:1.83 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.82 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.82 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.83 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.71 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -697,6 +697,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 316 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 319 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 320 @@ -709,6 +712,9 @@ /* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_settime 323 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 325 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 327 Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.81 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.82 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.81 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.81 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.82 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.71 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1143,6 +1143,11 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1171,6 +1176,12 @@ struct linux_sys_timerfd_settime_args { }; check_syscall_args(linux_sys_timerfd_settime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1667,6 +1678,8 @@ int sys___futex_get_robust_list(struct l int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); @@ -1675,6 +1688,8 @@ int linux_sys_timerfd_gettime(struct lwp int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.81 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.82 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.81 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.81 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.82 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.71 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.81 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.82 2021/09/20 00:09:34 thorpej Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -349,13 +349,13 @@ const char *const linux_syscallnames[] = /* 316 */ "utimensat", /* 317 */ "#317 (unimplemented signalfd)", /* 318 */ "#318 (unimplemented timerfd)", - /* 319 */ "#319 (unimplemented eventfd)", + /* 319 */ "eventfd", /* 320 */ "fallocate", /* 321 */ "timerfd_create", /* 322 */ "timerfd_gettime", /* 323 */ "timerfd_settime", /* 324 */ "#324 (unimplemented signalfd4)", - /* 325 */ "#325 (unimplemented eventfd2)", + /* 325 */ "eventfd2", /* 326 */ "#326 (unimplemented epoll_create1)", /* 327 */ "dup3", /* 328 */ "pipe2", @@ -866,13 +866,13 @@ const char *const altlinux_syscallnames[ /* 316 */ NULL, /* utimensat */ /* 317 */ NULL, /* unimplemented signalfd */ /* 318 */ NULL, /* unimplemented timerfd */ - /* 319 */ NULL, /* unimplemented eventfd */ + /* 319 */ NULL, /* eventfd */ /* 320 */ NULL, /* fallocate */ /* 321 */ NULL, /* timerfd_create */ /* 322 */ NULL, /* timerfd_gettime */ /* 323 */ NULL, /* timerfd_settime */ /* 324 */ NULL, /* unimplemented signalfd4 */ - /* 325 */ NULL, /* unimplemented eventfd2 */ + /* 325 */ NULL, /* eventfd2 */ /* 326 */ NULL, /* unimplemented epoll_create1 */ /* 327 */ NULL, /* dup3 */ /* 328 */ NULL, /* pipe2 */ Index: src/sys/compat/linux/arch/mips/linux_sysent.c diff -u src/sys/compat/linux/arch/mips/linux_sysent.c:1.81 src/sys/compat/linux/arch/mips/linux_sysent.c:1.82 --- src/sys/compat/linux/arch/mips/linux_sysent.c:1.81 Sun Sep 19 23:52:07 2021 +++ src/sys/compat/linux/arch/mips/linux_sysent.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.81 2021/09/19 23:52:07 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.82 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.71 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.81 2021/09/19 23:52:07 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.82 2021/09/20 00:09:34 thorpej Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1362,8 +1362,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 318 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 319 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 319 = eventfd */ { ns(struct linux_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1387,8 +1388,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 324 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 325 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 325 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 326 = filler */ Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.88 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.89 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.88 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.88 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.89 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.76 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.77 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -669,6 +669,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX_SYS_timerfd_create 306 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX_SYS_eventfd 307 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX_SYS_fallocate 309 @@ -678,6 +681,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ #define LINUX_SYS_timerfd_gettime 312 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX_SYS_eventfd2 314 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 316 Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.88 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.89 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.88 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.88 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.89 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.76 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.77 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.88 2021/09/19 23:52:08 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.89 2021/09/20 00:09:34 thorpej Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1306,8 +1306,9 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 306 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 307 = filler */ + ns(struct linux_sys_eventfd_args), + .sy_call = (sy_call_t *)linux_sys_eventfd + }, /* 307 = eventfd */ { .sy_call = linux_sys_nosys, }, /* 308 = filler */ @@ -1333,8 +1334,9 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 313 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 314 = filler */ + ns(struct linux_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux_sys_eventfd2 + }, /* 314 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 315 = filler */ Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.87 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.88 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.87 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.87 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.88 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.76 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.77 2021/09/20 00:09:01 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1036,6 +1036,11 @@ struct linux_sys_timerfd_create_args { }; check_syscall_args(linux_sys_timerfd_create) +struct linux_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux_sys_eventfd) + struct linux_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1058,6 +1063,12 @@ struct linux_sys_timerfd_gettime_args { }; check_syscall_args(linux_sys_timerfd_gettime) +struct linux_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_eventfd2) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1532,12 +1543,16 @@ int linux_sys_utimensat(struct lwp *, co int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux_sys_eventfd(struct lwp *, const struct linux_sys_eventfd_args *, register_t *); + int linux_sys_fallocate(struct lwp *, const struct linux_sys_fallocate_args *, register_t *); int linux_sys_timerfd_settime(struct lwp *, const struct linux_sys_timerfd_settime_args *, register_t *); int linux_sys_timerfd_gettime(struct lwp *, const struct linux_sys_timerfd_gettime_args *, register_t *); +int linux_sys_eventfd2(struct lwp *, const struct linux_sys_eventfd2_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/powerpc/linux_syscalls.c diff -u src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.87 src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.88 --- src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.87 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.87 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.88 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.76 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.77 2021/09/20 00:09:01 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.87 2021/09/19 23:52:08 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.88 2021/09/20 00:09:34 thorpej Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -340,14 +340,14 @@ const char *const linux_syscallnames[] = /* 304 */ "utimensat", /* 305 */ "#305 (unimplemented signalfd)", /* 306 */ "timerfd_create", - /* 307 */ "#307 (unimplemented eventfd)", + /* 307 */ "eventfd", /* 308 */ "#308 (unimplemented sync_file_range2)", /* 309 */ "fallocate", /* 310 */ "#310 (unimplemented subpage_prot)", /* 311 */ "timerfd_settime", /* 312 */ "timerfd_gettime", /* 313 */ "#313 (unimplemented signalfd4)", - /* 314 */ "#314 (unimplemented eventfd2)", + /* 314 */ "eventfd2", /* 315 */ "#315 (unimplemented epoll_create1)", /* 316 */ "dup3", /* 317 */ "pipe2", @@ -862,14 +862,14 @@ const char *const altlinux_syscallnames[ /* 304 */ NULL, /* utimensat */ /* 305 */ NULL, /* unimplemented signalfd */ /* 306 */ NULL, /* timerfd_create */ - /* 307 */ NULL, /* unimplemented eventfd */ + /* 307 */ NULL, /* eventfd */ /* 308 */ NULL, /* unimplemented sync_file_range2 */ /* 309 */ NULL, /* fallocate */ /* 310 */ NULL, /* unimplemented subpage_prot */ /* 311 */ NULL, /* timerfd_settime */ /* 312 */ NULL, /* timerfd_gettime */ /* 313 */ NULL, /* unimplemented signalfd4 */ - /* 314 */ NULL, /* unimplemented eventfd2 */ + /* 314 */ NULL, /* eventfd2 */ /* 315 */ NULL, /* unimplemented epoll_create1 */ /* 316 */ NULL, /* dup3 */ /* 317 */ NULL, /* pipe2 */ Index: src/sys/compat/linux32/arch/amd64/linux32_syscall.h diff -u src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.83 src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.84 --- src/sys/compat/linux32/arch/amd64/linux32_syscall.h:1.83 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux32/arch/amd64/linux32_syscall.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux32_syscall.h,v 1.83 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux32_syscall.h,v 1.84 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.73 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.74 2021/09/20 00:09:02 thorpej Exp */ #ifndef _LINUX32_SYS_SYSCALL_H_ @@ -720,6 +720,9 @@ /* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ #define LINUX32_SYS_timerfd_create 322 +/* syscall: "eventfd" ret: "int" args: "unsigned int" */ +#define LINUX32_SYS_eventfd 323 + /* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ #define LINUX32_SYS_fallocate 324 @@ -729,6 +732,9 @@ /* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux32_itimerspec *" */ #define LINUX32_SYS_timerfd_gettime 326 +/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ +#define LINUX32_SYS_eventfd2 328 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX32_SYS_dup3 330 Index: src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h diff -u src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.83 src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.84 --- src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h:1.83 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h Mon Sep 20 00:09:34 2021 @@ -1,10 +1,10 @@ -/* $NetBSD: linux32_syscallargs.h,v 1.83 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux32_syscallargs.h,v 1.84 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.73 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.74 2021/09/20 00:09:02 thorpej Exp */ #ifndef _LINUX32_SYS_SYSCALLARGS_H_ @@ -1031,6 +1031,11 @@ check_syscall_args(linux32_sys_utimensat struct linux_sys_timerfd_create_args; +struct linux32_sys_eventfd_args { + syscallarg(unsigned int) initval; +}; +check_syscall_args(linux32_sys_eventfd) + struct linux32_sys_fallocate_args { syscallarg(int) fd; syscallarg(int) mode; @@ -1053,6 +1058,12 @@ struct linux32_sys_timerfd_gettime_args }; check_syscall_args(linux32_sys_timerfd_gettime) +struct linux32_sys_eventfd2_args { + syscallarg(unsigned int) initval; + syscallarg(int) flags; +}; +check_syscall_args(linux32_sys_eventfd2) + struct linux32_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1520,12 +1531,16 @@ int linux32_sys_utimensat(struct lwp *, int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); +int linux32_sys_eventfd(struct lwp *, const struct linux32_sys_eventfd_args *, register_t *); + int linux32_sys_fallocate(struct lwp *, const struct linux32_sys_fallocate_args *, register_t *); int linux32_sys_timerfd_settime(struct lwp *, const struct linux32_sys_timerfd_settime_args *, register_t *); int linux32_sys_timerfd_gettime(struct lwp *, const struct linux32_sys_timerfd_gettime_args *, register_t *); +int linux32_sys_eventfd2(struct lwp *, const struct linux32_sys_eventfd2_args *, register_t *); + int linux32_sys_dup3(struct lwp *, const struct linux32_sys_dup3_args *, register_t *); int linux32_sys_pipe2(struct lwp *, const struct linux32_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux32/arch/amd64/linux32_syscalls.c diff -u src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.83 src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.84 --- src/sys/compat/linux32/arch/amd64/linux32_syscalls.c:1.83 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux32/arch/amd64/linux32_syscalls.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux32_syscalls.c,v 1.83 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux32_syscalls.c,v 1.84 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.73 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.74 2021/09/20 00:09:02 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.83 2021/09/19 23:52:08 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.84 2021/09/20 00:09:34 thorpej Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -362,12 +362,12 @@ const char *const linux32_syscallnames[] /* 320 */ "utimensat", /* 321 */ "#321 (unimplemented signalfd)", /* 322 */ "timerfd_create", - /* 323 */ "#323 (unimplemented eventfd)", + /* 323 */ "eventfd", /* 324 */ "fallocate", /* 325 */ "timerfd_settime", /* 326 */ "timerfd_gettime", /* 327 */ "#327 (unimplemented signalfd4)", - /* 328 */ "#328 (unimplemented eventfd2)", + /* 328 */ "eventfd2", /* 329 */ "#329 (unimplemented epoll_create1)", /* 330 */ "dup3", /* 331 */ "pipe2", @@ -881,12 +881,12 @@ const char *const altlinux32_syscallname /* 320 */ NULL, /* utimensat */ /* 321 */ NULL, /* unimplemented signalfd */ /* 322 */ NULL, /* timerfd_create */ - /* 323 */ NULL, /* unimplemented eventfd */ + /* 323 */ NULL, /* eventfd */ /* 324 */ NULL, /* fallocate */ /* 325 */ NULL, /* timerfd_settime */ /* 326 */ NULL, /* timerfd_gettime */ /* 327 */ NULL, /* unimplemented signalfd4 */ - /* 328 */ NULL, /* unimplemented eventfd2 */ + /* 328 */ NULL, /* eventfd2 */ /* 329 */ NULL, /* unimplemented epoll_create1 */ /* 330 */ NULL, /* dup3 */ /* 331 */ NULL, /* pipe2 */ Index: src/sys/compat/linux32/arch/amd64/linux32_sysent.c diff -u src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.83 src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.84 --- src/sys/compat/linux32/arch/amd64/linux32_sysent.c:1.83 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux32/arch/amd64/linux32_sysent.c Mon Sep 20 00:09:34 2021 @@ -1,14 +1,14 @@ -/* $NetBSD: linux32_sysent.c,v 1.83 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux32_sysent.c,v 1.84 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.73 2021/09/19 23:51:37 thorpej Exp + * created from NetBSD: syscalls.master,v 1.74 2021/09/20 00:09:02 thorpej Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.83 2021/09/19 23:52:08 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.84 2021/09/20 00:09:34 thorpej Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -1225,8 +1225,9 @@ struct sysent linux32_sysent[] = { .sy_call = (sy_call_t *)linux_sys_timerfd_create }, /* 322 = timerfd_create */ { - .sy_call = linux_sys_nosys, - }, /* 323 = filler */ + ns(struct linux32_sys_eventfd_args), + .sy_call = (sy_call_t *)linux32_sys_eventfd + }, /* 323 = eventfd */ { ns(struct linux32_sys_fallocate_args), .sy_flags = SYCALL_NARGS64_VAL(2) | SYCALL_ARG3_64 | SYCALL_ARG2_64, @@ -1246,8 +1247,9 @@ struct sysent linux32_sysent[] = { .sy_call = linux_sys_nosys, }, /* 327 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 328 = filler */ + ns(struct linux32_sys_eventfd2_args), + .sy_call = (sy_call_t *)linux32_sys_eventfd2 + }, /* 328 = eventfd2 */ { .sy_call = linux_sys_nosys, }, /* 329 = filler */ Index: src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c diff -u src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c:1.10 src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c:1.11 --- src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c:1.10 Sun Sep 19 23:52:08 2021 +++ src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c Mon Sep 20 00:09:34 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_systrace_args.c,v 1.10 2021/09/19 23:52:08 thorpej Exp $ */ +/* $NetBSD: linux32_systrace_args.c,v 1.11 2021/09/20 00:09:34 thorpej Exp $ */ /* * System call argument to DTrace register array conversion. @@ -1896,6 +1896,13 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux32_sys_eventfd */ + case 323: { + const struct linux32_sys_eventfd_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + *n_args = 1; + break; + } /* linux32_sys_fallocate */ case 324: { const struct linux32_sys_fallocate_args *p = params; @@ -1924,6 +1931,14 @@ systrace_args(register_t sysnum, const v *n_args = 2; break; } + /* linux32_sys_eventfd2 */ + case 328: { + const struct linux32_sys_eventfd2_args *p = params; + uarg[0] = SCARG(p, initval); /* unsigned int */ + iarg[1] = SCARG(p, flags); /* int */ + *n_args = 2; + break; + } /* linux32_sys_dup3 */ case 330: { const struct linux32_sys_dup3_args *p = params; @@ -5026,6 +5041,16 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux32_sys_eventfd */ + case 323: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + default: + break; + }; + break; /* linux32_sys_fallocate */ case 324: switch(ndx) { @@ -5077,6 +5102,19 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* linux32_sys_eventfd2 */ + case 328: + switch(ndx) { + case 0: + p = "unsigned int"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; /* linux32_sys_dup3 */ case 330: switch(ndx) { @@ -6216,6 +6254,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux32_sys_eventfd */ + case 323: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux32_sys_fallocate */ case 324: if (ndx == 0 || ndx == 1) @@ -6231,6 +6274,11 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* linux32_sys_eventfd2 */ + case 328: + if (ndx == 0 || ndx == 1) + p = "int"; + break; /* linux32_sys_dup3 */ case 330: if (ndx == 0 || ndx == 1)