diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-02 07:41:10 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-02 07:41:10 +0000 |
commit | 9b809b84f16f1b5f2b5c156fa35225d7453ae6ff (patch) | |
tree | 6e6f6ceab2dd08974c7721ce896ec881210c2847 /sys/kern | |
parent | 694203deddc2570fd74a74f384e602bc5b335850 (diff) | |
download | FreeBSD-src-9b809b84f16f1b5f2b5c156fa35225d7453ae6ff.zip FreeBSD-src-9b809b84f16f1b5f2b5c156fa35225d7453ae6ff.tar.gz |
- Regen for cpuset
Sponsored by: Nokia
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_sysent.c | 7 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 7 | ||||
-rw-r--r-- | sys/kern/systrace_args.c | 48 |
3 files changed, 60 insertions, 2 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 40b01f4..37dd36b 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.237 2008/02/12 20:09:04 ru Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.238 2008/03/02 07:39:22 jeff Exp */ #include "opt_compat.h" @@ -513,4 +513,9 @@ struct sysent sysent[] = { { AS(thr_kill2_args), (sy_call_t *)thr_kill2, AUE_KILL, NULL, 0, 0 }, /* 481 = thr_kill2 */ { AS(shm_open_args), (sy_call_t *)shm_open, AUE_SHMOPEN, NULL, 0, 0 }, /* 482 = shm_open */ { AS(shm_unlink_args), (sy_call_t *)shm_unlink, AUE_SHMUNLINK, NULL, 0, 0 }, /* 483 = shm_unlink */ + { AS(cpuset_args), (sy_call_t *)cpuset, AUE_NULL, NULL, 0, 0 }, /* 484 = cpuset */ + { AS(cpuset_setid_args), (sy_call_t *)cpuset_setid, AUE_NULL, NULL, 0, 0 }, /* 485 = cpuset_setid */ + { AS(cpuset_getid_args), (sy_call_t *)cpuset_getid, AUE_NULL, NULL, 0, 0 }, /* 486 = cpuset_getid */ + { AS(cpuset_getaffinity_args), (sy_call_t *)cpuset_getaffinity, AUE_NULL, NULL, 0, 0 }, /* 487 = cpuset_getaffinity */ + { AS(cpuset_setaffinity_args), (sy_call_t *)cpuset_setaffinity, AUE_NULL, NULL, 0, 0 }, /* 488 = cpuset_setaffinity */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 025dd70..ac584a3 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.237 2008/02/12 20:09:04 ru Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.238 2008/03/02 07:39:22 jeff Exp */ const char *syscallnames[] = { @@ -491,4 +491,9 @@ const char *syscallnames[] = { "thr_kill2", /* 481 = thr_kill2 */ "shm_open", /* 482 = shm_open */ "shm_unlink", /* 483 = shm_unlink */ + "cpuset", /* 484 = cpuset */ + "cpuset_setid", /* 485 = cpuset_setid */ + "cpuset_getid", /* 486 = cpuset_getid */ + "cpuset_getaffinity", /* 487 = cpuset_getaffinity */ + "cpuset_setaffinity", /* 488 = cpuset_setaffinity */ }; diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c index 2b445c6..9b5b706 100644 --- a/sys/kern/systrace_args.c +++ b/sys/kern/systrace_args.c @@ -2887,6 +2887,54 @@ systrace_args(int sysnum, void *params, u_int64_t *uarg, int *n_args) *n_args = 1; break; } + /* cpuset */ + case 484: { + struct cpuset_args *p = params; + uarg[0] = (intptr_t) p->setid; /* cpusetid_t * */ + *n_args = 1; + break; + } + /* cpuset_setid */ + case 485: { + struct cpuset_setid_args *p = params; + iarg[0] = p->which; /* cpuwhich_t */ + iarg[1] = p->id; /* id_t */ + iarg[2] = p->setid; /* cpusetid_t */ + *n_args = 3; + break; + } + /* cpuset_getid */ + case 486: { + struct cpuset_getid_args *p = params; + iarg[0] = p->level; /* cpulevel_t */ + iarg[1] = p->which; /* cpuwhich_t */ + iarg[2] = p->id; /* id_t */ + uarg[3] = (intptr_t) p->setid; /* cpusetid_t * */ + *n_args = 4; + break; + } + /* cpuset_getaffinity */ + case 487: { + struct cpuset_getaffinity_args *p = params; + iarg[0] = p->level; /* cpulevel_t */ + iarg[1] = p->which; /* cpuwhich_t */ + iarg[2] = p->id; /* id_t */ + iarg[3] = p->cpusetsize; /* int */ + uarg[4] = (intptr_t) p->mask; /* long * */ + *n_args = 5; + break; + } + /* cpuset_setaffinity */ + case 488: { + struct cpuset_setaffinity_args *p = params; + iarg[0] = p->level; /* cpulevel_t */ + iarg[1] = p->which; /* cpuwhich_t */ + iarg[2] = p->id; /* id_t */ + iarg[3] = p->cpusetsize; /* int */ + uarg[4] = (intptr_t) p->mask; /* long * */ + *n_args = 5; + break; + } default: *n_args = 0; break; |