From nobody Wed Nov 10 19:34:25 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 59D3A17EA0DB; Wed, 10 Nov 2021 19:34:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HqFR62255z3F7b; Wed, 10 Nov 2021 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C2B5C1E36F; Wed, 10 Nov 2021 19:34:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AAJYPo6041673; Wed, 10 Nov 2021 19:34:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AAJYPFS041672; Wed, 10 Nov 2021 19:34:25 GMT (envelope-from git) Date: Wed, 10 Nov 2021 19:34:25 GMT Message-Id: <202111101934.1AAJYPFS041672@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 439c3d95638a - main - Regen List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 439c3d95638ae1e11ae3184634e07292b139115e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=439c3d95638ae1e11ae3184634e07292b139115e commit 439c3d95638ae1e11ae3184634e07292b139115e Author: Konstantin Belousov AuthorDate: 2021-11-10 17:56:51 +0000 Commit: Konstantin Belousov 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_