Home
last modified time | relevance | path

Searched refs:nprocs (Results 1 – 16 of 16) 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);
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 …]
/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/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()
126 for (i = 0; i < nprocs; i++) { in main()
152 for (i = 0; i < nprocs; i++) { in main()
186 if (count != nprocs) { in main()
190 count, nprocs); in main()
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()
/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/strace/
Dstrace.c168 static unsigned int nprocs; variable
656 else if (nprocs > 1 && !outfname) in printleader()
761 if (nprocs == tcbtabsize) in alloctcb()
772 nprocs++; in alloctcb()
774 tcp->pid, nprocs); in alloctcb()
836 nprocs--; in droptcb()
837 debug_msg("dropped tcb for pid %d, %d remain", tcp->pid, nprocs); in droptcb()
1751 if (argc < 0 || (!nprocs && !argc)) { in init()
1921 if (nprocs != 0 || daemonized_tracer) in init()
1929 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.
DChangeLog44855 If -o|logger is in use, exit trace loop if nprocs == 0.
44857 Exit trace loop if got ECHILD, not if nprocs == 0.
48857 (main): Use "nprocs != 0" condition instead of "pflag_seen != 0".
51200 where it was formerly called. It also makes nprocs, tcbtabsize and
51204 * defs.h: Remove declarations of nprocs, tcbtabsize and
51210 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