Home
last modified time | relevance | path

Searched refs:n (Results 1 – 14 of 14) sorted by relevance

/nptl/
A Dtst-context1.c46 fct (long int n) in fct() argument
54 if (ctx[n][1].uctx.uc_link != &ctx[n][0].uctx) in fct()
77 if (n < 0 || n >= N) in fct()
83 if (on_stack < stacks[n] || on_stack >= stacks[n] + stack_size) in fct()
112 ctx[n][1].uctx.uc_stack.ss_sp = stacks[n]; in tf()
114 ctx[n][1].uctx.uc_link = &ctx[n][0].uctx; in tf()
119 if (swapcontext (&ctx[n][0].uctx, &ctx[n][1].uctx) != 0) in tf()
137 int n; in do_test() local
186 for (n = 0; n < N; ++n) in do_test()
187 if (pthread_create (&th[n], &at, tf, (void *) (long int) n) != 0) in do_test()
[all …]
A Dtst-rwlock8.c45 int n; in writer_thread() local
50 for (n = 0; n < WRITETRIES; ++n) in writer_thread()
81 int n; in reader_thread() local
86 for (n = 0; n < READTRIES; ++n) in reader_thread()
118 int n; in do_test() local
146 for (n = 0; n < NWRITERS; ++n) in do_test()
148 (void *) (long int) n) != 0) in do_test()
154 for (n = 0; n < NREADERS; ++n) in do_test()
156 (void *) (long int) n) != 0) in do_test()
163 for (n = 0; n < NWRITERS; ++n) in do_test()
[all …]
A Dtst-rwlock9.c68 int n; in writer_thread() local
70 for (n = 0; n < WRITETRIES; ++n) in writer_thread()
115 int n; in reader_thread() local
117 for (n = 0; n < READTRIES; ++n) in reader_thread()
156 int n; in do_test_clock() local
175 for (n = 0; n < NWRITERS; ++n) { in do_test_clock()
176 wargs[n].nr = n; in do_test_clock()
183 for (n = 0; n < NREADERS; ++n) { in do_test_clock()
184 rargs[n].nr = n; in do_test_clock()
191 for (n = 0; n < NWRITERS; ++n) in do_test_clock()
[all …]
A Dtst-rwlock19.c41 int n; in reader_thread() local
46 for (n = 0; n < READTRIES; ++n) in reader_thread()
79 int n; in do_test() local
88 for (n = 0; n < NREADERS; ++n) in do_test()
89 if (pthread_create (&thrd[n], NULL, reader_thread, in do_test()
90 (void *) (long int) n) != 0) in do_test()
97 for (n = 0; n < NREADERS; ++n) in do_test()
98 if (pthread_join (thrd[n], &res) != 0) in do_test()
A Dtst-exec4.c42 size_t n = 1; in tf() local
43 while (oldargv[n] != NULL) in tf()
44 ++n; in tf()
46 char **argv = (char **) alloca ((n + 1) * sizeof (char *)); in tf()
47 for (n = 0; oldargv[n + 1] != NULL; ++n) in tf()
48 argv[n] = oldargv[n + 1]; in tf()
49 argv[n++] = (char *) "--direct"; in tf()
50 argv[n] = NULL; in tf()
A Dtst-rwlock20.c86 int n; in do_test() local
100 for (n = 0; n < THREADS; ++n) in do_test()
101 thr[n] = xpthread_create (NULL, tf, (void *) (uintptr_t) n); in do_test()
110 for (n = 0; n < THREADS; ++n) in do_test()
111 xpthread_join (thr[n]); in do_test()
A Dtst-audit-threads-mod1.c62 int n; in CONCATX() local
68 n = atoi (num); in CONCATX()
69 assert (n >= previous); in CONCATX()
70 assert (n <= CALLNUM); in CONCATX()
71 previous = n; in CONCATX()
A Dpthread_getname.c52 ssize_t n = TEMP_FAILURE_RETRY (__read_nocancel (fd, buf, len)); in __pthread_getname_np() local
53 if (n < 0) in __pthread_getname_np()
57 if (buf[n - 1] == '\n') in __pthread_getname_np()
58 buf[n - 1] = '\0'; in __pthread_getname_np()
59 else if (n == len) in __pthread_getname_np()
62 buf[n] = '\0'; in __pthread_getname_np()
A Dpthread_setname.c54 ssize_t n = TEMP_FAILURE_RETRY (__write_nocancel (fd, name, name_len)); in __pthread_setname_np() local
55 if (n < 0) in __pthread_setname_np()
57 else if (n != name_len) in __pthread_setname_np()
A Dtst-rwlock-pwn.c66 for (int n = 0; n < LOOPS; n++) in do_test() local
A Dtst-setgetname.c59 ssize_t n = read (fd, (void *) buf, len); in get_self_comm() local
60 if (n < 0) in get_self_comm()
64 if (buf[n - 1] == '\n') in get_self_comm()
65 buf[n - 1] = '\0'; in get_self_comm()
66 else if (n == len) in get_self_comm()
69 buf[n] = '\0'; in get_self_comm()
A Dtst-tls3.c46 #define CB(n) \ argument
48 cb##n (void) \
50 if (th[n] != pthread_self ()) \
A Dtst-exec5.c120 ssize_t n; in do_test() local
122 while (TEMP_FAILURE_RETRY ((n = read (pipefd[0], buf, sizeof (buf)))) > 0) in do_test()
A Dperf.c282 unsigned int n; in start_threads() local
317 n = i; in start_threads()
333 while (i != n); in start_threads()
640 ssize_t n; in get_clockfreq() local
642 n = read (fd, buf, sizeof buf); in get_clockfreq()
643 if (__builtin_expect (n, 1) > 0) in get_clockfreq()
645 char *mhz = memmem (buf, n, "cpu MHz", 7); in get_clockfreq()
649 char *endp = buf + n; in get_clockfreq()

Completed in 13 milliseconds