Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 26) sorted by relevance

12

/nptl/
A Dtst-signal3.c48 int i; in handler() local
49 for (i = 0; i < N; ++i) in handler()
77 int i; in tf() local
78 for (i = 0; i <= idx; ++i) in tf()
112 for (i = 0; i < N; ++i) in do_test()
148 for (i = 0; i < N; ++i) in do_test()
177 for (i = 0; i < ROUNDS; ++i) in do_test()
191 for (i = 0; i < N; ++i) in do_test()
212 for (i = 0; i < N; ++i) in do_test()
235 for (i = 0; i < N; ++i) in do_test()
[all …]
A Dtst-clock2.c103 int i; in do_test() local
105 for (i = 0; i < N; ++i) in do_test()
124 if (pthread_getcpuclockid (th[i], &cl[i + 1]) != 0) in do_test()
138 for (i = 0; i < N + 1; ++i) in do_test()
139 if (clock_gettime (cl[i], &t[i]) != 0) in do_test()
145 for (i = 0; i < N; ++i) in do_test()
149 diff.tv_sec = t[i].tv_sec - t[i + 1].tv_sec; in do_test()
150 diff.tv_nsec = t[i].tv_nsec - t[i + 1].tv_nsec; in do_test()
171 for (i = 0; i < N + 1; ++i) in do_test()
174 printf ("clock_settime(%d) round %d failed\n", cl[i], i); in do_test()
[all …]
A Dtst-stack4mod.c25 int i; in function() local
26 for (i = 0; i < sizeof (var) / sizeof (int); i++) in function()
27 var[i] = i; in function()
A Dtst-tls5.h17 size_t i; \
18 for (i = 0; tls_registry[i].name; ++i); \
19 tls_registry[i].name = #x; \
20 tls_registry[i].addr = (uintptr_t) &x; \
21 tls_registry[i].size = sizeof (x); \
22 tls_registry[i].align = __alignof__ (x); \
A Dtst-tls5.c45 size_t cnt, i; in do_test() local
57 for (i = 0; i < cnt; ++i) in do_test()
60 tls_registry[i].name ? "&" : "", in do_test()
62 (void *) tls_registry[i].addr, in do_test()
63 tls_registry[i].size, tls_registry[i].align); in do_test()
64 if (tls_registry[i].addr & (tls_registry[i].align - 1)) in do_test()
69 if (i > 0 in do_test()
70 && (tls_registry[i - 1].addr + tls_registry[i - 1].size in do_test()
71 > tls_registry[i].addr)) in do_test()
77 if (tls_registry[i].name) in do_test()
[all …]
A Dtst-stack4.c79 int i, ret; in dso_process() local
81 for (i = 0; i < DSO_EXEC_THREADS; i++) in dso_process()
84 ret = pthread_create (&thread[i], NULL, dso_invoke, (void *) fun_vec); in dso_process()
94 for (i = 0; i < DSO_EXEC_THREADS; i++) in dso_process()
96 ret = pthread_join (thread[i], NULL); in dso_process()
120 int i,j; in do_test() local
129 for (i = 0; i < DSO_OPEN_THREADS; i++) in do_test()
131 ret = pthread_create (&thread[i], NULL, dso_process, in do_test()
132 (void *) (uintptr_t) i); in do_test()
143 for (i = 0; i < DSO_OPEN_THREADS; i++) in do_test()
[all …]
A Dtst-audit-threads.c70 int i; in do_test() local
81 for (i = 0; i < num_threads; i++) in do_test()
82 threads[i] = xpthread_create(NULL, thread_main, NULL); in do_test()
84 for (i = 0; i < num_threads; i++) in do_test()
85 xpthread_join(threads[i]); in do_test()
A Dcond-perf.c71 int i; in main() local
72 for (i = 0; __builtin_expect (i < nthreads, 1); ++i) in main()
73 if (__glibc_unlikely ((err = pthread_create (&th[i], NULL, cons, (void *) (long) i)) != 0)) in main()
76 for (i = 0; __builtin_expect (i < nrounds, 1); ++i) in main()
89 if (i + 1 >= nrounds) in main()
98 for (i = 0; i < nthreads; ++i) in main()
99 if ((err = pthread_join (th[i], NULL)) != 0) in main()
A Dtst-pthread-defaultattr-free.c46 for (int i = 0; i < cpu_count; ++i) in do_test() local
47 TEST_COMPARE (!!CPU_ISSET (i, set), i == 1 || i == 3); in do_test()
68 for (int i = 0; i < cpu_count; ++i) in do_test() local
69 TEST_COMPARE (!!CPU_ISSET (i, set), i == 1 || i == 3); in do_test()
A Dtst-stackguard1.c81 int i; in do_test() local
84 for (i = 0; i < 4; ++i) in do_test()
85 if (pthread_create (&th[i], NULL, tf, NULL)) in do_test()
90 for (i = 0; i < 4; ++i) in do_test()
91 if (pthread_join (th[i], &ret)) in do_test()
112 int i; in do_test() local
113 for (i = 0; i < N; ++i) in do_test()
147 if (TEMP_FAILURE_RETRY (read (fds[0], &child_stack_chk_guards[i], in do_test()
193 for (i = 0; i < N; ++i) in do_test()
195 if (child_stack_chk_guards[i] != child_stack_chk_guards[i+1]) in do_test()
[all …]
A Dtst-rwlock-pwn.c70 for (int i = 0; i < NTHREADS; i++) in do_test() local
71 tids[i] = xpthread_create (NULL, run_loop, NULL); in do_test()
77 for (int i = 0; i < NTHREADS; i++) in do_test() local
78 xpthread_join (tids[i]); in do_test()
A Dpthread_barrier_wait.c100 unsigned int i; in ___pthread_barrier_wait() local
110 i = atomic_fetch_add_acq_rel (&bar->in, 1) + 1; in ___pthread_barrier_wait()
119 if (i > max_in_before_reset) in ___pthread_barrier_wait()
124 while (i > max_in_before_reset) in ___pthread_barrier_wait()
126 futex_wait_simple (&bar->in, i, bar->shared); in ___pthread_barrier_wait()
130 i = atomic_load_relaxed (&bar->in); in ___pthread_barrier_wait()
147 while (cr + count <= i) in ___pthread_barrier_wait()
151 unsigned int newcr = i - i % count; in ___pthread_barrier_wait()
173 if (i <= cr) in ___pthread_barrier_wait()
181 while (i > cr) in ___pthread_barrier_wait()
[all …]
A Dtst-pthread-timedlock-lockloop.c98 for (int i = 0; i < NUM_THREADS; i++) in run_test_set() local
99 workers[i] = xpthread_create (NULL, worker, NULL); in run_test_set()
100 for (int i = 0; i < NUM_THREADS; i++) in run_test_set() local
101 xpthread_join (workers[i]); in run_test_set()
108 for (int i = 0; i < RETEST_TIMES * 1000; i++) in run_test_set() local
A Dtst-eintr1.c54 int i; in do_test() local
55 for (i = 0; i < 10; ++i) in do_test()
A Dtst-tls3.c151 int i; in do_test() local
152 for (i = 0; i < N; ++i) in do_test()
153 if (pthread_create (&th[i], &a, tf, cbs[i]) != 0) in do_test()
173 for (i = 0; i < TOTAL_SIGS; ++i) in do_test()
198 for (i = 0; i < N; ++i) in do_test()
199 if (pthread_join (th[i], NULL) != 0) in do_test()
A Dtst-initializers1.c51 size_t i; in do_test() local
52 for (i = 0; i < sizeof (rwl_normal); i++) in do_test()
53 if (((char *) &rwl_normal)[i] != '\0') in do_test()
A Dtst-dlsym1.c10 int i; in start_routine() local
12 for (i = 0; i < 10000; ++i) in start_routine()
13 addrs[i % 1024] = dlsym (NULL, "does_not_exist"); in start_routine()
A Dperf.c159 unsigned long int i; in work() local
162 for (i = 0; i < rounds; ++i) in work()
177 int a[4] = { i, rnum, i + rnum, rnum - i }; in work()
283 unsigned int i = 0; in start_threads() local
314 i = 0; in start_threads()
317 n = i; in start_threads()
331 i = 0; in start_threads()
333 while (i != n); in start_threads()
461 for (i = 0; i < toplevel; ++i) in main()
470 err = pthread_create (&ths[i], &attr, start_threads, &si[i]); in main()
[all …]
A Dtst-cleanup4.c154 long i; in do_test() local
155 for (i = 0; i < 4; ++i) in do_test()
159 printf ("test %ld\n", i); in do_test()
162 if (pthread_create (&th, NULL, tf, (void *) i) != 0) in do_test()
190 if (global != expect[i]) in do_test()
192 printf ("global = %d, expected %d\n", global, expect[i]); in do_test()
A Dtst-pthread-attr-affinity.c42 for (int i = 0; i < 10; i++) in do_test() local
A Dtst-stack3.c65 for (int i = 0; i < 16; ++i) in do_test() local
A Dtst-context1.c142 for (int i = 0; i < N; i++) in do_test() local
143 stacks[i] = xmalloc (stack_size); in do_test()
206 for (int i = 0; i < N; i++) in do_test() local
207 free (stacks[i]); in do_test()
A Dtpp.c107 int i; in libc_hidden_def() local
108 for (i = previous_prio - 1; i >= fifo_min_prio; --i) in libc_hidden_def()
109 if (tpp->priomap[i - fifo_min_prio]) in libc_hidden_def()
111 newpriomax = i; in libc_hidden_def()
A DTODO-kernel19 - the scheduler should be thread group-aware, i.e., it has to give time to
A Dtst-default-attr.c99 for (int i = 0; i < 2; i++) in run_threads() local

Completed in 18 milliseconds

12