git: 439c3d95638a - main - Regen

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 19:34:25 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=439c3d95638ae1e11ae3184634e07292b139115e

commit 439c3d95638ae1e11ae3184634e07292b139115e
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-10 17:56:51 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-10 19:18:54 +0000

    Regen
---
 sys/compat/freebsd32/freebsd32_syscall.h       |  3 ++-
 sys/compat/freebsd32/freebsd32_syscalls.c      |  1 +
 sys/compat/freebsd32/freebsd32_sysent.c        |  1 +
 sys/compat/freebsd32/freebsd32_systrace_args.c | 10 ++++++++++
 sys/kern/init_sysent.c                         |  1 +
 sys/kern/syscalls.c                            |  1 +
 sys/kern/systrace_args.c                       | 10 ++++++++++
 sys/sys/syscall.h                              |  3 ++-
 sys/sys/syscall.mk                             |  3 ++-
 sys/sys/sysproto.h                             |  5 +++++
 10 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/sys/compat/freebsd32/freebsd32_syscall.h b/sys/compat/freebsd32/freebsd32_syscall.h
index 7898b3a25c2e..9f2f439c4c7f 100644
--- a/sys/compat/freebsd32/freebsd32_syscall.h
+++ b/sys/compat/freebsd32/freebsd32_syscall.h
@@ -509,4 +509,5 @@
 #define	FREEBSD32_SYS_freebsd32_aio_writev	578
 #define	FREEBSD32_SYS_freebsd32_aio_readv	579
 #define	FREEBSD32_SYS_freebsd32_fspacectl	580
-#define	FREEBSD32_SYS_MAXSYSCALL	581
+#define	FREEBSD32_SYS_sched_getcpu	581
+#define	FREEBSD32_SYS_MAXSYSCALL	582
diff --git a/sys/compat/freebsd32/freebsd32_syscalls.c b/sys/compat/freebsd32/freebsd32_syscalls.c
index 51b7dbc249d0..4d20af028834 100644
--- a/sys/compat/freebsd32/freebsd32_syscalls.c
+++ b/sys/compat/freebsd32/freebsd32_syscalls.c
@@ -617,4 +617,5 @@ const char *freebsd32_syscallnames[] = {
 	"freebsd32_aio_writev",			/* 578 = freebsd32_aio_writev */
 	"freebsd32_aio_readv",			/* 579 = freebsd32_aio_readv */
 	"freebsd32_fspacectl",			/* 580 = freebsd32_fspacectl */
+	"sched_getcpu",			/* 581 = sched_getcpu */
 };
diff --git a/sys/compat/freebsd32/freebsd32_sysent.c b/sys/compat/freebsd32/freebsd32_sysent.c
index 6e1ae033b765..f8769b8de446 100644
--- a/sys/compat/freebsd32/freebsd32_sysent.c
+++ b/sys/compat/freebsd32/freebsd32_sysent.c
@@ -670,4 +670,5 @@ struct sysent freebsd32_sysent[] = {
 	{ .sy_narg = AS(freebsd32_aio_writev_args), .sy_call = (sy_call_t *)freebsd32_aio_writev, .sy_auevent = AUE_AIO_WRITEV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 578 = freebsd32_aio_writev */
 	{ .sy_narg = AS(freebsd32_aio_readv_args), .sy_call = (sy_call_t *)freebsd32_aio_readv, .sy_auevent = AUE_AIO_READV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 579 = freebsd32_aio_readv */
 	{ .sy_narg = AS(freebsd32_fspacectl_args), .sy_call = (sy_call_t *)freebsd32_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 580 = freebsd32_fspacectl */
+	{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 581 = sched_getcpu */
 };
diff --git a/sys/compat/freebsd32/freebsd32_systrace_args.c b/sys/compat/freebsd32/freebsd32_systrace_args.c
index 7c970c358296..96a67aef6255 100644
--- a/sys/compat/freebsd32/freebsd32_systrace_args.c
+++ b/sys/compat/freebsd32/freebsd32_systrace_args.c
@@ -3418,6 +3418,11 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
 		*n_args = 5;
 		break;
 	}
+	/* sched_getcpu */
+	case 581: {
+		*n_args = 0;
+		break;
+	}
 	default:
 		*n_args = 0;
 		break;
@@ -9216,6 +9221,9 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
 			break;
 		};
 		break;
+	/* sched_getcpu */
+	case 581:
+		break;
 	default:
 		break;
 	};
@@ -11140,6 +11148,8 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
 		if (ndx == 0 || ndx == 1)
 			p = "int";
 		break;
+	/* sched_getcpu */
+	case 581:
 	default:
 		break;
 	};
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 414b998420aa..b58ee2859108 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -636,4 +636,5 @@ struct sysent sysent[] = {
 	{ .sy_narg = AS(aio_writev_args), .sy_call = (sy_call_t *)sys_aio_writev, .sy_auevent = AUE_AIO_WRITEV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 578 = aio_writev */
 	{ .sy_narg = AS(aio_readv_args), .sy_call = (sy_call_t *)sys_aio_readv, .sy_auevent = AUE_AIO_READV, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 579 = aio_readv */
 	{ .sy_narg = AS(fspacectl_args), .sy_call = (sy_call_t *)sys_fspacectl, .sy_auevent = AUE_FSPACECTL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 580 = fspacectl */
+	{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_sched_getcpu, .sy_auevent = AUE_NULL, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC },	/* 581 = sched_getcpu */
 };
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 4d5423a28bb8..efbac3185746 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -587,4 +587,5 @@ const char *syscallnames[] = {
 	"aio_writev",			/* 578 = aio_writev */
 	"aio_readv",			/* 579 = aio_readv */
 	"fspacectl",			/* 580 = fspacectl */
+	"sched_getcpu",			/* 581 = sched_getcpu */
 };
diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c
index d924e49be355..a3e28aed31f9 100644
--- a/sys/kern/systrace_args.c
+++ b/sys/kern/systrace_args.c
@@ -3410,6 +3410,11 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
 		*n_args = 5;
 		break;
 	}
+	/* sched_getcpu */
+	case 581: {
+		*n_args = 0;
+		break;
+	}
 	default:
 		*n_args = 0;
 		break;
@@ -9121,6 +9126,9 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
 			break;
 		};
 		break;
+	/* sched_getcpu */
+	case 581:
+		break;
 	default:
 		break;
 	};
@@ -11072,6 +11080,8 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
 		if (ndx == 0 || ndx == 1)
 			p = "int";
 		break;
+	/* sched_getcpu */
+	case 581:
 	default:
 		break;
 	};
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index 34c836f22ccc..051a0f64390e 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -518,4 +518,5 @@
 #define	SYS_aio_writev	578
 #define	SYS_aio_readv	579
 #define	SYS_fspacectl	580
-#define	SYS_MAXSYSCALL	581
+#define	SYS_sched_getcpu	581
+#define	SYS_MAXSYSCALL	582
diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk
index 52cc8c9a7563..5760a2574a84 100644
--- a/sys/sys/syscall.mk
+++ b/sys/sys/syscall.mk
@@ -423,4 +423,5 @@ MIASM =  \
 	__specialfd.o \
 	aio_writev.o \
 	aio_readv.o \
-	fspacectl.o
+	fspacectl.o \
+	sched_getcpu.o
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index cec3c1925e5d..2a89ee0770f3 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -1854,6 +1854,9 @@ struct fspacectl_args {
 	char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
 	char rmsr_l_[PADL_(struct spacectl_range *)]; struct spacectl_range * rmsr; char rmsr_r_[PADR_(struct spacectl_range *)];
 };
+struct sched_getcpu_args {
+	register_t dummy;
+};
 int	nosys(struct thread *, struct nosys_args *);
 void	sys_sys_exit(struct thread *, struct sys_exit_args *);
 int	sys_fork(struct thread *, struct fork_args *);
@@ -2249,6 +2252,7 @@ int	sys___specialfd(struct thread *, struct __specialfd_args *);
 int	sys_aio_writev(struct thread *, struct aio_writev_args *);
 int	sys_aio_readv(struct thread *, struct aio_readv_args *);
 int	sys_fspacectl(struct thread *, struct fspacectl_args *);
+int	sys_sched_getcpu(struct thread *, struct sched_getcpu_args *);
 
 #ifdef COMPAT_43
 
@@ -3194,6 +3198,7 @@ int	freebsd12_closefrom(struct thread *, struct freebsd12_closefrom_args *);
 #define	SYS_AUE_aio_writev	AUE_AIO_WRITEV
 #define	SYS_AUE_aio_readv	AUE_AIO_READV
 #define	SYS_AUE_fspacectl	AUE_FSPACECTL
+#define	SYS_AUE_sched_getcpu	AUE_NULL
 
 #undef PAD_
 #undef PADL_