Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej-futex]: src/sys/compat/linux32/arch/amd64 Regen for eventfd.



details:   https://anonhg.NetBSD.org/src/rev/1242aea1ec8b
branches:  thorpej-futex
changeset: 1024926:1242aea1ec8b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Dec 16 03:08:01 2020 +0000

description:
Regen for eventfd.

diffstat:

 sys/compat/linux32/arch/amd64/linux32_syscall.h       |  10 +++-
 sys/compat/linux32/arch/amd64/linux32_syscallargs.h   |  19 ++++++-
 sys/compat/linux32/arch/amd64/linux32_syscalls.c      |  14 ++--
 sys/compat/linux32/arch/amd64/linux32_sysent.c        |  16 +++--
 sys/compat/linux32/arch/amd64/linux32_systrace_args.c |  50 ++++++++++++++++++-
 5 files changed, 90 insertions(+), 19 deletions(-)

diffs (279 lines):

diff -r c2d0c86b67d4 -r 1242aea1ec8b sys/compat/linux32/arch/amd64/linux32_syscall.h
--- a/sys/compat/linux32/arch/amd64/linux32_syscall.h   Wed Dec 16 03:07:43 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscall.h   Wed Dec 16 03:08:01 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscall.h,v 1.81 2020/04/26 19:20:58 thorpej Exp $ */
+/* $NetBSD: linux32_syscall.h,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALL_H_
@@ -702,9 +702,15 @@
 /* syscall: "utimensat" ret: "int" args: "int" "netbsd32_charp" "linux32_timespecp_t" "int" */
 #define        LINUX32_SYS_utimensat   320
 
+/* 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
 
+/* 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
 
diff -r c2d0c86b67d4 -r 1242aea1ec8b sys/compat/linux32/arch/amd64/linux32_syscallargs.h
--- a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h       Wed Dec 16 03:07:43 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h       Wed Dec 16 03:08:01 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscallargs.h,v 1.81 2020/04/26 19:20:58 thorpej Exp $ */
+/* $NetBSD: linux32_syscallargs.h,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
@@ -1004,6 +1004,11 @@
 };
 check_syscall_args(linux32_sys_utimensat)
 
+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;
@@ -1012,6 +1017,12 @@
 };
 check_syscall_args(linux32_sys_fallocate)
 
+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;
@@ -1467,8 +1478,12 @@
 
 int    linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_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_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 *);
diff -r c2d0c86b67d4 -r 1242aea1ec8b sys/compat/linux32/arch/amd64/linux32_syscalls.c
--- a/sys/compat/linux32/arch/amd64/linux32_syscalls.c  Wed Dec 16 03:07:43 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscalls.c  Wed Dec 16 03:08:01 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_syscalls.c,v 1.81 2020/04/26 19:20:58 thorpej Exp $ */
+/* $NetBSD: linux32_syscalls.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.81 2020/04/26 19:20:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
@@ -362,12 +362,12 @@
        /* 320 */       "utimensat",
        /* 321 */       "#321 (unimplemented signalfd)",
        /* 322 */       "#322 (unimplemented timerfd_create)",
-       /* 323 */       "#323 (unimplemented eventfd)",
+       /* 323 */       "eventfd",
        /* 324 */       "fallocate",
        /* 325 */       "#325 (unimplemented timerfd_settime)",
        /* 326 */       "#326 (unimplemented 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 @@
        /* 320 */       NULL, /* utimensat */
        /* 321 */       NULL, /* unimplemented signalfd */
        /* 322 */       NULL, /* unimplemented timerfd_create */
-       /* 323 */       NULL, /* unimplemented eventfd */
+       /* 323 */       NULL, /* eventfd */
        /* 324 */       NULL, /* fallocate */
        /* 325 */       NULL, /* unimplemented timerfd_settime */
        /* 326 */       NULL, /* unimplemented timerfd_gettime */
        /* 327 */       NULL, /* unimplemented signalfd4 */
-       /* 328 */       NULL, /* unimplemented eventfd2 */
+       /* 328 */       NULL, /* eventfd2 */
        /* 329 */       NULL, /* unimplemented epoll_create1 */
        /* 330 */       NULL, /* dup3 */
        /* 331 */       NULL, /* pipe2 */
diff -r c2d0c86b67d4 -r 1242aea1ec8b sys/compat/linux32/arch/amd64/linux32_sysent.c
--- a/sys/compat/linux32/arch/amd64/linux32_sysent.c    Wed Dec 16 03:07:43 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_sysent.c    Wed Dec 16 03:08:01 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_sysent.c,v 1.81 2020/04/26 19:20:58 thorpej Exp $ */
+/* $NetBSD: linux32_sysent.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71 2020/04/26 18:53:33 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.81 2020/04/26 19:20:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -1216,8 +1216,9 @@
                .sy_call = linux_sys_nosys,
        },              /* 322 = filler */
        {
-               .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,
@@ -1233,8 +1234,9 @@
                .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 */
diff -r c2d0c86b67d4 -r 1242aea1ec8b sys/compat/linux32/arch/amd64/linux32_systrace_args.c
--- a/sys/compat/linux32/arch/amd64/linux32_systrace_args.c     Wed Dec 16 03:07:43 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_systrace_args.c     Wed Dec 16 03:08:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_systrace_args.c,v 1.8 2020/04/26 19:20:58 thorpej Exp $ */
+/* $NetBSD: linux32_systrace_args.c,v 1.8.2.1 2020/12/16 03:08:01 thorpej Exp $ */
 
 /*
  * System call argument to DTrace register array converstion.
@@ -1847,6 +1847,13 @@
                *n_args = 4;
                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;
@@ -1857,6 +1864,14 @@
                *n_args = 4;
                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;
@@ -4878,6 +4893,16 @@
                        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) {
@@ -4897,6 +4922,19 @@
                        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) {
@@ -6006,11 +6044,21 @@
                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)
                        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)



Home | Main Index | Thread Index | Old Index