Home
last modified time | relevance | path

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

/external/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);
142 unsigned nprocs = 0; local
178 nprocs = atoi(optarg);
224 if (nprocs > 255) {
226 nprocs);
293 || (pidarray = malloc(nprocs * sizeof(pid_t))) == NULL) {
298 for (i = 0; i < nprocs; i++)
303 if (++data == nprocs)
334 for (procno = 0; procno < nprocs; procno++) {
342 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);
337 || (pidarray = malloc(nprocs * sizeof(pid_t))) == NULL) {
342 for (i = 0; i < nprocs; i++)
347 if (++data == nprocs)
352 if (++data == nprocs)
385 for (procno = 0; procno < nprocs; procno++) {
[all …]
/external/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()
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl08.c57 static int MSGMNI, nprocs, nreps; variable
101 nprocs = MSGMNI; in main()
115 nprocs = MSGMNI; in main()
117 nprocs = atoi(argv[2]); in main()
140 for (i = 0; i < nprocs; i++) { in main()
166 for (i = 0; i < nprocs; i++) { in main()
206 if (count != nprocs) { in main()
210 count, nprocs); in main()
Dmsgctl10.c54 static int MSGMNI, nprocs, nreps; variable
98 nprocs = MSGMNI; in main()
112 nprocs = MSGMNI; in main()
114 nprocs = atoi(argv[2]); in main()
137 for (i = 0; i < nprocs; i++) { in main()
163 for (i = 0; i < nprocs; i++) { in main()
202 if (count != nprocs) { in main()
206 count, nprocs); in main()
Dmsgctl09.c58 static int nprocs, nreps, nkids, MSGMNI; variable
106 nprocs = MSGMNI; in main()
121 nprocs = MSGMNI; in main()
123 nprocs = atoi(argv[2]); in main()
151 for (i = 0; i < nprocs; i++) { in main()
176 for (i = 0; i < nprocs; i++) { in main()
216 if (count != nprocs) { in main()
220 count, nprocs); in main()
398 for (i = 0; i < nprocs; i++) { in term()
Dmsgctl11.c61 static int nprocs, nreps, nkids, MSGMNI; variable
180 nprocs = MSGMNI; in main()
184 nprocs = maxnprocs; in main()
188 nprocs = MSGMNI % maxnprocs; in main()
206 for (i = 0; i < nprocs; i++) { in dotest_iteration()
245 if (count != nprocs) in dotest_iteration()
248 count, nprocs); in dotest_iteration()
419 for (i = 0; i < nprocs; i++) { in term()
/external/ltp/testcases/kernel/ipc/ipc_stress/
Dsemaphore_test_02.c119 int nprocs = DEFAULT_NUM_CHILDREN; variable
153 if (nprocs > 0) { in main()
154 printf("\n\tParent: spawning %d child processes\n", nprocs); in main()
157 for (proc = 1; proc < nprocs; proc++) { in main()
187 for (proc = 1; proc < nprocs; proc++) { in main()
193 if (nprocs > 0) in main()
430 nprocs = atoi(optarg); in parse_args()
442 if (nprocs >= MAX_CHILDREN) { in parse_args()
Dshmem_test_04.c142 int nprocs; variable
187 printf("\tNumber of procs = %d\n", nprocs); in main()
219 for (proc = 1; proc < nprocs; proc++) { in main()
334 for (i = 1; i < nprocs; i++) { in cleanup()
603 nprocs = atoi(optarg); in parse_args()
619 if (nprocs > MAXPROCS) in parse_args()
620 nprocs = MAXPROCS; in parse_args()
622 nprocs = 1; in parse_args()
Dsemaphore_test_03.c135 int nprocs = DEFAULT_NUM_CHILDREN; variable
174 if (nprocs > 0) { in main()
175 printf("\n\tParent: spawning %d child processes\n", nprocs); in main()
178 for (proc = 1; proc < nprocs; proc++) { in main()
209 for (proc = 1; proc < nprocs; proc++) { in main()
216 if (nprocs > 0) in main()
943 nprocs = atoi(optarg); in parse_args()
955 if (nprocs >= MAX_CHILDREN) { in parse_args()
/external/autotest/client/tests/dbench/
Ddbench.py26 def run_once(self, dir='.', nprocs=None, seconds=600, args=''): argument
27 if not nprocs:
28 nprocs = self.job.cpu_count()
30 cmd = '%s %s %s -D %s -c %s -t %d' % (self.dbench, nprocs, args,
Ddbench_startup.patch45 for (i=0;i<nprocs;i++) {
57 if (synccount != nprocs) {
58 printf("FAILED TO START %d CLIENTS (started %d)\n", nprocs, synccount);
63 printf("%d clients started\n", nprocs);
66 + for (i=0;i<nprocs;i++)
/external/autotest/client/tests/tbench/
Dtbench.py22 def run_once(self, nprocs = None, args = ''): argument
25 if not nprocs:
26 nprocs = self.job.cpu_count()
27 args = args + ' %s' % nprocs
/external/ltp/tools/pounder21/
Drun.c308 int i, stat, res, nprocs; in wait_for_pids() local
315 nprocs = 0; in wait_for_pids()
317 nprocs++; in wait_for_pids()
322 for (i = 0; i < nprocs;) { in wait_for_pids()
371 int i, stat, res, nprocs; in wait_for_daemons() local
378 nprocs = 0; in wait_for_daemons()
380 nprocs++; in wait_for_daemons()
385 for (i = 0; i < nprocs;) { in wait_for_daemons()
/external/strace/
Dstrace.c152 static unsigned int nprocs, tcbtabsize; variable
649 else if (nprocs > 1 && !outfname) in printleader()
735 if (nprocs == tcbtabsize) in alloctcb()
752 nprocs++; in alloctcb()
755 tcp->pid, nprocs); in alloctcb()
811 nprocs--; in droptcb()
814 tcp->pid, nprocs); in droptcb()
1744 if (!argv[0] && !nprocs) { in init()
1917 if (nprocs != 0 || daemonized_tracer) in init()
1925 print_pid_pfx = (outfname && followfork < 2 && (followfork == 1 || nprocs > 1)); in init()
[all …]
DChangeLog-CVS3877 (internal_clone, internal_fork): Use it instead of checking nprocs.
DChangeLog25665 If -o|logger is in use, exit trace loop if nprocs == 0.
25667 Exit trace loop if got ECHILD, not if nprocs == 0.
29667 (main): Use "nprocs != 0" condition instead of "pflag_seen != 0".
32010 where it was formerly called. It also makes nprocs, tcbtabsize and
32014 * defs.h: Remove declarations of nprocs, tcbtabsize and
32020 nprocs and tcbtabsize static.
/external/autotest/client/tests/perfmon/
Dperfmon.py21 def run_once(self, dir = None, nprocs = None, args = ''): argument
/external/autotest/client/tests/ipv6connect/
Dipv6connect.py22 def run_once(self, dir=None, nprocs=None, args=''): argument