/nptl/ |
A D | tst-attr2.c | 28 pthread_attr_t a; in do_test() local 30 if (pthread_attr_init (&a) != 0) in do_test() 38 if (pthread_attr_getdetachstate (&a, &s) != 0) in do_test() 87 if (pthread_attr_getguardsize (&a, &g) != 0) in do_test() 99 e = pthread_attr_setguardsize (&a, 0); in do_test() 105 if (pthread_attr_getguardsize (&a, &g) != 0) in do_test() 116 e = pthread_attr_setguardsize (&a, 1); in do_test() 245 if (pthread_attr_getscope (&a, &s) != 0) in do_test() 284 if (pthread_attr_getscope (&a, &s) != 0) in do_test() 296 e = pthread_attr_setstack (&a, buf, 1); in do_test() [all …]
|
A D | tst-mutexpp1.c | 7 static pthread_mutexattr_t a; variable 14 if (pthread_mutexattr_init (&a) != 0) in prepare() 20 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_PROTECT) != 0) in prepare() 26 if (pthread_mutexattr_setprioceiling (&a, 6) != 0) in prepare() 44 #define ATTR &a
|
A D | tst-mutexpp6.c | 7 static pthread_mutexattr_t a; variable 14 if (pthread_mutexattr_init (&a) != 0) in prepare() 20 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_PROTECT) != 0) in prepare() 26 if (pthread_mutexattr_setprioceiling (&a, 6) != 0) in prepare() 44 #define ATTR &a
|
A D | tst-mutexpi1.c | 6 static pthread_mutexattr_t a; variable 11 if (pthread_mutexattr_init (&a) != 0) in prepare() 17 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0) in prepare() 26 #define ATTR &a
|
A D | tst-mutexpi6.c | 6 pthread_mutexattr_t a; variable 12 attr = &a; in prepare() 13 if (pthread_mutexattr_init (&a) != 0) in prepare() 19 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0) in prepare()
|
A D | tst-attr3.c | 33 pthread_attr_t a, *ap, a2; in tf() local 88 else if ((void *) &a < stackaddr in tf() 186 err = pthread_attr_destroy (&a); in tf() 211 pthread_attr_t a; in do_test() local 214 int err = pthread_attr_init (&a); in do_test() 228 err = pthread_attr_destroy (&a); in do_test() 263 else if ((void *) &a < stackaddr in do_test() 331 err = pthread_attr_destroy (&a); in do_test() 358 err = pthread_attr_init (&a); in do_test() 373 err = pthread_create (&th, &a, tf, &a); in do_test() [all …]
|
A D | tst-tls5moda.c | 4 static __thread char a [32] __attribute__ ((aligned (64))); variable 5 TLS_REGISTER (a)
|
A D | tst-cancel17.c | 99 struct aiocb a, a2, *ap; in do_test() local 101 memset (&a, '\0', sizeof (a)); in do_test() 102 a.aio_fildes = fds[0]; in do_test() 103 a.aio_buf = mem; in do_test() 104 a.aio_nbytes = sizeof (mem); in do_test() 105 if (aio_read (&a) != 0) in do_test() 118 if (pthread_create (&th, NULL, tf, &a) != 0) in do_test() 167 if (pthread_create (&th, NULL, tf2, &a) != 0) in do_test() 216 ap = &a; in do_test() 217 if (aio_cancel (fds[0], &a) != AIO_CANCELED) in do_test() [all …]
|
A D | tst-exec5.c | 44 posix_spawn_file_actions_t a; in tf() local 45 if (posix_spawn_file_actions_init (&a) != 0) in tf() 51 if (posix_spawn_file_actions_adddup2 (&a, pipefd[1], STDOUT_FILENO) != 0) in tf() 57 if (posix_spawn_file_actions_addclose (&a, pipefd[0]) != 0) in tf() 65 if (posix_spawn (&pid, _PATH_BSHELL, &a, NULL, argv, NULL) != 0) in tf()
|
A D | tst-tls3.c | 134 pthread_attr_t a; in do_test() local 136 if (pthread_attr_init (&a) != 0) in do_test() 142 if (pthread_attr_setstacksize (&a, stack_size_in_mb * 1024 * 1024) != 0) in do_test() 153 if (pthread_create (&th[i], &a, tf, cbs[i]) != 0) in do_test() 206 if (pthread_attr_destroy (&a) != 0) in do_test()
|
A D | tst-audit-threads-mod1.c | 36 #define CONCATX(a, b) __CONCAT (a, b) argument
|
A D | tst-rwlock7.c | 100 pthread_rwlockattr_t a; in do_test_clock() local 102 if (pthread_rwlockattr_init (&a) != 0) in do_test_clock() 105 if (pthread_rwlockattr_setkind_np (&a, kind[cnt]) != 0) in do_test_clock() 108 if (pthread_rwlock_init (&r, &a) != 0) in do_test_clock() 111 if (pthread_rwlockattr_destroy (&a) != 0) in do_test_clock()
|
A D | TODO | 1 - we should probably extend pthread_mutexattr_t with a field to create a 6 - a new attribute for mutexes: number of times we spin before calling 10 If yes, for a short time release lock. If someone else locks no wakeup
|
A D | tst-rwlock8.c | 120 pthread_rwlockattr_t a; in do_test() local 122 if (pthread_rwlockattr_init (&a) != 0) in do_test() 128 if (pthread_rwlockattr_setkind_np (&a, KIND) != 0) in do_test() 134 if (pthread_rwlock_init (&lock, &a) != 0) in do_test()
|
A D | tst-rwlock6.c | 104 pthread_rwlockattr_t a; in do_test_clock() local 106 if (pthread_rwlockattr_init (&a) != 0) in do_test_clock() 109 if (pthread_rwlockattr_setkind_np (&a, kind[cnt]) != 0) in do_test_clock() 112 if (pthread_rwlock_init (&r, &a) != 0) in do_test_clock() 115 if (pthread_rwlockattr_destroy (&a) != 0) in do_test_clock()
|
A D | perf.c | 177 int a[4] = { i, rnum, i + rnum, rnum - i }; in work() local 184 a[0] += a[3] >> 12; in work() 185 a[1] += a[2] >> 20; in work() 186 a[2] += a[1] ^ 0x3423423; in work() 187 a[3] += a[0] - a[1]; in work() 191 sum += a[0] + a[1] + a[2] + a[3]; in work()
|
A D | tst-tls5.c | 33 tls_addr_cmp (const void *a, const void *b) in tls_addr_cmp() argument 35 if (((struct tls_obj *)a)->addr < ((struct tls_obj *)b)->addr) in tls_addr_cmp() 37 if (((struct tls_obj *)a)->addr > ((struct tls_obj *)b)->addr) in tls_addr_cmp()
|
A D | tst-signal3.c | 134 pthread_attr_t a; in do_test() local 136 if (pthread_attr_init (&a) != 0) in do_test() 142 if (pthread_attr_setstacksize (&a, 1 * 1024 * 1024) != 0) in do_test() 160 if (pthread_create (&th[i], &a, tf, (void *) (long int) i) != 0) in do_test() 167 if (pthread_attr_destroy (&a) != 0) in do_test()
|
A D | tst-rwlock9.c | 157 pthread_rwlockattr_t a; in do_test_clock() local 159 if (pthread_rwlockattr_init (&a) != 0) in do_test_clock() 162 if (pthread_rwlockattr_setkind_np (&a, KIND) != 0) in do_test_clock() 165 if (pthread_rwlock_init (&lock, &a) != 0) in do_test_clock()
|
A D | tst-stackguard1.c | 44 uintptr_t_cmp (const void *a, const void *b) in uintptr_t_cmp() argument 46 if (*(uintptr_t *) a < *(uintptr_t *) b) in uintptr_t_cmp() 48 if (*(uintptr_t *) a > *(uintptr_t *) b) in uintptr_t_cmp()
|
A D | tst-sched1.c | 27 tf (void *a) in tf() argument
|
A D | tst-audit-threads.h | 25 #define CONCAT(a, b) a ## b argument
|
A D | tst-cleanup4.c | 107 tf (void *a) in tf() argument 109 switch ((long) a) in tf()
|
A D | tst-rwlock-pwn.c | 40 run_loop (void *a) in run_loop() argument
|
A D | tst-tls6.sh | 35 for aligned in a e f; do
|