Date: Sat, 11 Jul 2015 15:22:12 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285388 - in head/sys: compat/freebsd32 kern sys Message-ID: <201507111522.t6BFMC02042486@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sat Jul 11 15:22:11 2015 New Revision: 285388 URL: https://svnweb.freebsd.org/changeset/base/285388 Log: Regenerate syscalls. 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/compat/freebsd32/syscalls.master head/sys/kern/syscalls.c head/sys/kern/syscalls.master 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 Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/compat/freebsd32/freebsd32_syscall.h Sat Jul 11 15:22:11 2015 (r285388) @@ -455,4 +455,6 @@ #define FREEBSD32_SYS_freebsd32_ppoll 545 #define FREEBSD32_SYS_freebsd32_futimens 546 #define FREEBSD32_SYS_freebsd32_utimensat 547 -#define FREEBSD32_SYS_MAXSYSCALL 548 +#define FREEBSD32_SYS_numa_getaffinity 548 +#define FREEBSD32_SYS_numa_setaffinity 549 +#define FREEBSD32_SYS_MAXSYSCALL 550 Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscalls.c Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/compat/freebsd32/freebsd32_syscalls.c Sat Jul 11 15:22:11 2015 (r285388) @@ -581,4 +581,6 @@ const char *freebsd32_syscallnames[] = { "freebsd32_ppoll", /* 545 = freebsd32_ppoll */ "freebsd32_futimens", /* 546 = freebsd32_futimens */ "freebsd32_utimensat", /* 547 = freebsd32_utimensat */ + "numa_getaffinity", /* 548 = numa_getaffinity */ + "numa_setaffinity", /* 549 = numa_setaffinity */ }; Modified: head/sys/compat/freebsd32/freebsd32_sysent.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_sysent.c Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/compat/freebsd32/freebsd32_sysent.c Sat Jul 11 15:22:11 2015 (r285388) @@ -618,4 +618,6 @@ struct sysent freebsd32_sysent[] = { { AS(freebsd32_ppoll_args), (sy_call_t *)freebsd32_ppoll, AUE_POLL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 545 = freebsd32_ppoll */ { AS(freebsd32_futimens_args), (sy_call_t *)freebsd32_futimens, AUE_FUTIMES, NULL, 0, 0, 0, SY_THR_STATIC }, /* 546 = freebsd32_futimens */ { AS(freebsd32_utimensat_args), (sy_call_t *)freebsd32_utimensat, AUE_FUTIMESAT, NULL, 0, 0, 0, SY_THR_STATIC }, /* 547 = freebsd32_utimensat */ + { AS(numa_getaffinity_args), (sy_call_t *)sys_numa_getaffinity, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 548 = numa_getaffinity */ + { AS(numa_setaffinity_args), (sy_call_t *)sys_numa_setaffinity, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 549 = numa_setaffinity */ }; Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_systrace_args.c Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/compat/freebsd32/freebsd32_systrace_args.c Sat Jul 11 15:22:11 2015 (r285388) @@ -3327,6 +3327,24 @@ systrace_args(int sysnum, void *params, *n_args = 4; break; } + /* numa_getaffinity */ + case 548: { + struct numa_getaffinity_args *p = params; + iarg[0] = p->which; /* cpuwhich_t */ + iarg[1] = p->id; /* id_t */ + uarg[2] = (intptr_t) p->policy; /* struct vm_domain_policy * */ + *n_args = 3; + break; + } + /* numa_setaffinity */ + case 549: { + struct numa_setaffinity_args *p = params; + iarg[0] = p->which; /* cpuwhich_t */ + iarg[1] = p->id; /* id_t */ + uarg[2] = (intptr_t) p->policy; /* const struct vm_domain_policy * */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8923,6 +8941,38 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* numa_getaffinity */ + case 548: + switch(ndx) { + case 0: + p = "cpuwhich_t"; + break; + case 1: + p = "id_t"; + break; + case 2: + p = "struct vm_domain_policy *"; + break; + default: + break; + }; + break; + /* numa_setaffinity */ + case 549: + switch(ndx) { + case 0: + p = "cpuwhich_t"; + break; + case 1: + p = "id_t"; + break; + case 2: + p = "const struct vm_domain_policy *"; + break; + default: + break; + }; + break; default: break; }; @@ -10811,6 +10861,16 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* numa_getaffinity */ + case 548: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* numa_setaffinity */ + case 549: + if (ndx == 0 || ndx == 1) + p = "int"; + break; default: break; }; Modified: head/sys/compat/freebsd32/syscalls.master ============================================================================== --- head/sys/compat/freebsd32/syscalls.master Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/compat/freebsd32/syscalls.master Sat Jul 11 15:22:11 2015 (r285388) @@ -1074,3 +1074,9 @@ 547 AUE_FUTIMESAT STD { int freebsd32_utimensat(int fd, \ char *path, \ struct timespec *times, int flag); } +548 AUE_NULL NOPROTO { int numa_getaffinity(cpuwhich_t which, \ + id_t id, \ + struct vm_domain_policy *policy); } +549 AUE_NULL NOPROTO { int numa_setaffinity(cpuwhich_t which, \ + id_t id, \ + const struct vm_domain_policy *policy); } Modified: head/sys/kern/syscalls.c ============================================================================== --- head/sys/kern/syscalls.c Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/kern/syscalls.c Sat Jul 11 15:22:11 2015 (r285388) @@ -555,4 +555,6 @@ const char *syscallnames[] = { "ppoll", /* 545 = ppoll */ "futimens", /* 546 = futimens */ "utimensat", /* 547 = utimensat */ + "numa_getaffinity", /* 548 = numa_getaffinity */ + "numa_setaffinity", /* 549 = numa_setaffinity */ }; Modified: head/sys/kern/syscalls.master ============================================================================== --- head/sys/kern/syscalls.master Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/kern/syscalls.master Sat Jul 11 15:22:11 2015 (r285388) @@ -988,5 +988,12 @@ 547 AUE_FUTIMESAT STD { int utimensat(int fd, \ char *path, \ struct timespec *times, int flag); } +548 AUE_NULL STD { int numa_getaffinity(cpuwhich_t which, \ + id_t id, \ + struct vm_domain_policy_entry *policy); } +549 AUE_NULL STD { int numa_setaffinity(cpuwhich_t which, \ + id_t id, \ + const struct vm_domain_policy_entry *policy); } + ; Please copy any additions and changes to the following compatability tables: ; sys/compat/freebsd32/syscalls.master Modified: head/sys/kern/systrace_args.c ============================================================================== --- head/sys/kern/systrace_args.c Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/kern/systrace_args.c Sat Jul 11 15:22:11 2015 (r285388) @@ -3337,6 +3337,24 @@ systrace_args(int sysnum, void *params, *n_args = 4; break; } + /* numa_getaffinity */ + case 548: { + struct numa_getaffinity_args *p = params; + iarg[0] = p->which; /* cpuwhich_t */ + iarg[1] = p->id; /* id_t */ + uarg[2] = (intptr_t) p->policy; /* struct vm_domain_policy_entry * */ + *n_args = 3; + break; + } + /* numa_setaffinity */ + case 549: { + struct numa_setaffinity_args *p = params; + iarg[0] = p->which; /* cpuwhich_t */ + iarg[1] = p->id; /* id_t */ + uarg[2] = (intptr_t) p->policy; /* const struct vm_domain_policy_entry * */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8883,6 +8901,38 @@ systrace_entry_setargdesc(int sysnum, in break; }; break; + /* numa_getaffinity */ + case 548: + switch(ndx) { + case 0: + p = "cpuwhich_t"; + break; + case 1: + p = "id_t"; + break; + case 2: + p = "struct vm_domain_policy_entry *"; + break; + default: + break; + }; + break; + /* numa_setaffinity */ + case 549: + switch(ndx) { + case 0: + p = "cpuwhich_t"; + break; + case 1: + p = "id_t"; + break; + case 2: + p = "const struct vm_domain_policy_entry *"; + break; + default: + break; + }; + break; default: break; }; @@ -10806,6 +10856,16 @@ systrace_return_setargdesc(int sysnum, i if (ndx == 0 || ndx == 1) p = "int"; break; + /* numa_getaffinity */ + case 548: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* numa_setaffinity */ + case 549: + if (ndx == 0 || ndx == 1) + p = "int"; + break; default: break; }; Modified: head/sys/sys/syscall.h ============================================================================== --- head/sys/sys/syscall.h Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/sys/syscall.h Sat Jul 11 15:22:11 2015 (r285388) @@ -465,4 +465,6 @@ #define SYS_ppoll 545 #define SYS_futimens 546 #define SYS_utimensat 547 -#define SYS_MAXSYSCALL 548 +#define SYS_numa_getaffinity 548 +#define SYS_numa_setaffinity 549 +#define SYS_MAXSYSCALL 550 Modified: head/sys/sys/syscall.mk ============================================================================== --- head/sys/sys/syscall.mk Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/sys/syscall.mk Sat Jul 11 15:22:11 2015 (r285388) @@ -412,4 +412,6 @@ MIASM = \ procctl.o \ ppoll.o \ futimens.o \ - utimensat.o + utimensat.o \ + numa_getaffinity.o \ + numa_setaffinity.o Modified: head/sys/sys/sysproto.h ============================================================================== --- head/sys/sys/sysproto.h Sat Jul 11 15:21:37 2015 (r285387) +++ head/sys/sys/sysproto.h Sat Jul 11 15:22:11 2015 (r285388) @@ -1790,6 +1790,16 @@ struct utimensat_args { char times_l_[PADL_(struct timespec *)]; struct timespec * times; char times_r_[PADR_(struct timespec *)]; char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; }; +struct numa_getaffinity_args { + char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; + char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)]; + char policy_l_[PADL_(struct vm_domain_policy_entry *)]; struct vm_domain_policy_entry * policy; char policy_r_[PADR_(struct vm_domain_policy_entry *)]; +}; +struct numa_setaffinity_args { + char which_l_[PADL_(cpuwhich_t)]; cpuwhich_t which; char which_r_[PADR_(cpuwhich_t)]; + char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)]; + char policy_l_[PADL_(const struct vm_domain_policy_entry *)]; const struct vm_domain_policy_entry * policy; char policy_r_[PADR_(const struct vm_domain_policy_entry *)]; +}; 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 *); @@ -2178,6 +2188,8 @@ int sys_procctl(struct thread *, struct int sys_ppoll(struct thread *, struct ppoll_args *); int sys_futimens(struct thread *, struct futimens_args *); int sys_utimensat(struct thread *, struct utimensat_args *); +int sys_numa_getaffinity(struct thread *, struct numa_getaffinity_args *); +int sys_numa_setaffinity(struct thread *, struct numa_setaffinity_args *); #ifdef COMPAT_43 @@ -2931,6 +2943,8 @@ int freebsd7_shmctl(struct thread *, str #define SYS_AUE_ppoll AUE_POLL #define SYS_AUE_futimens AUE_FUTIMES #define SYS_AUE_utimensat AUE_FUTIMESAT +#define SYS_AUE_numa_getaffinity AUE_NULL +#define SYS_AUE_numa_setaffinity AUE_NULL #undef PAD_ #undef PADL_
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507111522.t6BFMC02042486>