/third_party/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress09.c | 99 void child_mapper(unsigned procno, unsigned nprocs); 117 unsigned nprocs = 0; in main() local 148 nprocs = atoi(optarg); in main() 172 if (nprocs > 255) { in main() 174 nprocs); in main() 201 || (pidarray = malloc(nprocs * sizeof(pid_t))) == NULL) { in main() 206 for (i = 0; i < nprocs; i++) in main() 215 if (++data == nprocs) in main() 230 for (procno = 0; procno < nprocs; procno++) { in main() 238 child_mapper(procno, nprocs); in main() [all …]
|
D | mmapstress01.c | 117 void child_mapper(char *file, unsigned procno, unsigned nprocs); 141 unsigned nprocs = 0; local 178 nprocs = atoi(optarg); 224 if (nprocs > 255) { 226 nprocs); 292 || (pidarray = malloc(nprocs * sizeof(pid_t))) == NULL) { 297 for (i = 0; i < nprocs; i++) 302 if (++data == nprocs) 333 for (procno = 0; procno < nprocs; procno++) { 341 child_mapper(filename, procno, nprocs); [all …]
|
D | mmapstress10.c | 128 void child_mapper(char *file, unsigned procno, unsigned nprocs); 168 unsigned nprocs = 0; local 206 nprocs = atoi(optarg); 267 if (nprocs > 255) { 269 nprocs); 335 || (pidarray = malloc(nprocs * sizeof(pid_t))) == NULL) { 340 for (i = 0; i < nprocs; i++) 345 if (++data == nprocs) 350 if (++data == nprocs) 383 for (procno = 0; procno < nprocs; procno++) { [all …]
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgstress/ |
D | msgstress03.c | 54 static int MSGMNI, nprocs, nreps; variable 90 nprocs = MSGMNI; in main() 103 nprocs = atoi(opt_nprocs); in main() 104 if (nprocs > MSGMNI) { in main() 108 nprocs = MSGMNI; in main() 113 if (nprocs >= free_pids) { in main() 116 "setting to %d", nprocs, free_pids, free_pids); in main() 117 nprocs = free_pids; in main() 134 for (i = 0; i < nprocs; i++) { in main() 160 for (i = 0; i < nprocs; i++) { in main() [all …]
|
D | msgstress01.c | 57 static int MSGMNI, nprocs, nreps; variable 93 nprocs = MSGMNI; in main() 106 nprocs = atoi(opt_nprocs); in main() 107 if (nprocs > MSGMNI) { in main() 111 nprocs = MSGMNI; in main() 129 for (i = 0; i < nprocs; i++) { in main() 155 for (i = 0; i < nprocs; i++) { in main() 189 if (count != nprocs) { in main() 193 count, nprocs); in main()
|
D | msgstress02.c | 58 static int nprocs, nreps, nkids, MSGMNI; variable 96 nprocs = MSGMNI; in main() 110 nprocs = atoi(opt_nprocs); in main() 111 if (nprocs > MSGMNI) { in main() 115 nprocs = MSGMNI; in main() 140 for (i = 0; i < nprocs; i++) { in main() 165 for (i = 0; i < nprocs; i++) { in main() 199 if (count != nprocs) { in main() 203 count, nprocs); in main() 334 for (i = 0; i < nprocs; i++) { in term()
|
D | msgstress04.c | 61 static int nprocs, nreps, nkids, MSGMNI; variable 174 nprocs = MSGMNI; in main() 178 nprocs = maxnprocs; in main() 182 nprocs = MSGMNI % maxnprocs; in main() 200 for (i = 0; i < nprocs; i++) { in dotest_iteration() 232 if (count != nprocs) in dotest_iteration() 235 count, nprocs); in dotest_iteration() 360 for (i = 0; i < nprocs; i++) { in term()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_cpu_hog.c | 52 static int nprocs; variable 136 nprocs = atoi(optarg); in checkopt() 148 if (nprocs == 0) in checkopt() 149 nprocs = 2 * nr_cpus; in checkopt() 269 childpids = malloc((nprocs) * sizeof(pid_t)); in main() 275 memset(childpids, 0, (nprocs) * sizeof(pid_t)); in main() 279 for (; i < nprocs; i++) { in main() 303 for (i = 0; i < nprocs; i++) { in main() 308 for (i = 0; i < nprocs; i++) { in main() 313 for (i = 0; i < nprocs; i++) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/conf/ |
D | get_nprocs_conf.c | 26 int nprocs = get_nprocs(); in get_nprocs_conf_0100() local 28 if (nprocs_conf < nprocs) { in get_nprocs_conf_0100() 48 int nprocs = get_nprocs(); in get_nprocs_conf_0200() local 50 if (nprocs_conf < nprocs) { in get_nprocs_conf_0200()
|
D | get_nprocs.c | 26 int nprocs = get_nprocs(); in get_nprocs_0100() local 27 if (nprocs <= 0) { in get_nprocs_0100() 30 if (sysconf(_SC_NPROCESSORS_ONLN) != nprocs) { in get_nprocs_0100()
|
/third_party/libuv/src/unix/ |
D | netbsd.c | 138 int nprocs; in uv_resident_set_memory() local 149 kinfo = kvm_getproc2(kd, KERN_PROC_PID, pid, max_size, &nprocs); in uv_resident_set_memory()
|