Searched refs:ncpu (Results 1 - 8 of 8) sorted by relevance
/darwin-on-arm/xnu/osfmk/kperf/ |
H A D | kperf.c | 56 unsigned ncpu = chudxnu_cpu_number(); local 59 if( ncpu >= intr_samplec ) 62 return &intr_samplev[ncpu];
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | cachetocache.c | 59 static unsigned int ncpu = 1024; variable 101 if (pset_info(PS_MYID, NULL, &ncpu, cpus) < 0) { 126 cpu = cpus[(pthread_self() - 1) % ncpu],
|
/darwin-on-arm/xnu/libsyscall/xcodescripts/ |
H A D | compile-syscalls.pl | 79 my $jobs = `sysctl -n hw.ncpu` + 2;
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | mcache.c | 75 (sizeof (void *) + MCACHE_SIZE(ncpu) + CPU_CACHE_SIZE) 101 static int ncpu; variable 180 ncpu = ml_get_max_cpus(); 343 if ((cp->mc_slab_zone = zinit(chunksize, 64 * 1024 * ncpu, 378 for (c = 0; c < ncpu; c++) { 1110 for (cpu = 0; cpu < ncpu; cpu++) { 1129 for (cpu = 0; cpu < ncpu; cpu++) {
|
H A D | kern_mib.c | 338 SYSCTL_PROC (_hw, HW_NCPU, ncpu, CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_KERN | CTLFLAG_LOCKED, 0, HW_NCPU, sysctl_hw_generic, "I", "");
|
H A D | uipc_mbuf.c | 318 static int ncpu; /* number of CPUs */ variable 908 for (m = 0; m < ncpu; m++) { 961 for (m = 0; m < ncpu; m++) { 1540 ncpu = ml_get_max_cpus(); 1541 MALLOC(buf, void *, MBUF_MTYPES_SIZE(ncpu) + CPU_CACHE_SIZE, 1546 bzero(mbuf_mtypes, MBUF_MTYPES_SIZE(ncpu));
|
/darwin-on-arm/xnu/tools/tests/affinity/ |
H A D | sets.c | 290 int ncpu; local
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace.c | 19643 int i, ncpu = NCPU; 19705 cpu_core = (cpu_core_t *)kmem_zalloc( ncpu * sizeof(cpu_core_t), KM_SLEEP ); 19706 for (i = 0; i < ncpu; ++i) { 19710 cpu_list = (dtrace_cpu_t *)kmem_zalloc( ncpu * sizeof(dtrace_cpu_t), KM_SLEEP ); 19711 for (i = 0; i < ncpu; ++i) { 19713 cpu_list[i].cpu_next = &(cpu_list[(i+1) % ncpu]); 19718 for (i = 0; i < ncpu; ++i)
|
Completed in 123 milliseconds