/freebsd-11-stable/usr.bin/cpuset/ |
H A D | Makefile | 1 # $FreeBSD: stable/11/usr.bin/cpuset/Makefile 336040 2018-07-06 19:10:11Z jamie $ 3 PROG= cpuset
|
H A D | cpuset.c | 33 __FBSDID("$FreeBSD: stable/11/usr.bin/cpuset/cpuset.c 336040 2018-07-06 19:10:11Z jamie $"); 39 #include <sys/cpuset.h> 168 static const char *whichnames[] = { NULL, "tid", "pid", "cpuset", "irq", "jail", 170 static const char *levelnames[] = { NULL, " root", " cpuset", "" }; 299 if (cpuset(&setid)) 328 * Create a new cpuset and move the specified process 331 if (cpuset(&setid) < 0) 359 "usage: cpuset [-l cpu-list] [-s setid] cmd ...\n"); 361 " cpuset [ [all...] |
/freebsd-11-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-11-stable/sys/sys/ |
H A D | cpuset.h | 29 * $FreeBSD: stable/11/sys/sys/cpuset.h 333338 2018-05-07 21:42:22Z shurd $ 90 * Reserved cpuset identifiers. 98 LIST_HEAD(setlist, cpuset); 105 * c - Locked internally by a cpuset lock. 107 * The bitmask is only modified while holding the cpuset lock. It may be 111 struct cpuset { struct 116 struct cpuset *cs_parent; /* (s) Pointer to our parent. */ 117 LIST_ENTRY(cpuset) cs_link; /* (c) All identified sets. */ 118 LIST_ENTRY(cpuset) cs_siblings; /* (c) Sibling set link. */ 130 struct cpuset *cpuset_thread [all...] |
H A D | smp.h | 19 #include <sys/cpuset.h> 55 cpuset_t cpuset; member in struct:topo_node
|
/freebsd-11-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-11-stable/sys/kern/ |
H A D | kern_cpuset.c | 51 #include <sys/cpuset.h> 114 static struct cpuset *cpuset_zero, *cpuset_default; 124 * Acquire a reference to a cpuset, all pointers must be tracked with refs. 126 struct cpuset * 127 cpuset_ref(struct cpuset *set) 138 static struct cpuset * 139 cpuset_refroot(struct cpuset *set) 155 static struct cpuset * 156 cpuset_refbase(struct cpuset *set) 170 cpuset_rel(struct cpuset *se [all...] |
H A D | kern_numa.c | 45 #include <sys/cpuset.h> 67 struct cpuset *set; 104 * XXX if cpuset_which is called with WHICH_CPUSET and NULL cpuset, 133 struct cpuset *set; 145 * XXX if cpuset_which is called with WHICH_CPUSET and NULL cpuset,
|
H A D | subr_smp.c | 1050 KASSERT(CPU_EMPTY(&node->cpuset) && node->cpu_count == 0, 1051 ("topo_set_pu_id: cpuset already not empty")); 1053 CPU_SET(id, &node->cpuset); 1058 KASSERT(!CPU_ISSET(id, &node->cpuset), 1060 CPU_SET(id, &node->cpuset); 1095 if (!all && CPU_EMPTY(&pkg_node->cpuset)) { 1107 if (!all && CPU_EMPTY(&core_node->cpuset)) { 1120 (all || !CPU_EMPTY(&pu_node->cpuset))) 1136 (all || !CPU_EMPTY(&core_node->cpuset)))
|
/freebsd-11-stable/sys/dev/acpica/ |
H A D | acpi_pcibvar.h | 40 size_t setsize, cpuset_t *cpuset);
|
H A D | acpi_pcib.c | 271 size_t setsize, cpuset_t *cpuset) 274 return (bus_get_cpus(pcib, op, setsize, cpuset)); 270 acpi_pcib_get_cpus(device_t pcib, device_t dev, enum cpu_sets op, size_t setsize, cpuset_t *cpuset) argument
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_attr.c | 122 if ((*attr)->cpuset != NULL) 123 free((*attr)->cpuset); 150 if (dst->cpuset == NULL) { 151 dst->cpuset = calloc(1, kern_size); 161 dst->cpusetsize, dst->cpuset); 602 if (attr->cpuset != NULL) { 603 free(attr->cpuset); 604 attr->cpuset = NULL; 621 if (attr->cpuset == NULL) { 622 attr->cpuset [all...] |
H A D | thr_affinity.c | 33 #include <sys/cpuset.h>
|
H A D | thr_create.c | 89 cpusetp = new_thread->attr.cpuset; 91 new_thread->attr.cpuset = NULL;
|
/freebsd-11-stable/include/ |
H A D | pthread_np.h | 35 #include <sys/cpuset.h>
|
/freebsd-11-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-11-stable/usr.bin/procstat/ |
H A D | procstat_cs.c | 31 #include <sys/cpuset.h>
|
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | tuklib_cpucores.c | 28 # include <sys/cpuset.h>
|
/freebsd-11-stable/share/man/man9/ |
H A D | Makefile | 66 cpuset.9 \ 697 MLINKS+=cpuset.9 CPUSET_T_INITIALIZER.9 \ 698 cpuset.9 CPUSET_FSET.9 \ 699 cpuset.9 CPU_CLR.9 \ 700 cpuset.9 CPU_COPY.9 \ 701 cpuset.9 CPU_ISSET.9 \ 702 cpuset.9 CPU_SET.9 \ 703 cpuset.9 CPU_ZERO.9 \ 704 cpuset.9 CPU_FILL.9 \ 705 cpuset [all...] |
/freebsd-11-stable/sys/arm64/cavium/ |
H A D | thunder_pcie_fdt.c | 43 #include <sys/cpuset.h>
|
H A D | thunder_pcie_pem_fdt.c | 43 #include <sys/cpuset.h>
|
/freebsd-11-stable/tools/tools/tscdrift/ |
H A D | tscdrift.c | 33 #include <sys/cpuset.h> 104 * this as our global set. This means you can use cpuset to
|
/freebsd-11-stable/usr.bin/numactl/ |
H A D | numactl.c | 31 #include <sys/cpuset.h>
|
/freebsd-11-stable/sys/i386/ibcs2/ |
H A D | ibcs2_xenix.h | 13 #include <sys/cpuset.h>
|