Date: Wed, 21 Mar 2018 01:17:01 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331280 - in head/sys: compat/freebsd32 kern sys Message-ID: <201803210117.w2L1H1C7084812@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Wed Mar 21 01:17:01 2018 New Revision: 331280 URL: https://svnweb.freebsd.org/changeset/base/331280 Log: Regenerate sysent files after r331279. Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compat/freebsd32/freebsd32_sysent.c head/sys/compat/freebsd32/freebsd32_systrace_args.c head/sys/kern/init_sysent.c head/sys/kern/syscalls.c head/sys/kern/systrace_args.c head/sys/sys/syscall.h head/sys/sys/syscall.mk head/sys/sys/sysproto.h Modified: head/sys/compat/freebsd32/freebsd32_syscall.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscall.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_syscall.h Wed Mar 21 01:17:01 2018 (r331280) @@ -468,4 +468,5 @@ #define FREEBSD32_SYS_freebsd32_kevent 560 #define FREEBSD32_SYS_freebsd32_cpuset_getdomain 561 #define FREEBSD32_SYS_freebsd32_cpuset_setdomain 562 -#define FREEBSD32_SYS_MAXSYSCALL 563 +#define FREEBSD32_SYS_getrandom 563 +#define FREEBSD32_SYS_MAXSYSCALL 564 Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscalls.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_syscalls.c Wed Mar 21 01:17:01 2018 (r331280) @@ -595,4 +595,5 @@ const char *freebsd32_syscallnames[] = { "freebsd32_kevent", /* 560 = freebsd32_kevent */ "freebsd32_cpuset_getdomain", /* 561 = freebsd32_cpuset_getdomain */ "freebsd32_cpuset_setdomain", /* 562 = freebsd32_cpuset_setdomain */ + "getrandom", /* 563 = getrandom */ }; Modified: head/sys/compat/freebsd32/freebsd32_sysent.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_sysent.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_sysent.c Wed Mar 21 01:17:01 2018 (r331280) @@ -644,4 +644,5 @@ struct sysent freebsd32_sysent[] = { { AS(freebsd32_kevent_args), (sy_call_t *)freebsd32_kevent, AUE_KEVENT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 560 = freebsd32_kevent */ { AS(freebsd32_cpuset_getdomain_args), (sy_call_t *)freebsd32_cpuset_getdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 561 = freebsd32_cpuset_getdomain */ { AS(freebsd32_cpuset_setdomain_args), (sy_call_t *)freebsd32_cpuset_setdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 562 = freebsd32_cpuset_setdomain */ + { AS(getrandom_args), (sy_call_t *)sys_getrandom, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 563 = getrandom */ }; Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_systrace_args.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/compat/freebsd32/freebsd32_systrace_args.c Wed Mar 21 01:17:01 2018 (r331280) @@ -3274,6 +3274,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 7; break; } + /* getrandom */ + case 563: { + struct getrandom_args *p = params; + uarg[0] = (intptr_t) p->buf; /* void * */ + uarg[1] = p->buflen; /* size_t */ + uarg[2] = p->flags; /* unsigned int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8800,6 +8809,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* getrandom */ + case 563: + switch(ndx) { + case 0: + p = "userland void *"; + break; + case 1: + p = "size_t"; + break; + case 2: + p = "unsigned int"; + break; + default: + break; + }; + break; default: break; }; @@ -10648,6 +10673,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* freebsd32_cpuset_setdomain */ case 562: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* getrandom */ + case 563: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/kern/init_sysent.c ============================================================================== --- head/sys/kern/init_sysent.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/init_sysent.c Wed Mar 21 01:17:01 2018 (r331280) @@ -614,4 +614,5 @@ struct sysent sysent[] = { { AS(kevent_args), (sy_call_t *)sys_kevent, AUE_KEVENT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 560 = kevent */ { AS(cpuset_getdomain_args), (sy_call_t *)sys_cpuset_getdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 561 = cpuset_getdomain */ { AS(cpuset_setdomain_args), (sy_call_t *)sys_cpuset_setdomain, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 562 = cpuset_setdomain */ + { AS(getrandom_args), (sy_call_t *)sys_getrandom, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 563 = getrandom */ }; Modified: head/sys/kern/syscalls.c ============================================================================== --- head/sys/kern/syscalls.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/syscalls.c Wed Mar 21 01:17:01 2018 (r331280) @@ -569,4 +569,5 @@ const char *syscallnames[] = { "kevent", /* 560 = kevent */ "cpuset_getdomain", /* 561 = cpuset_getdomain */ "cpuset_setdomain", /* 562 = cpuset_setdomain */ + "getrandom", /* 563 = getrandom */ }; Modified: head/sys/kern/systrace_args.c ============================================================================== --- head/sys/kern/systrace_args.c Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/kern/systrace_args.c Wed Mar 21 01:17:01 2018 (r331280) @@ -3282,6 +3282,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 6; break; } + /* getrandom */ + case 563: { + struct getrandom_args *p = params; + uarg[0] = (intptr_t) p->buf; /* void * */ + uarg[1] = p->buflen; /* size_t */ + uarg[2] = p->flags; /* unsigned int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8752,6 +8761,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* getrandom */ + case 563: + switch(ndx) { + case 0: + p = "userland void *"; + break; + case 1: + p = "size_t"; + break; + case 2: + p = "unsigned int"; + break; + default: + break; + }; + break; default: break; }; @@ -10635,6 +10660,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* cpuset_setdomain */ case 562: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* getrandom */ + case 563: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/sys/syscall.h ============================================================================== --- head/sys/sys/syscall.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/syscall.h Wed Mar 21 01:17:01 2018 (r331280) @@ -478,4 +478,5 @@ #define SYS_kevent 560 #define SYS_cpuset_getdomain 561 #define SYS_cpuset_setdomain 562 -#define SYS_MAXSYSCALL 563 +#define SYS_getrandom 563 +#define SYS_MAXSYSCALL 564 Modified: head/sys/sys/syscall.mk ============================================================================== --- head/sys/sys/syscall.mk Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/syscall.mk Wed Mar 21 01:17:01 2018 (r331280) @@ -405,4 +405,5 @@ MIASM = \ mknodat.o \ kevent.o \ cpuset_getdomain.o \ - cpuset_setdomain.o + cpuset_setdomain.o \ + getrandom.o Modified: head/sys/sys/sysproto.h ============================================================================== --- head/sys/sys/sysproto.h Wed Mar 21 01:15:45 2018 (r331279) +++ head/sys/sys/sysproto.h Wed Mar 21 01:17:01 2018 (r331280) @@ -1768,6 +1768,11 @@ struct cpuset_setdomain_args { char mask_l_[PADL_(domainset_t *)]; domainset_t * mask; char mask_r_[PADR_(domainset_t *)]; char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)]; }; +struct getrandom_args { + char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; + char buflen_l_[PADL_(size_t)]; size_t buflen; char buflen_r_[PADR_(size_t)]; + char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)]; +}; 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 *); @@ -2148,6 +2153,7 @@ int sys_mknodat(struct thread *, struct mknodat_args * int sys_kevent(struct thread *, struct kevent_args *); int sys_cpuset_getdomain(struct thread *, struct cpuset_getdomain_args *); int sys_cpuset_setdomain(struct thread *, struct cpuset_setdomain_args *); +int sys_getrandom(struct thread *, struct getrandom_args *); #ifdef COMPAT_43 @@ -3040,6 +3046,7 @@ int freebsd11_mknodat(struct thread *, struct freebsd1 #define SYS_AUE_kevent AUE_KEVENT #define SYS_AUE_cpuset_getdomain AUE_NULL #define SYS_AUE_cpuset_setdomain AUE_NULL +#define SYS_AUE_getrandom AUE_NULL #undef PAD_ #undef PADL_
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803210117.w2L1H1C7084812>