Home
last modified time | relevance | path

Searched refs:nprocs (Results 1 – 11 of 11) sorted by relevance

/third_party/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress09.c99 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 …]
Dmmapstress01.c117 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 …]
Dmmapstress10.c128 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/
Dmsgstress03.c54 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 …]
Dmsgstress01.c57 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()
Dmsgstress02.c58 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()
Dmsgstress04.c61 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/
Dcpuset_cpu_hog.c52 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/
Dget_nprocs_conf.c26 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()
Dget_nprocs.c26 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/
Dnetbsd.c138 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()