Source-Changes-HG archive

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

[src/trunk]: src/sys Regen for eventfd(2) and timerfd(2).



details:   https://anonhg.NetBSD.org/src/rev/bd0462ea1308
branches:  trunk
changeset: 1023633:bd0462ea1308
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 19 15:52:04 2021 +0000

description:
Regen for eventfd(2) and timerfd(2).

diffstat:

 sys/kern/init_sysent.c                    |   32 +++++---
 sys/kern/syscalls.c                       |   22 ++--
 sys/kern/syscalls_autoload.c              |    6 +-
 sys/kern/systrace_args.c                  |  114 +++++++++++++++++++++++++++++-
 sys/rump/include/rump/rump_syscalls.h     |    4 +-
 sys/rump/librump/rumpkern/rump_syscalls.c |   30 +++----
 sys/sys/syscall.h                         |   16 +++-
 sys/sys/syscallargs.h                     |   46 +++++++++++-
 8 files changed, 219 insertions(+), 51 deletions(-)

diffs (truncated from 517 to 300 lines):

diff -r 8180114e2953 -r bd0462ea1308 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c    Sun Sep 19 15:51:27 2021 +0000
+++ b/sys/kern/init_sysent.c    Sun Sep 19 15:52:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.337 2020/11/02 18:56:16 christos Exp $ */
+/* $NetBSD: init_sysent.c,v 1.338 2021/09/19 15:52:04 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.308 2021/09/19 15:51:27 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.337 2020/11/02 18:56:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.338 2021/09/19 15:52:04 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -934,14 +934,19 @@
        },              /* 176 = filler */
 #endif
        {
-               .sy_call = sys_nosys,
-       },              /* 177 = filler */
-       {
-               .sy_call = sys_nosys,
-       },              /* 178 = filler */
-       {
-               .sy_call = sys_nosys,
-       },              /* 179 = filler */
+               ns(struct sys_timerfd_create_args),
+               .sy_call = (sy_call_t *)sys_timerfd_create
+       },              /* 177 = timerfd_create */
+       {
+               ns(struct sys_timerfd_settime_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_timerfd_settime
+       },              /* 178 = timerfd_settime */
+       {
+               ns(struct sys_timerfd_gettime_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)sys_timerfd_gettime
+       },              /* 179 = timerfd_gettime */
        {
                .sy_call = sys_nosys,
        },              /* 180 = filler */
@@ -1336,8 +1341,9 @@
                .sy_call = (sy_call_t *)sys_nomodule
        },              /* 266 = compat_50_mq_timedreceive */
        {
-               .sy_call = sys_nosys,
-       },              /* 267 = filler */
+               ns(struct sys_eventfd_args),
+               .sy_call = (sy_call_t *)sys_eventfd
+       },              /* 267 = eventfd */
        {
                .sy_call = sys_nosys,
        },              /* 268 = filler */
diff -r 8180114e2953 -r bd0462ea1308 sys/kern/syscalls.c
--- a/sys/kern/syscalls.c       Sun Sep 19 15:51:27 2021 +0000
+++ b/sys/kern/syscalls.c       Sun Sep 19 15:52:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.325 2020/11/02 18:56:16 christos Exp $ */
+/* $NetBSD: syscalls.c,v 1.326 2021/09/19 15:52:04 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.308 2021/09/19 15:51:27 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.325 2020/11/02 18:56:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.326 2021/09/19 15:52:04 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #ifdef _KERNEL_OPT
@@ -223,9 +223,9 @@
 #else
        /* 176 */       "#176 (excluded ntp_adjtime)",
 #endif
-       /* 177 */       "#177 (unimplemented)",
-       /* 178 */       "#178 (unimplemented)",
-       /* 179 */       "#179 (unimplemented)",
+       /* 177 */       "timerfd_create",
+       /* 178 */       "timerfd_settime",
+       /* 179 */       "timerfd_gettime",
        /* 180 */       "#180 (unimplemented)",
        /* 181 */       "setgid",
        /* 182 */       "setegid",
@@ -313,7 +313,7 @@
        /* 264 */       "mq_receive",
        /* 265 */       "compat_50_mq_timedsend",
        /* 266 */       "compat_50_mq_timedreceive",
-       /* 267 */       "#267 (unimplemented)",
+       /* 267 */       "eventfd",
        /* 268 */       "#268 (unimplemented)",
        /* 269 */       "#269 (unimplemented)",
        /* 270 */       "__posix_rename",
@@ -760,9 +760,9 @@
 #else
        /* 176 */       NULL, /* excluded ntp_adjtime */
 #endif
-       /* 177 */       NULL, /* unimplemented */
-       /* 178 */       NULL, /* unimplemented */
-       /* 179 */       NULL, /* unimplemented */
+       /* 177 */       NULL, /* timerfd_create */
+       /* 178 */       NULL, /* timerfd_settime */
+       /* 179 */       NULL, /* timerfd_gettime */
        /* 180 */       NULL, /* unimplemented */
        /* 181 */       NULL, /* setgid */
        /* 182 */       NULL, /* setegid */
@@ -850,7 +850,7 @@
        /* 264 */       NULL, /* mq_receive */
        /* 265 */       NULL, /* compat_50_mq_timedsend */
        /* 266 */       NULL, /* compat_50_mq_timedreceive */
-       /* 267 */       NULL, /* unimplemented */
+       /* 267 */       NULL, /* eventfd */
        /* 268 */       NULL, /* unimplemented */
        /* 269 */       NULL, /* unimplemented */
        /* 270 */       NULL, /* __posix_rename */
diff -r 8180114e2953 -r bd0462ea1308 sys/kern/syscalls_autoload.c
--- a/sys/kern/syscalls_autoload.c      Sun Sep 19 15:51:27 2021 +0000
+++ b/sys/kern/syscalls_autoload.c      Sun Sep 19 15:52:04 2021 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls_autoload.c,v 1.41 2020/11/02 18:56:16 christos Exp $ */
+/* $NetBSD: syscalls_autoload.c,v 1.42 2021/09/19 15:52:04 thorpej Exp $ */
 
 /*
  * System call autoload table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.307 2020/11/02 18:55:12 christos Exp
+ * created from        NetBSD: syscalls.master,v 1.308 2021/09/19 15:51:27 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.41 2020/11/02 18:56:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.42 2021/09/19 15:52:04 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
diff -r 8180114e2953 -r bd0462ea1308 sys/kern/systrace_args.c
--- a/sys/kern/systrace_args.c  Sun Sep 19 15:51:27 2021 +0000
+++ b/sys/kern/systrace_args.c  Sun Sep 19 15:52:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace_args.c,v 1.47 2021/04/14 02:45:58 christos Exp $ */
+/* $NetBSD: systrace_args.c,v 1.48 2021/09/19 15:52:04 thorpej Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1311,6 +1311,32 @@
        }
 #else
 #endif
+       /* sys_timerfd_create */
+       case 177: {
+               const struct sys_timerfd_create_args *p = params;
+               iarg[0] = SCARG(p, clock_id); /* clockid_t */
+               iarg[1] = SCARG(p, flags); /* int */
+               *n_args = 2;
+               break;
+       }
+       /* sys_timerfd_settime */
+       case 178: {
+               const struct sys_timerfd_settime_args *p = params;
+               iarg[0] = SCARG(p, fd); /* int */
+               iarg[1] = SCARG(p, flags); /* int */
+               uarg[2] = (intptr_t) SCARG(p, new_value); /* const struct itimerspec * */
+               uarg[3] = (intptr_t) SCARG(p, old_value); /* struct itimerspec * */
+               *n_args = 4;
+               break;
+       }
+       /* sys_timerfd_gettime */
+       case 179: {
+               const struct sys_timerfd_gettime_args *p = params;
+               iarg[0] = SCARG(p, fd); /* int */
+               uarg[1] = (intptr_t) SCARG(p, curr_value); /* struct itimerspec * */
+               *n_args = 2;
+               break;
+       }
        /* sys_setgid */
        case 181: {
                const struct sys_setgid_args *p = params;
@@ -1964,6 +1990,14 @@
                *n_args = 5;
                break;
        }
+       /* sys_eventfd */
+       case 267: {
+               const struct sys_eventfd_args *p = params;
+               uarg[0] = SCARG(p, val); /* unsigned int */
+               iarg[1] = SCARG(p, flags); /* int */
+               *n_args = 2;
+               break;
+       }
        /* sys___posix_rename */
        case 270: {
                const struct sys___posix_rename_args *p = params;
@@ -5980,6 +6014,51 @@
                break;
 #else
 #endif
+       /* sys_timerfd_create */
+       case 177:
+               switch(ndx) {
+               case 0:
+                       p = "clockid_t";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* sys_timerfd_settime */
+       case 178:
+               switch(ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               case 2:
+                       p = "const struct itimerspec *";
+                       break;
+               case 3:
+                       p = "struct itimerspec *";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* sys_timerfd_gettime */
+       case 179:
+               switch(ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               case 1:
+                       p = "struct itimerspec *";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* sys_setgid */
        case 181:
                switch(ndx) {
@@ -7091,6 +7170,19 @@
                        break;
                };
                break;
+       /* sys_eventfd */
+       case 267:
+               switch(ndx) {
+               case 0:
+                       p = "unsigned int";
+                       break;
+               case 1:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* sys___posix_rename */
        case 270:
                switch(ndx) {
@@ -11159,6 +11251,21 @@
                break;
 #else
 #endif
+       /* sys_timerfd_create */
+       case 177:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
+       /* sys_timerfd_settime */
+       case 178:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
+       /* sys_timerfd_gettime */
+       case 179:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        /* sys_setgid */
        case 181:
                if (ndx == 0 || ndx == 1)
@@ -11541,6 +11648,11 @@
                if (ndx == 0 || ndx == 1)



Home | Main Index | Thread Index | Old Index