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 POSIX timers...



details:   https://anonhg.NetBSD.org/src/rev/9f67bf40b33b
branches:  thorpej-futex
changeset: 961135:9f67bf40b33b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Dec 17 03:05:50 2020 +0000

description:
Regen for POSIX timers and timerfd.

diffstat:

 sys/compat/linux32/arch/amd64/linux32_syscall.h       |   28 ++-
 sys/compat/linux32/arch/amd64/linux32_syscallargs.h   |   61 ++++-
 sys/compat/linux32/arch/amd64/linux32_syscalls.c      |   38 +-
 sys/compat/linux32/arch/amd64/linux32_sysent.c        |   51 ++-
 sys/compat/linux32/arch/amd64/linux32_systrace_args.c |  222 +++++++++++++++++-
 5 files changed, 357 insertions(+), 43 deletions(-)

diffs (truncated from 641 to 300 lines):

diff -r 21557da4c90e -r 9f67bf40b33b sys/compat/linux32/arch/amd64/linux32_syscall.h
--- a/sys/compat/linux32/arch/amd64/linux32_syscall.h   Thu Dec 17 03:05:32 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscall.h   Thu Dec 17 03:05:50 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscall.h,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
+/* $NetBSD: linux32_syscall.h,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.2 2020/12/17 03:05:32 thorpej Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALL_H_
@@ -627,6 +627,21 @@
 /* syscall: "set_tid_address" ret: "int" args: "linux32_intp_t" */
 #define        LINUX32_SYS_set_tid_address     258
 
+/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux32_sigevent *" "timer_t *" */
+#define        LINUX32_SYS_timer_create        259
+
+/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux32_itimerspec *" "struct linux32_itimerspec *" */
+#define        LINUX32_SYS_timer_settime       260
+
+/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux32_itimerspec *" */
+#define        LINUX32_SYS_timer_gettime       261
+
+/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
+#define        LINUX32_SYS_timer_getoverrun    262
+
+/* syscall: "timer_delete" ret: "int" args: "timer_t" */
+#define        LINUX32_SYS_timer_delete        263
+
 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "linux32_timespecp_t" */
 #define        LINUX32_SYS_clock_settime       264
 
@@ -702,12 +717,21 @@
 /* syscall: "utimensat" ret: "int" args: "int" "netbsd32_charp" "linux32_timespecp_t" "int" */
 #define        LINUX32_SYS_utimensat   320
 
+/* 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
 
+/* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux32_itimerspec *" "struct linux32_itimerspec *" */
+#define        LINUX32_SYS_timerfd_settime     325
+
+/* 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
 
diff -r 21557da4c90e -r 9f67bf40b33b sys/compat/linux32/arch/amd64/linux32_syscallargs.h
--- a/sys/compat/linux32/arch/amd64/linux32_syscallargs.h       Thu Dec 17 03:05:32 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscallargs.h       Thu Dec 17 03:05:50 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux32_syscallargs.h,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
+/* $NetBSD: linux32_syscallargs.h,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.2 2020/12/17 03:05:32 thorpej Exp
  */
 
 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
@@ -854,6 +854,31 @@
 };
 check_syscall_args(linux32_sys_set_tid_address)
 
+struct linux32_sys_timer_create_args {
+       syscallarg(clockid_t) clockid;
+       syscallarg(struct linux32_sigevent *) evp;
+       syscallarg(timer_t *) timerid;
+};
+check_syscall_args(linux32_sys_timer_create)
+
+struct linux32_sys_timer_settime_args {
+       syscallarg(timer_t) timerid;
+       syscallarg(int) flags;
+       syscallarg(const struct linux32_itimerspec *) tim;
+       syscallarg(struct linux32_itimerspec *) otim;
+};
+check_syscall_args(linux32_sys_timer_settime)
+
+struct linux32_sys_timer_gettime_args {
+       syscallarg(timer_t) timerid;
+       syscallarg(struct linux32_itimerspec *) tim;
+};
+check_syscall_args(linux32_sys_timer_gettime)
+
+struct sys_timer_getoverrun_args;
+
+struct sys_timer_delete_args;
+
 struct linux32_sys_clock_settime_args {
        syscallarg(clockid_t) which;
        syscallarg(linux32_timespecp_t) tp;
@@ -1004,6 +1029,8 @@
 };
 check_syscall_args(linux32_sys_utimensat)
 
+struct linux_sys_timerfd_create_args;
+
 struct linux32_sys_eventfd_args {
        syscallarg(unsigned int) initval;
 };
@@ -1017,6 +1044,20 @@
 };
 check_syscall_args(linux32_sys_fallocate)
 
+struct linux32_sys_timerfd_settime_args {
+       syscallarg(int) fd;
+       syscallarg(int) flags;
+       syscallarg(const struct linux32_itimerspec *) new_value;
+       syscallarg(struct linux32_itimerspec *) old_value;
+};
+check_syscall_args(linux32_sys_timerfd_settime)
+
+struct linux32_sys_timerfd_gettime_args {
+       syscallarg(int) fd;
+       syscallarg(struct linux32_itimerspec *) curr_value;
+};
+check_syscall_args(linux32_sys_timerfd_gettime)
+
 struct linux32_sys_eventfd2_args {
        syscallarg(unsigned int) initval;
        syscallarg(int) flags;
@@ -1428,6 +1469,16 @@
 
 int    linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *);
 
+int    linux32_sys_timer_create(struct lwp *, const struct linux32_sys_timer_create_args *, register_t *);
+
+int    linux32_sys_timer_settime(struct lwp *, const struct linux32_sys_timer_settime_args *, register_t *);
+
+int    linux32_sys_timer_gettime(struct lwp *, const struct linux32_sys_timer_gettime_args *, register_t *);
+
+int    sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *);
+
+int    sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *);
+
 int    linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *);
 
 int    linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *);
@@ -1478,10 +1529,16 @@
 
 int    linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_args *, register_t *);
 
+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 *);
diff -r 21557da4c90e -r 9f67bf40b33b sys/compat/linux32/arch/amd64/linux32_syscalls.c
--- a/sys/compat/linux32/arch/amd64/linux32_syscalls.c  Thu Dec 17 03:05:32 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_syscalls.c  Thu Dec 17 03:05:50 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_syscalls.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
+/* $NetBSD: linux32_syscalls.c,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.2 2020/12/17 03:05:32 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
@@ -298,11 +298,11 @@
        /* 256 */       "#256 (unimplemented epoll_wait)",
        /* 257 */       "#257 (unimplemented remap_file_pages)",
        /* 258 */       "set_tid_address",
-       /* 259 */       "#259 (unimplemented timer_create)",
-       /* 260 */       "#260 (unimplemented timer_settime)",
-       /* 261 */       "#261 (unimplemented timer_gettime)",
-       /* 262 */       "#262 (unimplemented timer_getoverrun)",
-       /* 263 */       "#263 (unimplemented timer_delete)",
+       /* 259 */       "timer_create",
+       /* 260 */       "timer_settime",
+       /* 261 */       "timer_gettime",
+       /* 262 */       "timer_getoverrun",
+       /* 263 */       "timer_delete",
        /* 264 */       "clock_settime",
        /* 265 */       "clock_gettime",
        /* 266 */       "clock_getres",
@@ -361,11 +361,11 @@
        /* 319 */       "#319 (unimplemented epoll_wait)",
        /* 320 */       "utimensat",
        /* 321 */       "#321 (unimplemented signalfd)",
-       /* 322 */       "#322 (unimplemented timerfd_create)",
+       /* 322 */       "timerfd_create",
        /* 323 */       "eventfd",
        /* 324 */       "fallocate",
-       /* 325 */       "#325 (unimplemented timerfd_settime)",
-       /* 326 */       "#326 (unimplemented timerfd_gettime)",
+       /* 325 */       "timerfd_settime",
+       /* 326 */       "timerfd_gettime",
        /* 327 */       "#327 (unimplemented signalfd4)",
        /* 328 */       "eventfd2",
        /* 329 */       "#329 (unimplemented epoll_create1)",
@@ -817,11 +817,11 @@
        /* 256 */       NULL, /* unimplemented epoll_wait */
        /* 257 */       NULL, /* unimplemented remap_file_pages */
        /* 258 */       NULL, /* set_tid_address */
-       /* 259 */       NULL, /* unimplemented timer_create */
-       /* 260 */       NULL, /* unimplemented timer_settime */
-       /* 261 */       NULL, /* unimplemented timer_gettime */
-       /* 262 */       NULL, /* unimplemented timer_getoverrun */
-       /* 263 */       NULL, /* unimplemented timer_delete */
+       /* 259 */       NULL, /* timer_create */
+       /* 260 */       NULL, /* timer_settime */
+       /* 261 */       NULL, /* timer_gettime */
+       /* 262 */       NULL, /* timer_getoverrun */
+       /* 263 */       NULL, /* timer_delete */
        /* 264 */       NULL, /* clock_settime */
        /* 265 */       NULL, /* clock_gettime */
        /* 266 */       NULL, /* clock_getres */
@@ -880,11 +880,11 @@
        /* 319 */       NULL, /* unimplemented epoll_wait */
        /* 320 */       NULL, /* utimensat */
        /* 321 */       NULL, /* unimplemented signalfd */
-       /* 322 */       NULL, /* unimplemented timerfd_create */
+       /* 322 */       NULL, /* timerfd_create */
        /* 323 */       NULL, /* eventfd */
        /* 324 */       NULL, /* fallocate */
-       /* 325 */       NULL, /* unimplemented timerfd_settime */
-       /* 326 */       NULL, /* unimplemented timerfd_gettime */
+       /* 325 */       NULL, /* timerfd_settime */
+       /* 326 */       NULL, /* timerfd_gettime */
        /* 327 */       NULL, /* unimplemented signalfd4 */
        /* 328 */       NULL, /* eventfd2 */
        /* 329 */       NULL, /* unimplemented epoll_create1 */
diff -r 21557da4c90e -r 9f67bf40b33b sys/compat/linux32/arch/amd64/linux32_sysent.c
--- a/sys/compat/linux32/arch/amd64/linux32_sysent.c    Thu Dec 17 03:05:32 2020 +0000
+++ b/sys/compat/linux32/arch/amd64/linux32_sysent.c    Thu Dec 17 03:05:50 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux32_sysent.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $ */
+/* $NetBSD: linux32_sysent.c,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.71.2.1 2020/12/16 03:07:43 thorpej Exp
+ * created from        NetBSD: syscalls.master,v 1.71.2.2 2020/12/17 03:05:32 thorpej Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.81.2.1 2020/12/16 03:08:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.81.2.2 2020/12/17 03:05:50 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -999,20 +999,28 @@
                .sy_call = (sy_call_t *)linux32_sys_set_tid_address
        },              /* 258 = set_tid_address */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 259 = filler */
+               ns(struct linux32_sys_timer_create_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux32_sys_timer_create
+       },              /* 259 = timer_create */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 260 = filler */
+               ns(struct linux32_sys_timer_settime_args),
+               .sy_flags = SYCALL_ARG_PTR,
+               .sy_call = (sy_call_t *)linux32_sys_timer_settime
+       },              /* 260 = timer_settime */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 261 = filler */
+               ns(struct linux32_sys_timer_gettime_args),
+               .sy_flags = SYCALL_ARG_PTR,



Home | Main Index | Thread Index | Old Index