Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch regen



details:   https://anonhg.NetBSD.org/src/rev/58aa8f1d79a4
branches:  trunk
changeset: 378322:58aa8f1d79a4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 29 15:05:45 2023 +0000

description:
regen

diffstat:

 sys/compat/linux/arch/aarch64/linux_syscall.h       |   10 +-
 sys/compat/linux/arch/aarch64/linux_syscallargs.h   |   22 ++++-
 sys/compat/linux/arch/aarch64/linux_syscalls.c      |   14 +-
 sys/compat/linux/arch/aarch64/linux_sysent.c        |   17 ++-
 sys/compat/linux/arch/aarch64/linux_systrace_args.c |   62 ++++++++++++-
 sys/compat/linux/arch/alpha/linux_syscall.h         |   13 ++-
 sys/compat/linux/arch/alpha/linux_syscallargs.h     |   33 ++++++-
 sys/compat/linux/arch/alpha/linux_syscalls.c        |   18 +-
 sys/compat/linux/arch/alpha/linux_sysent.c          |   23 ++-
 sys/compat/linux/arch/amd64/linux_syscall.h         |   13 ++-
 sys/compat/linux/arch/amd64/linux_syscallargs.h     |   33 ++++++-
 sys/compat/linux/arch/amd64/linux_syscalls.c        |   18 +-
 sys/compat/linux/arch/amd64/linux_sysent.c          |   23 ++-
 sys/compat/linux/arch/amd64/linux_systrace_args.c   |  100 +++++++++++++++++++-
 sys/compat/linux/arch/arm/linux_syscall.h           |   13 ++-
 sys/compat/linux/arch/arm/linux_syscallargs.h       |   33 ++++++-
 sys/compat/linux/arch/arm/linux_syscalls.c          |   18 +-
 sys/compat/linux/arch/arm/linux_sysent.c            |   23 ++-
 sys/compat/linux/arch/arm/linux_systrace_args.c     |  100 +++++++++++++++++++-
 sys/compat/linux/arch/i386/linux_syscall.h          |   13 ++-
 sys/compat/linux/arch/i386/linux_syscallargs.h      |   33 ++++++-
 sys/compat/linux/arch/i386/linux_syscalls.c         |   18 +-
 sys/compat/linux/arch/i386/linux_sysent.c           |   23 ++-
 sys/compat/linux/arch/i386/linux_systrace_args.c    |  100 +++++++++++++++++++-
 sys/compat/linux/arch/m68k/linux_syscall.h          |   13 ++-
 sys/compat/linux/arch/m68k/linux_syscallargs.h      |   33 ++++++-
 sys/compat/linux/arch/m68k/linux_syscalls.c         |   18 +-
 sys/compat/linux/arch/m68k/linux_sysent.c           |   23 ++-
 sys/compat/linux/arch/mips/linux_syscall.h          |   18 +++-
 sys/compat/linux/arch/mips/linux_syscallargs.h      |   41 +++++++-
 sys/compat/linux/arch/mips/linux_syscalls.c         |   70 +++++++-------
 sys/compat/linux/arch/mips/linux_sysent.c           |   33 ++++--
 sys/compat/linux/arch/powerpc/linux_syscall.h       |   13 ++-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h   |   33 ++++++-
 sys/compat/linux/arch/powerpc/linux_syscalls.c      |   18 +-
 sys/compat/linux/arch/powerpc/linux_sysent.c        |   23 ++-
 36 files changed, 902 insertions(+), 207 deletions(-)

diffs (truncated from 2566 to 300 lines):

diff -r ba3d78122158 -r 58aa8f1d79a4 sys/compat/linux/arch/aarch64/linux_syscall.h
--- a/sys/compat/linux/arch/aarch64/linux_syscall.h     Sat Jul 29 15:05:31 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscall.h     Sat Jul 29 15:05:45 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.7 2023/07/29 06:50:47 rin Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.8 2023/07/29 15:05:45 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.9 2023/07/29 15:04:28 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -528,6 +528,9 @@
 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */
 #define        LINUX_SYS_recvmsg       212
 
+/* syscall: "readahead" ret: "ssize_t" args: "int" "off_t" "size_t" */
+#define        LINUX_SYS_readahead     213
+
 /* syscall: "brk" ret: "int" args: "char *" */
 #define        LINUX_SYS_brk   214
 
@@ -603,6 +606,9 @@
 /* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
 #define        LINUX_SYS_statx 291
 
+/* syscall: "close_range" ret: "int" args: "unsigned int" "unsigned int" "unsigned int" */
+#define        LINUX_SYS_close_range   436
+
 /* syscall: "nosys" ret: "int" args: */
 #define        LINUX_SYS_nosys 440
 
diff -r ba3d78122158 -r 58aa8f1d79a4 sys/compat/linux/arch/aarch64/linux_syscallargs.h
--- a/sys/compat/linux/arch/aarch64/linux_syscallargs.h Sat Jul 29 15:05:31 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscallargs.h Sat Jul 29 15:05:45 2023 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.7 2023/07/29 06:50:47 rin Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.8 2023/07/29 15:05:45 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.9 2023/07/29 15:04:28 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -889,6 +889,13 @@ struct linux_sys_recvmsg_args {
 };
 check_syscall_args(linux_sys_recvmsg)
 
+struct linux_sys_readahead_args {
+       syscallarg(int) fd;
+       syscallarg(off_t) offset;
+       syscallarg(size_t) count;
+};
+check_syscall_args(linux_sys_readahead)
+
 struct linux_sys_brk_args {
        syscallarg(char *) nsize;
 };
@@ -1012,6 +1019,13 @@ struct linux_sys_statx_args {
 };
 check_syscall_args(linux_sys_statx)
 
+struct linux_sys_close_range_args {
+       syscallarg(unsigned int) first;
+       syscallarg(unsigned int) last;
+       syscallarg(unsigned int) flags;
+};
+check_syscall_args(linux_sys_close_range)
+
 struct linux_sys_epoll_pwait2_args {
        syscallarg(int) epfd;
        syscallarg(struct linux_epoll_event *) events;
@@ -1372,6 +1386,8 @@ int       linux_sys_sendmsg(struct lwp *, cons
 
 int    linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
 
+int    linux_sys_readahead(struct lwp *, const struct linux_sys_readahead_args *, register_t *);
+
 int    linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
 
 int    sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
@@ -1422,6 +1438,8 @@ int       linux_sys_memfd_create(struct lwp *,
 
 int    linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
 
+int    linux_sys_close_range(struct lwp *, const struct linux_sys_close_range_args *, register_t *);
+
 int    linux_sys_nosys(struct lwp *, const void *, register_t *);
 
 int    linux_sys_epoll_pwait2(struct lwp *, const struct linux_sys_epoll_pwait2_args *, register_t *);
diff -r ba3d78122158 -r 58aa8f1d79a4 sys/compat/linux/arch/aarch64/linux_syscalls.c
--- a/sys/compat/linux/arch/aarch64/linux_syscalls.c    Sat Jul 29 15:05:31 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_syscalls.c    Sat Jul 29 15:05:45 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.7 2023/07/29 06:50:47 rin Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.8 2023/07/29 15:05:45 christos Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.9 2023/07/29 15:04:28 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.7 2023/07/29 06:50:47 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.8 2023/07/29 15:05:45 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -274,7 +274,7 @@ const char *const linux_syscallnames[] =
        /* 210 */       "shutdown",
        /* 211 */       "sendmsg",
        /* 212 */       "recvmsg",
-       /* 213 */       "#213 (unimplemented readahead)",
+       /* 213 */       "readahead",
        /* 214 */       "brk",
        /* 215 */       "munmap",
        /* 216 */       "mremap",
@@ -497,7 +497,7 @@ const char *const linux_syscallnames[] =
        /* 433 */       "#433 (unimplemented fspick)",
        /* 434 */       "#434 (unimplemented pidfd_open)",
        /* 435 */       "#435 (unimplemented clone3)",
-       /* 436 */       "#436 (unimplemented)",
+       /* 436 */       "close_range",
        /* 437 */       "#437 (unimplemented openat2)",
        /* 438 */       "#438 (unimplemented pidfd_getfd)",
        /* 439 */       "#439 (unimplemented faccessat2)",
@@ -812,7 +812,7 @@ const char *const altlinux_syscallnames[
        /* 210 */       NULL, /* shutdown */
        /* 211 */       NULL, /* sendmsg */
        /* 212 */       NULL, /* recvmsg */
-       /* 213 */       NULL, /* unimplemented readahead */
+       /* 213 */       NULL, /* readahead */
        /* 214 */       NULL, /* brk */
        /* 215 */       NULL, /* munmap */
        /* 216 */       NULL, /* mremap */
@@ -1035,7 +1035,7 @@ const char *const altlinux_syscallnames[
        /* 433 */       NULL, /* unimplemented fspick */
        /* 434 */       NULL, /* unimplemented pidfd_open */
        /* 435 */       NULL, /* unimplemented clone3 */
-       /* 436 */       NULL, /* unimplemented */
+       /* 436 */       NULL, /* close_range */
        /* 437 */       NULL, /* unimplemented openat2 */
        /* 438 */       NULL, /* unimplemented pidfd_getfd */
        /* 439 */       NULL, /* unimplemented faccessat2 */
diff -r ba3d78122158 -r 58aa8f1d79a4 sys/compat/linux/arch/aarch64/linux_sysent.c
--- a/sys/compat/linux/arch/aarch64/linux_sysent.c      Sat Jul 29 15:05:31 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_sysent.c      Sat Jul 29 15:05:45 2023 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.7 2023/07/29 06:50:47 rin Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.8 2023/07/29 15:05:45 christos Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.8 2023/07/29 06:47:26 rin Exp
+ * created from        NetBSD: syscalls.master,v 1.9 2023/07/29 15:04:28 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.7 2023/07/29 06:50:47 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.8 2023/07/29 15:05:45 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -995,8 +995,10 @@ struct sysent linux_sysent[] = {
                .sy_call = (sy_call_t *)linux_sys_recvmsg
        },              /* 212 = recvmsg */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 213 = filler */
+               ns(struct linux_sys_readahead_args),
+               .sy_flags = SYCALL_NARGS64_VAL(1) | SYCALL_ARG1_64,
+               .sy_call = (sy_call_t *)linux_sys_readahead
+       },              /* 213 = readahead */
        {
                ns(struct linux_sys_brk_args),
                .sy_flags = SYCALL_ARG_PTR,
@@ -1710,8 +1712,9 @@ struct sysent linux_sysent[] = {
                .sy_call = linux_sys_nosys,
        },              /* 435 = filler */
        {
-               .sy_call = linux_sys_nosys,
-       },              /* 436 = filler */
+               ns(struct linux_sys_close_range_args),
+               .sy_call = (sy_call_t *)linux_sys_close_range
+       },              /* 436 = close_range */
        {
                .sy_call = linux_sys_nosys,
        },              /* 437 = filler */
diff -r ba3d78122158 -r 58aa8f1d79a4 sys/compat/linux/arch/aarch64/linux_systrace_args.c
--- a/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Sat Jul 29 15:05:31 2023 +0000
+++ b/sys/compat/linux/arch/aarch64/linux_systrace_args.c       Sat Jul 29 15:05:45 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.7 2023/07/29 06:50:47 rin Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.8 2023/07/29 15:05:45 christos Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1453,6 +1453,15 @@ systrace_args(register_t sysnum, const v
                *n_args = 3;
                break;
        }
+       /* linux_sys_readahead */
+       case 213: {
+               const struct linux_sys_readahead_args *p = params;
+               iarg[0] = SCARG(p, fd); /* int */
+               iarg[1] = SCARG(p, offset); /* off_t */
+               uarg[2] = SCARG(p, count); /* size_t */
+               *n_args = 3;
+               break;
+       }
        /* linux_sys_brk */
        case 214: {
                const struct linux_sys_brk_args *p = params;
@@ -1677,6 +1686,15 @@ systrace_args(register_t sysnum, const v
                *n_args = 5;
                break;
        }
+       /* linux_sys_close_range */
+       case 436: {
+               const struct linux_sys_close_range_args *p = params;
+               uarg[0] = SCARG(p, first); /* unsigned int */
+               uarg[1] = SCARG(p, last); /* unsigned int */
+               uarg[2] = SCARG(p, flags); /* unsigned int */
+               *n_args = 3;
+               break;
+       }
        /* linux_sys_nosys */
        case 440: {
                *n_args = 0;
@@ -4138,6 +4156,22 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
+       /* linux_sys_readahead */
+       case 213:
+               switch(ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               case 1:
+                       p = "off_t";
+                       break;
+               case 2:
+                       p = "size_t";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* linux_sys_brk */
        case 214:
                switch(ndx) {
@@ -4534,6 +4568,22 @@ systrace_entry_setargdesc(int sysnum, in
                        break;
                };
                break;
+       /* linux_sys_close_range */
+       case 436:
+               switch(ndx) {
+               case 0:
+                       p = "unsigned int";
+                       break;
+               case 1:
+                       p = "unsigned int";
+                       break;
+               case 2:
+                       p = "unsigned int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        /* linux_sys_nosys */
        case 440:
                break;
@@ -5391,6 +5441,11 @@ systrace_return_setargdesc(int sysnum, i
                if (ndx == 0 || ndx == 1)
                        p = "ssize_t";
                break;
+       /* linux_sys_readahead */
+       case 213:
+               if (ndx == 0 || ndx == 1)
+                       p = "ssize_t";
+               break;
        /* linux_sys_brk */
        case 214:
                if (ndx == 0 || ndx == 1)



Home | Main Index | Thread Index | Old Index