/external/ltp/testcases/kernel/syscalls/futex/ |
H A D | futex_common.h | 21 * Setups futex in shared memory needed for synchronization between multiple 25 static futex_t *futex; variable 40 futex = SAFE_MMAP(NULL, NULL, sizeof(*futex), PROT_READ | PROT_WRITE, 45 *futex = FUTEX_INITIALIZER;
|
H A D | futex_wait_bitset.h | 25 futex_t futex = FUTEX_INITIALIZER; local 35 TEST(futex_wait_bitset(&futex, futex, &to, bitset, flags)); 46 tst_resm(TCONF, "In this kernel, futex() does not support "
|
H A D | futex_wait03.c | 20 * Block on a futex and wait for wakeup. 34 static futex_t futex = FUTEX_INITIALIZER; variable 42 ret = futex_wake(&futex, 1, FUTEX_PRIVATE_FLAG); 59 res = futex_wait(&futex, futex, NULL, FUTEX_PRIVATE_FLAG);
|
H A D | futex_wait05.c | 20 * 1. Block on a futex and wait for timeout. 21 * 2. Check that the futex waited for expected time. 37 futex_t futex = FUTEX_INITIALIZER; local 40 TEST(futex_wait(&futex, futex, &to, fflags));
|
H A D | futex_wake01.c | 36 static futex_t futex = FUTEX_INITIALIZER; variable 40 {&futex, 0, 0}, 41 {&futex, 0, FUTEX_PRIVATE_FLAG}, 42 {&futex, 1, 0}, 43 {&futex, 1, FUTEX_PRIVATE_FLAG}, 44 {&futex, INT_MAX, 0}, 45 {&futex, INT_MAX, FUTEX_PRIVATE_FLAG},
|
H A D | futex_wait01.c | 24 * 1. Block on a futex and wait for timeout. 25 * 2. Test if FUTEX_WAIT op returns -EWOULDBLOCK if the futex value differs 43 static futex_t futex = FUTEX_INITIALIZER; variable 47 {&futex, FUTEX_INITIALIZER, 0, ETIMEDOUT}, 48 {&futex, FUTEX_INITIALIZER+1, 0, EWOULDBLOCK}, 49 {&futex, FUTEX_INITIALIZER, FUTEX_PRIVATE_FLAG, ETIMEDOUT}, 50 {&futex, FUTEX_INITIALIZER+1, FUTEX_PRIVATE_FLAG, EWOULDBLOCK},
|
H A D | futex_wake02.c | 34 static futex_t futex = FUTEX_INITIALIZER; variable 63 futex_wait(&futex, futex, NULL, FUTEX_PRIVATE_FLAG); 88 res = futex_wake(&futex, i, FUTEX_PRIVATE_FLAG); 111 res = futex_wake(&futex, 1, FUTEX_PRIVATE_FLAG); 131 * Which is because the userspace part of pthread_join() sleeps in a futex on a
|
H A D | futextest.h | 24 * Glibc independent futex library for testing kernel functionality. 40 #include <linux/futex.h> 41 #include "lapi/futex.h" 86 * futex() - SYS_futex syscall wrapper 87 * @uaddr: address of first futex 88 * @op: futex op code 92 * @uaddr2: address of second futex for some ops\ 96 * futex() is used by all the following futex op wrappers. It can also be 105 #define futex(uadd macro [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
H A D | futex_bench.c | 12 #include <linux/futex.h> 18 #define futex(A, B, C, D, E, F) syscall(__NR_futex, A, B, C, D, E, F) macro 29 futex(&addr, FUTEX_WAKE, 1, NULL, NULL, 0);
|
/external/valgrind/coregrind/m_scheduler/ |
H A D | ticket-lock-linux.c | 61 volatile unsigned futex[TL_FUTEX_COUNT]; member in struct:sched_lock 82 // The futex syscall requires that a futex takes four bytes. 83 vg_assert(sizeof(p->futex[0]) == 4); 88 INNER_REQUEST(ANNOTATE_BENIGN_RACE_SIZED(&p->futex, sizeof(p->futex), "")); 106 * ticket value. The futex used to wait depends on the ticket value in order 117 volatile unsigned *futex; local 121 futex = &p->futex[ticke 161 volatile unsigned *futex; local [all...] |
/external/linux-kselftest/tools/testing/selftests/futex/include/ |
H A D | futextest.h | 11 * Glibc independent futex library for testing kernel functionality. 27 #include <linux/futex.h> 55 * futex() - SYS_futex syscall wrapper 56 * @uaddr: address of first futex 57 * @op: futex op code 61 * @uaddr2: address of second futex for some ops\ 65 * futex() is used by all the following futex op wrappers. It can also be 74 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ macro 84 return futex(uadd [all...] |
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/ |
H A D | pitest-1.c | 63 volatile unsigned futex; member in struct:thread_param
|
H A D | pitest-2.c | 64 volatile unsigned futex; member in struct:thread_param
|
H A D | pitest-3.c | 65 volatile unsigned futex; member in struct:thread_param
|
H A D | pitest-4.c | 66 volatile unsigned futex; member in struct:thread_param
|
H A D | pitest-5.c | 64 volatile unsigned futex; member in struct:thread_param
|
H A D | pitest-6.c | 62 volatile unsigned futex; member in struct:thread_param
|