Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-futex]: src/sys Regen for timerfd.
details: https://anonhg.NetBSD.org/src/rev/07b9f91f0a7d
branches: thorpej-futex
changeset: 982886:07b9f91f0a7d
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 14 16:54:04 2020 +0000
description:
Regen for timerfd.
diffstat:
sys/kern/init_sysent.c | 27 +++++---
sys/kern/syscalls.c | 18 +++---
sys/kern/syscalls_autoload.c | 6 +-
sys/kern/systrace_args.c | 88 ++++++++++++++++++++++++++++++-
sys/rump/include/rump/rump_syscalls.h | 4 +-
sys/rump/librump/rumpkern/rump_syscalls.c | 25 +++----
sys/sys/syscall.h | 13 +++-
sys/sys/syscallargs.h | 36 +++++++++++-
8 files changed, 173 insertions(+), 44 deletions(-)
diffs (truncated from 394 to 300 lines):
diff -r 16f706ada170 -r 07b9f91f0a7d sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/kern/init_sysent.c Mon Dec 14 16:54:04 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: init_sysent.c,v 1.336.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: init_sysent.c,v 1.336.2.3 2020/12/14 16:54:04 thorpej Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.306.2.3 2020/12/14 16:53:36 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.336.2.2 2020/12/14 16:01:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.336.2.3 2020/12/14 16:54:04 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_modular.h"
@@ -934,14 +934,19 @@
}, /* 176 = filler */
#endif
{
- .sy_call = sys_nosys,
- }, /* 177 = filler */
- {
- .sy_call = sys_nosys,
- }, /* 178 = filler */
- {
- .sy_call = sys_nosys,
- }, /* 179 = filler */
+ ns(struct sys_timerfd_create_args),
+ .sy_call = (sy_call_t *)sys_timerfd_create
+ }, /* 177 = timerfd_create */
+ {
+ ns(struct sys_timerfd_settime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)sys_timerfd_settime
+ }, /* 178 = timerfd_settime */
+ {
+ ns(struct sys_timerfd_gettime_args),
+ .sy_flags = SYCALL_ARG_PTR,
+ .sy_call = (sy_call_t *)sys_timerfd_gettime
+ }, /* 179 = timerfd_gettime */
{
.sy_call = sys_nosys,
}, /* 180 = filler */
diff -r 16f706ada170 -r 07b9f91f0a7d sys/kern/syscalls.c
--- a/sys/kern/syscalls.c Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/kern/syscalls.c Mon Dec 14 16:54:04 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls.c,v 1.324.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: syscalls.c,v 1.324.2.3 2020/12/14 16:54:04 thorpej Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.306.2.3 2020/12/14 16:53:36 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.324.2.2 2020/12/14 16:01:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.324.2.3 2020/12/14 16:54:04 thorpej Exp $");
#if defined(_KERNEL_OPT)
#ifdef _KERNEL_OPT
@@ -223,9 +223,9 @@
#else
/* 176 */ "#176 (excluded ntp_adjtime)",
#endif
- /* 177 */ "#177 (unimplemented)",
- /* 178 */ "#178 (unimplemented)",
- /* 179 */ "#179 (unimplemented)",
+ /* 177 */ "timerfd_create",
+ /* 178 */ "timerfd_settime",
+ /* 179 */ "timerfd_gettime",
/* 180 */ "#180 (unimplemented)",
/* 181 */ "setgid",
/* 182 */ "setegid",
@@ -760,9 +760,9 @@
#else
/* 176 */ NULL, /* excluded ntp_adjtime */
#endif
- /* 177 */ NULL, /* unimplemented */
- /* 178 */ NULL, /* unimplemented */
- /* 179 */ NULL, /* unimplemented */
+ /* 177 */ NULL, /* timerfd_create */
+ /* 178 */ NULL, /* timerfd_settime */
+ /* 179 */ NULL, /* timerfd_gettime */
/* 180 */ NULL, /* unimplemented */
/* 181 */ NULL, /* setgid */
/* 182 */ NULL, /* setegid */
diff -r 16f706ada170 -r 07b9f91f0a7d sys/kern/syscalls_autoload.c
--- a/sys/kern/syscalls_autoload.c Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/kern/syscalls_autoload.c Mon Dec 14 16:54:04 2020 +0000
@@ -1,14 +1,14 @@
-/* $NetBSD: syscalls_autoload.c,v 1.40.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: syscalls_autoload.c,v 1.40.2.3 2020/12/14 16:54:04 thorpej Exp $ */
/*
* System call autoload table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.306.2.3 2020/12/14 16:53:36 thorpej Exp
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.40.2.2 2020/12/14 16:01:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscalls_autoload.c,v 1.40.2.3 2020/12/14 16:54:04 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_modular.h"
diff -r 16f706ada170 -r 07b9f91f0a7d sys/kern/systrace_args.c
--- a/sys/kern/systrace_args.c Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/kern/systrace_args.c Mon Dec 14 16:54:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systrace_args.c,v 1.43.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: systrace_args.c,v 1.43.2.3 2020/12/14 16:54:04 thorpej Exp $ */
/*
* System call argument to DTrace register array converstion.
@@ -1311,6 +1311,32 @@
}
#else
#endif
+ /* sys_timerfd_create */
+ case 177: {
+ const struct sys_timerfd_create_args *p = params;
+ iarg[0] = SCARG(p, clock_id); /* clockid_t */
+ iarg[1] = SCARG(p, flags); /* int */
+ *n_args = 2;
+ break;
+ }
+ /* sys_timerfd_settime */
+ case 178: {
+ const struct sys_timerfd_settime_args *p = params;
+ iarg[0] = SCARG(p, fd); /* int */
+ iarg[1] = SCARG(p, flags); /* int */
+ uarg[2] = (intptr_t) SCARG(p, new_value); /* const struct itimerspec * */
+ uarg[3] = (intptr_t) SCARG(p, old_value); /* struct itimerspec * */
+ *n_args = 4;
+ break;
+ }
+ /* sys_timerfd_gettime */
+ case 179: {
+ const struct sys_timerfd_gettime_args *p = params;
+ iarg[0] = SCARG(p, fd); /* int */
+ uarg[1] = (intptr_t) SCARG(p, curr_value); /* struct itimerspec * */
+ *n_args = 2;
+ break;
+ }
/* sys_setgid */
case 181: {
const struct sys_setgid_args *p = params;
@@ -5988,6 +6014,51 @@
break;
#else
#endif
+ /* sys_timerfd_create */
+ case 177:
+ switch(ndx) {
+ case 0:
+ p = "clockid_t";
+ break;
+ case 1:
+ p = "int";
+ break;
+ default:
+ break;
+ };
+ break;
+ /* sys_timerfd_settime */
+ case 178:
+ switch(ndx) {
+ case 0:
+ p = "int";
+ break;
+ case 1:
+ p = "int";
+ break;
+ case 2:
+ p = "const struct itimerspec *";
+ break;
+ case 3:
+ p = "struct itimerspec *";
+ break;
+ default:
+ break;
+ };
+ break;
+ /* sys_timerfd_gettime */
+ case 179:
+ switch(ndx) {
+ case 0:
+ p = "int";
+ break;
+ case 1:
+ p = "struct itimerspec *";
+ break;
+ default:
+ break;
+ };
+ break;
/* sys_setgid */
case 181:
switch(ndx) {
@@ -11180,6 +11251,21 @@
break;
#else
#endif
+ /* sys_timerfd_create */
+ case 177:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
+ /* sys_timerfd_settime */
+ case 178:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
+ /* sys_timerfd_gettime */
+ case 179:
+ if (ndx == 0 || ndx == 1)
+ p = "int";
+ break;
/* sys_setgid */
case 181:
if (ndx == 0 || ndx == 1)
diff -r 16f706ada170 -r 07b9f91f0a7d sys/rump/include/rump/rump_syscalls.h
--- a/sys/rump/include/rump/rump_syscalls.h Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/rump/include/rump/rump_syscalls.h Mon Dec 14 16:54:04 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.h,v 1.123.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: rump_syscalls.h,v 1.123.2.3 2020/12/14 16:54:05 thorpej Exp $ */
/*
* System call protos in rump namespace.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.306.2.3 2020/12/14 16:53:36 thorpej Exp
*/
#ifndef _RUMP_RUMP_SYSCALLS_H_
diff -r 16f706ada170 -r 07b9f91f0a7d sys/rump/librump/rumpkern/rump_syscalls.c
--- a/sys/rump/librump/rumpkern/rump_syscalls.c Mon Dec 14 16:53:36 2020 +0000
+++ b/sys/rump/librump/rumpkern/rump_syscalls.c Mon Dec 14 16:54:04 2020 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_syscalls.c,v 1.154.2.2 2020/12/14 16:01:17 thorpej Exp $ */
+/* $NetBSD: rump_syscalls.c,v 1.154.2.3 2020/12/14 16:54:05 thorpej Exp $ */
/*
* System call vector and marshalling for rump.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from NetBSD: syscalls.master,v 1.306.2.2 2020/12/14 16:00:51 thorpej Exp
+ * created from NetBSD: syscalls.master,v 1.306.2.3 2020/12/14 16:53:36 thorpej Exp
*/
#ifdef RUMP_CLIENT
@@ -15,7 +15,7 @@
#ifdef __NetBSD__
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.154.2.2 2020/12/14 16:01:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.154.2.3 2020/12/14 16:54:05 thorpej Exp $");
#include <sys/fstypes.h>
#include <sys/proc.h>
@@ -7347,17 +7347,14 @@
}, /* 176 = filler */
#endif
{
- .sy_flags = SYCALL_NOSYS,
- .sy_call = (sy_call_t *)(void *)rumpns_enosys,
- }, /* 177 = filler */
- {
- .sy_flags = SYCALL_NOSYS,
- .sy_call = (sy_call_t *)(void *)rumpns_enosys,
- }, /* 178 = filler */
- {
- .sy_flags = SYCALL_NOSYS,
- .sy_call = (sy_call_t *)(void *)rumpns_enosys,
- }, /* 179 = filler */
+ .sy_call = (sy_call_t *)(void *)rumpns_enosys,
+}, /* 177 = timerfd_create */
+ {
+ .sy_call = (sy_call_t *)(void *)rumpns_enosys,
+}, /* 178 = timerfd_settime */
+ {
+ .sy_call = (sy_call_t *)(void *)rumpns_enosys,
+}, /* 179 = timerfd_gettime */
{
.sy_flags = SYCALL_NOSYS,
.sy_call = (sy_call_t *)(void *)rumpns_enosys,
Home |
Main Index |
Thread Index |
Old Index