Home
last modified time | relevance | path

Searched refs:thrd_ndx (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c297 int thrd_ndx; /* index into the array of threads. */ in main() local
384 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx++) { in main()
385 args_table[thrd_ndx] = malloc(sizeof(thread_sched_t)); in main()
386 if (!args_table[thrd_ndx]) { in main()
390 chld_args = args_table[thrd_ndx]; in main()
392 if (pthread_create(&thid[thrd_ndx], NULL, thread_func, in main()
395 thrd_ndx); in main()
400 fprintf(stdout, "Created thread[%d]\n", thrd_ndx); in main()
411 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx++) { in main()
412 status_table[thrd_ndx] = malloc(sizeof(thread_sched_t)); in main()
[all …]
/external/ltp/testcases/kernel/mem/mtest07/
Dshm_test.c275 int thrd_ndx; /* index into the array of thread ids */ in main() local
316 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx += 2) { in main()
325 thrd_ndx, map_address, map_size); in main()
330 (&thrdid[thrd_ndx], NULL, shmat_rd_wr, chld_args)) { in main()
338 (&thrdid[thrd_ndx + 1], NULL, shmat_rd_wr, chld_args)) { in main()
346 for (thrd_ndx = 0; thrd_ndx < num_thrd; thrd_ndx++) { in main()
347 if (pthread_join(thrdid[thrd_ndx], &th_status) != 0) { in main()
355 (long)thrdid[thrd_ndx]); in main()
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c282 int thrd_ndx = 0; /* index to the number of threads created */ in map_and_thread() local
358 th_args[0] = thrd_ndx; in map_and_thread()
371 if (pthread_create(&pthread_ids[thrd_ndx++], NULL, exec_func, in map_and_thread()
387 } while (thrd_ndx < num_thread); in map_and_thread()
396 for (thrd_ndx = 0; thrd_ndx < NUMTHREAD; thrd_ndx++) { in map_and_thread()
397 if (pthread_join(pthread_ids[thrd_ndx], &th_status)) { in map_and_thread()
408 (long)pthread_ids[thrd_ndx]); in map_and_thread()
/external/ltp/testcases/kernel/mem/mtest06/
Dshmat1.c393 int thrd_ndx; /* index into the array of threads. */ in main() local
499 for (thrd_ndx = 0; thrd_ndx < 3; thrd_ndx++) { in main()
500 if (pthread_join(thid[thrd_ndx], &status)) { in main()
507 thid[thrd_ndx], (long)status); in main()