Module Name:    src
Committed By:   christos
Date:           Mon Jul 10 21:08:37 UTC 2023

Modified Files:
        src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
            linux_syscalls.c linux_sysent.c linux_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
    src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
    src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
    src/sys/compat/linux/arch/aarch64/linux_sysent.c \
    src/sys/compat/linux/arch/aarch64/linux_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/aarch64/linux_syscall.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.4 src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscall.h	Mon Jul 10 17:08:37 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -588,6 +588,9 @@
 /* syscall: "getrandom" ret: "ssize_t" args: "void *" "size_t" "unsigned int" */
 #define	LINUX_SYS_getrandom	278
 
+/* syscall: "memfd_create" ret: "int" args: "const char *" "unsigned int" */
+#define	LINUX_SYS_memfd_create	279
+
 /* syscall: "statx" ret: "int" args: "int" "const char *" "int" "unsigned int" "struct linux_statx *" */
 #define	LINUX_SYS_statx	291
 
Index: src/sys/compat/linux/arch/aarch64/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.4 src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscallargs.h:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscallargs.h	Mon Jul 10 17:08:37 2023
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -975,6 +975,12 @@ check_syscall_args(linux_sys_sendmmsg)
 
 struct sys_getrandom_args;
 
+struct linux_sys_memfd_create_args {
+	syscallarg(const char *) name;
+	syscallarg(unsigned int) flags;
+};
+check_syscall_args(linux_sys_memfd_create)
+
 struct linux_sys_statx_args {
 	syscallarg(int) fd;
 	syscallarg(const char *) path;
@@ -1375,6 +1381,8 @@ int	linux_sys_sendmmsg(struct lwp *, con
 
 int	sys_getrandom(struct lwp *, const struct sys_getrandom_args *, register_t *);
 
+int	linux_sys_memfd_create(struct lwp *, const struct linux_sys_memfd_create_args *, register_t *);
+
 int	linux_sys_statx(struct lwp *, const struct linux_sys_statx_args *, register_t *);
 
 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
Index: src/sys/compat/linux/arch/aarch64/linux_syscalls.c
diff -u src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.4 src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.5
--- src/sys/compat/linux/arch/aarch64/linux_syscalls.c:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_syscalls.c	Mon Jul 10 17:08:37 2023
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -340,7 +340,7 @@ const char *const linux_syscallnames[] =
 	/* 276 */	"#276 (unimplemented renameat2)",
 	/* 277 */	"#277 (unimplemented seccomp)",
 	/* 278 */	"getrandom",
-	/* 279 */	"#279 (unimplemented memfd_create)",
+	/* 279 */	"memfd_create",
 	/* 280 */	"#280 (unimplemented bpf)",
 	/* 281 */	"#281 (unimplemented execveat)",
 	/* 282 */	"#282 (unimplemented userfaultfd)",
@@ -878,7 +878,7 @@ const char *const altlinux_syscallnames[
 	/* 276 */	NULL, /* unimplemented renameat2 */
 	/* 277 */	NULL, /* unimplemented seccomp */
 	/* 278 */	NULL, /* getrandom */
-	/* 279 */	NULL, /* unimplemented memfd_create */
+	/* 279 */	NULL, /* memfd_create */
 	/* 280 */	NULL, /* unimplemented bpf */
 	/* 281 */	NULL, /* unimplemented execveat */
 	/* 282 */	NULL, /* unimplemented userfaultfd */
Index: src/sys/compat/linux/arch/aarch64/linux_sysent.c
diff -u src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.4 src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.5
--- src/sys/compat/linux/arch/aarch64/linux_sysent.c:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_sysent.c	Mon Jul 10 17:08:37 2023
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp
+ * created from	NetBSD: syscalls.master,v 1.5 2023/07/10 21:08:26 christos Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.4 2021/12/02 04:39:44 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.5 2023/07/10 21:08:37 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -1230,8 +1230,10 @@ struct sysent linux_sysent[] = {
 		.sy_call = (sy_call_t *)sys_getrandom
 	},		/* 278 = getrandom */
 	{
-		.sy_call = linux_sys_nosys,
-	},		/* 279 = filler */
+		ns(struct linux_sys_memfd_create_args),
+		.sy_flags = SYCALL_ARG_PTR,
+		.sy_call = (sy_call_t *)linux_sys_memfd_create
+	},		/* 279 = memfd_create */
 	{
 		.sy_call = linux_sys_nosys,
 	},		/* 280 = filler */
Index: src/sys/compat/linux/arch/aarch64/linux_systrace_args.c
diff -u src/sys/compat/linux/arch/aarch64/linux_systrace_args.c:1.4 src/sys/compat/linux/arch/aarch64/linux_systrace_args.c:1.5
--- src/sys/compat/linux/arch/aarch64/linux_systrace_args.c:1.4	Wed Dec  1 23:39:44 2021
+++ src/sys/compat/linux/arch/aarch64/linux_systrace_args.c	Mon Jul 10 17:08:37 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.4 2021/12/02 04:39:44 ryo Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.5 2023/07/10 21:08:37 christos Exp $ */
 
 /*
  * System call argument to DTrace register array conversion.
@@ -1630,6 +1630,14 @@ systrace_args(register_t sysnum, const v
 		*n_args = 3;
 		break;
 	}
+	/* linux_sys_memfd_create */
+	case 279: {
+		const struct linux_sys_memfd_create_args *p = params;
+		uarg[0] = (intptr_t) SCARG(p, name); /* const char * */
+		uarg[1] = SCARG(p, flags); /* unsigned int */
+		*n_args = 2;
+		break;
+	}
 	/* linux_sys_statx */
 	case 291: {
 		const struct linux_sys_statx_args *p = params;
@@ -4401,6 +4409,19 @@ systrace_entry_setargdesc(int sysnum, in
 			break;
 		};
 		break;
+	/* linux_sys_memfd_create */
+	case 279:
+		switch(ndx) {
+		case 0:
+			p = "const char *";
+			break;
+		case 1:
+			p = "unsigned int";
+			break;
+		default:
+			break;
+		};
+		break;
 	/* linux_sys_statx */
 	case 291:
 		switch(ndx) {
@@ -5355,6 +5376,11 @@ systrace_return_setargdesc(int sysnum, i
 		if (ndx == 0 || ndx == 1)
 			p = "ssize_t";
 		break;
+	/* linux_sys_memfd_create */
+	case 279:
+		if (ndx == 0 || ndx == 1)
+			p = "int";
+		break;
 	/* linux_sys_statx */
 	case 291:
 		if (ndx == 0 || ndx == 1)

Reply via email to