Home
last modified time | relevance | path

Searched refs:NSCENAR (Results 1 – 25 of 38) sorted by relevance

12

/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
Dstress.c145 pthread_t threads[NSCENAR * SCALABILITY_FACTOR * FACTOR]; in main()
146 int rets[NSCENAR * SCALABILITY_FACTOR * FACTOR]; in main()
171 for (sc = 0; sc < NSCENAR; sc++) { in main()
176 rets[i * NSCENAR + sc] = in main()
177 pthread_create(&threads[i * NSCENAR + sc], in main()
179 &threads[i * NSCENAR + sc]); in main()
182 if (rets[i * NSCENAR + sc] != 0) { in main()
184 [i * NSCENAR + sc], in main()
190 if (rets[i * NSCENAR + sc] == 0) { in main()
199 if (rets[i * NSCENAR + sc] == 0) { in main()
[all …]
Dthreads_scenarii.c138 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) macro
169 for (i = 0; i < NSCENAR; i++) { in scenar_init()
414 output("All %i thread attribute objects were initialized\n\n", NSCENAR); in scenar_init()
423 for (i = 0; i < NSCENAR; i++) { in scenar_fini()
457 for (sc = 0; sc < NSCENAR; sc++) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_destroy/
D2-2.c96 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
104 pthread_mutexattr_t ma[NSCENAR + 1]; in main()
105 pthread_mutexattr_t *pma[NSCENAR + 2]; in main()
115 for (i = 0; i < NSCENAR; i++) { in main()
147 for (i = 0; i < NSCENAR + 1; i++) in main()
158 for (i = 0; i < NSCENAR + 2; i++) { in main()
159 for (j = 0; j < NSCENAR + 2; j++) { in main()
165 if (i < NSCENAR) in main()
167 if (i == NSCENAR) in main()
169 if (i == NSCENAR + 1) in main()
[all …]
D5-2.c97 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
105 pthread_mutexattr_t ma[NSCENAR + 1]; in main()
106 pthread_mutexattr_t *pma[NSCENAR + 2]; in main()
116 for (i = 0; i < NSCENAR; i++) { in main()
148 for (i = 0; i < NSCENAR + 1; i++) in main()
159 for (i = 0; i < NSCENAR + 2; i++) { in main()
164 if (i < NSCENAR) in main()
166 if (i == NSCENAR) in main()
168 if (i == NSCENAR + 1) in main()
201 for (i = 0; i < NSCENAR + 1; i++) { in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
Ds-c1.c105 long _data[NSCENAR]; /* As we store µsec values, a long type should be amply enough. */
176 printf("# COLUMNS %d #threads", NSCENAR + 1); in main()
177 for (sc = 0; sc < NSCENAR; sc++) in main()
182 for (sc = 0; sc < NSCENAR; sc++) { in main()
311 tmp < NSCENAR; in main()
403 for (i = 0; i < NSCENAR; i++) in main()
411 for (i = 0; i < NSCENAR; i++) in main()
450 long Y[NSCENAR]; /* the Y values -- copied from function argument */
451 long _x[NSCENAR]; /* Value X - Xavg */
452 long _y[NSCENAR]; /* Value Y - Yavg */
[all …]
Dthreads_scenarii.c138 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) macro
169 for (i = 0; i < NSCENAR; i++) { in scenar_init()
414 output("All %i thread attribute objects were initialized\n\n", NSCENAR); in scenar_init()
423 for (i = 0; i < NSCENAR; i++) { in scenar_fini()
457 for (sc = 0; sc < NSCENAR; sc++) { in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
Dstress.c110 pthread_t running[NSCENAR];
171 pthread_t creation[NSCENAR]; /* Thread ID returned in pthread_create */ in main()
172 int status[NSCENAR]; /* Status of thread creation */ in main()
173 int ids[NSCENAR]; in main()
177 for (sc = 0; sc < NSCENAR; sc++) in main()
205 for (sc = 0; sc < NSCENAR; sc++) { in main()
238 for (sc = 0; sc < NSCENAR; sc++) { in main()
265 for (sc = 0; sc < NSCENAR; sc++) { in main()
278 for (i = sc + 1; i < NSCENAR; i++) { in main()
308 for (sc = 0; sc < NSCENAR; sc++) { in main()
Dthreads_scenarii.c205 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) macro
236 for (i = 0; i < NSCENAR; i++) { in scenar_init()
481 output("All %i thread attribute objects were initialized\n\n", NSCENAR); in scenar_init()
490 for (i = 0; i < NSCENAR; i++) { in scenar_fini()
524 for (sc = 0; sc < NSCENAR; sc++) { in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
Ds-c.c169 #define NSCENAR (sizeof(test_scenar) / sizeof(test_scenar[0])) macro
176 long _data[NSCENAR]; /* As we store µsec values, a long type should be amply enough. */
325 for (s = 0; s < NSCENAR; s++) { in do_threads_test()
600 output("# COLUMNS %d #threads", NSCENAR + 1); in main()
601 for (nth = 0; nth < NSCENAR; nth++) in main()
674 long Y[NSCENAR]; /* the Y values -- copied from function argument */
676 long _y[NSCENAR]; /* Value Y - Yavg */
678 double LnY[NSCENAR]; /* Natural logarithm of Y values */
680 double _lny[NSCENAR]; /* Value LnY - LnYavg */
689 double Xavg, Yavg[NSCENAR]; in parse_measure()
[all …]
Dstress2.c171 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
189 } cells[NSCENAR * SCALABILITY_FACTOR];
423 pthread_t mngrs[NSCENAR * SCALABILITY_FACTOR]; in main()
452 for (i = 0; i < NSCENAR; i++) { in main()
534 cells[i + j * NSCENAR].cid = cid; in main()
538 pthread_cond_init(&(cells[i + j * NSCENAR].cnd), in main()
546 pthread_mutex_init(&(cells[i + j * NSCENAR].mtx), in main()
554 pthread_barrier_init(&(cells[i + j * NSCENAR].bar), in main()
600 for (i = 0; i < NSCENAR * SCALABILITY_FACTOR; i++) { in main()
615 NSCENAR * SCALABILITY_FACTOR); in main()
[all …]
Dstress1.c195 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
197 #define NTOT (NSCENAR * SCALABILITY_FACTOR * NCHILDREN)
490 for (i = 0; i < NSCENAR; i++) { in main()
585 #define CD (td->cd[i+(j*NSCENAR)]) in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/
D4-3.c103 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
183 pthread_mutex_t mtx[NSCENAR + 2]; in test()
184 pthread_mutexattr_t ma[NSCENAR + 1]; in test()
197 for (i = 0; i < NSCENAR; i++) { in test()
248 ret = pthread_mutex_trylock(&mtx[count_ope % (NSCENAR + 2)]); in test()
256 ret = pthread_mutex_trylock(&mtx[count_ope % (NSCENAR + 2)]); in test()
263 [count_ope % (NSCENAR + 2)]); in test()
273 ret = pthread_mutex_unlock(&mtx[count_ope % (NSCENAR + 2)]); in test()
280 for (i = 0; i <= NSCENAR; i++) { in test()
D4-2.c125 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
259 for (sc = 0; sc < NSCENAR; sc++) { in main()
D1-2.c127 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
258 for (sc = 0; sc < NSCENAR; sc++) { in main()
D2-1.c104 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
224 for (sc = 0; sc < NSCENAR; sc++) { in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
Dstress2.c180 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
198 } cells[NSCENAR * SCALABILITY_FACTOR];
432 pthread_t mngrs[NSCENAR * SCALABILITY_FACTOR]; in main()
461 for (i = 0; i < NSCENAR; i++) { in main()
543 cells[i + j * NSCENAR].cid = cid; in main()
547 pthread_cond_init(&(cells[i + j * NSCENAR].cnd), in main()
555 pthread_mutex_init(&(cells[i + j * NSCENAR].mtx), in main()
563 pthread_barrier_init(&(cells[i + j * NSCENAR].bar), in main()
609 for (i = 0; i < NSCENAR * SCALABILITY_FACTOR; i++) { in main()
624 NSCENAR * SCALABILITY_FACTOR); in main()
[all …]
Dstress.c180 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
198 } cells[NSCENAR * SCALABILITY_FACTOR];
432 pthread_t mngrs[NSCENAR * SCALABILITY_FACTOR]; in main()
461 for (i = 0; i < NSCENAR; i++) { in main()
543 cells[i + j * NSCENAR].cid = cid; in main()
547 pthread_cond_init(&(cells[i + j * NSCENAR].cnd), in main()
555 pthread_mutex_init(&(cells[i + j * NSCENAR].mtx), in main()
563 pthread_barrier_init(&(cells[i + j * NSCENAR].bar), in main()
609 for (i = 0; i < NSCENAR * SCALABILITY_FACTOR; i++) { in main()
624 NSCENAR * SCALABILITY_FACTOR); in main()
[all …]
Dstress1.c205 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
207 #define NTOT (NSCENAR * SCALABILITY_FACTOR * NCHILDREN)
484 for (i = 0; i < NSCENAR; i++) { in main()
579 #define CD (td->cd[i+(j*NSCENAR)]) in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/
Dstress.c156 #define NSCENAR (sizeof(scenarii)/sizeof(scenarii[0])) macro
217 pthread_mutex_t mtx[NSCENAR + 2]; in main()
249 for (i = 0; i < NSCENAR; i++) { in main()
389 i %= NSCENAR + 2; in main()
398 for (i = 0; i < NSCENAR + 2; i++) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/
Dthreads_scenarii.c188 #define NSCENAR (sizeof(scenarii) / sizeof(scenarii[0])) macro
221 for (i = 0; i < NSCENAR; i++) { in scenar_init()
457 output("All %i thread attribute objects were initialized\n\n", NSCENAR); in scenar_init()
470 for (i = 0; i < NSCENAR; i++) { in scenar_fini()
499 for (sc = 0; sc < NSCENAR; sc++) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D14-1.c126 for (sc = 0; sc < NSCENAR; sc++) { in test()
208 count_ope += NSCENAR; in main_loop()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
D4-3.c161 for (sc = 0; sc < NSCENAR; sc++) { in test()
291 count_ope += NSCENAR; in main_loop()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/
D1-2.c114 for (i = 0; i < NSCENAR; i++) { in main()
D4-1.c136 for (i = 0; i < NSCENAR; i++) { in main()
D2-2.c132 for (i = 0; i < NSCENAR; i++) { in main()

12