/freebsd-10-stable/usr.bin/cpuset/ |
H A D | Makefile | 1 # $FreeBSD: stable/10/usr.bin/cpuset/Makefile 336039 2018-07-06 19:10:07Z jamie $ 3 PROG= cpuset
|
H A D | cpuset.c | 31 __FBSDID("$FreeBSD: stable/10/usr.bin/cpuset/cpuset.c 336039 2018-07-06 19:10:07Z jamie $"); 37 #include <sys/cpuset.h> 165 static const char *whichnames[] = { NULL, "tid", "pid", "cpuset", "irq", "jail" }; 166 static const char *levelnames[] = { NULL, " root", " cpuset", "" }; 294 if (cpuset(&setid)) 323 * Create a new cpuset and move the specified process 326 if (cpuset(&setid) < 0) 354 "usage: cpuset [-l cpu-list] [-s setid] cmd ...\n"); 356 " cpuset [ [all...] |
/freebsd-10-stable/contrib/gcclibs/libgomp/config/linux/ |
H A D | affinity.c | 48 cpu_set_t cpuset; local 51 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), &cpuset)) 62 && CPU_ISSET (gomp_cpu_affinity[idx], &cpuset)) 75 CPU_ZERO (&cpuset); 76 CPU_SET (gomp_cpu_affinity[0], &cpuset); 77 pthread_setaffinity_np (pthread_self (), sizeof (cpuset), &cpuset); local 88 cpu_set_t cpuset; local 98 CPU_ZERO (&cpuset); [all...] |
H A D | proc.c | 76 cpu_set_t cpuset; local 78 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), &cpuset) == 0) 81 gomp_nthreads_var = cpuset_popcount (&cpuset); 96 cpu_set_t cpuset; local 101 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), 102 &cpuset) == 0) 104 int ret = cpuset_popcount (&cpuset); 117 CPU_ZERO (&cpuset); 122 if (! CPU_ISSET (gomp_cpu_affinity[idx], &cpuset)) [all...] |
/freebsd-10-stable/sys/sys/ |
H A D | cpuset.h | 82 * Reserved cpuset identifiers. 88 LIST_HEAD(setlist, cpuset); 95 * c - Locked internally by a cpuset lock. 97 * The bitmask is only modified while holding the cpuset lock. It may be 101 struct cpuset { struct 106 struct cpuset *cs_parent; /* (s) Pointer to our parent. */ 107 LIST_ENTRY(cpuset) cs_link; /* (c) All identified sets. */ 108 LIST_ENTRY(cpuset) cs_siblings; /* (c) Sibling set link. */ 119 struct cpuset *cpuset_thread0(void); 120 struct cpuset *cpuset_re [all...] |
H A D | smp.h | 19 #include <sys/cpuset.h>
|
H A D | syscall.mk | 355 cpuset.o \
|
/freebsd-10-stable/usr.bin/sed/tests/ |
H A D | inplace_race_test.sh | 34 if command -v cpuset >/dev/null; then 35 case `cpuset -g -p $$` in
|
/freebsd-10-stable/sys/kern/ |
H A D | kern_cpuset.c | 50 #include <sys/cpuset.h> 109 static struct cpuset *cpuset_zero; 118 * Acquire a reference to a cpuset, all pointers must be tracked with refs. 120 struct cpuset * 121 cpuset_ref(struct cpuset *set) 132 static struct cpuset * 133 cpuset_refroot(struct cpuset *set) 149 static struct cpuset * 150 cpuset_refbase(struct cpuset *set) 164 cpuset_rel(struct cpuset *se [all...] |
/freebsd-10-stable/lib/libthr/thread/ |
H A D | thr_attr.c | 121 if ((*attr)->cpuset != NULL) 122 free((*attr)->cpuset); 149 if (dst->cpuset == NULL) { 150 dst->cpuset = calloc(1, kern_size); 160 dst->cpusetsize, dst->cpuset); 594 if (attr->cpuset != NULL) { 595 free(attr->cpuset); 596 attr->cpuset = NULL; 613 if (attr->cpuset == NULL) { 614 attr->cpuset [all...] |
H A D | thr_affinity.c | 33 #include <sys/cpuset.h>
|
H A D | thr_create.c | 87 cpusetp = new_thread->attr.cpuset; 89 new_thread->attr.cpuset = NULL;
|
H A D | thr_private.h | 43 #include <sys/cpuset.h> 250 #define pthread_attr_end_copy cpuset 251 cpuset_t *cpuset; member in struct:pthread_attr
|
/freebsd-10-stable/include/ |
H A D | pthread_np.h | 35 #include <sys/cpuset.h>
|
/freebsd-10-stable/contrib/xz/src/common/ |
H A D | tuklib_cpucores.c | 28 # include <sys/cpuset.h>
|
/freebsd-10-stable/tools/tools/vimage/ |
H A D | vimage.c | 63 int cpuset; member in struct:vimage_status 205 printf(" CPUsetID: %d\n", vst[i].cpuset); 367 jailparam_init(¶ms[psize], "cpuset.id"); 368 jailparam_import_raw(¶ms[psize++], &vs->cpuset, 369 sizeof(vs->cpuset));
|
/freebsd-10-stable/usr.bin/procstat/ |
H A D | procstat_cs.c | 30 #include <sys/cpuset.h>
|
/freebsd-10-stable/sys/arm/freescale/imx/ |
H A D | tzic.c | 42 #include <sys/cpuset.h>
|
/freebsd-10-stable/sys/i386/ibcs2/ |
H A D | ibcs2_xenix.h | 14 #include <sys/cpuset.h>
|
/freebsd-10-stable/lib/libc/sys/ |
H A D | Makefile.inc | 168 cpuset.2 \ 355 MLINKS+=cpuset.2 cpuset_getid.2 \ 356 cpuset.2 cpuset_setid.2
|
/freebsd-10-stable/sys/amd64/vmm/ |
H A D | vmm_dev.c | 287 cpuset_t *cpuset; local 601 cpuset = malloc(size, M_TEMP, M_WAITOK | M_ZERO); 603 *cpuset = vm_active_cpus(sc->vm); 605 *cpuset = vm_suspended_cpus(sc->vm); 609 error = copyout(cpuset, vm_cpuset->cpus, size); 610 free(cpuset, M_TEMP);
|
/freebsd-10-stable/lib/libutil/ |
H A D | login_class.c | 29 #include <sys/cpuset.h> 338 if (cpuset(&setid) != 0) { 339 syslog(LOG_ERR, "cpuset(): %s", strerror(errno));
|
/freebsd-10-stable/gnu/usr.bin/gdb/kgdb/ |
H A D | kthr.c | 31 #include <sys/cpuset.h>
|
/freebsd-10-stable/sys/mips/mips/ |
H A D | mp_machdep.c | 32 #include <sys/cpuset.h>
|
/freebsd-10-stable/sys/mips/sibyte/ |
H A D | sb_scd.c | 35 #include <sys/cpuset.h>
|