Searched defs:futex (Results 1 - 17 of 17) sorted by relevance

/external/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_common.h21 * 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 Dfutex_wait_bitset.h25 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 Dfutex_wait03.c20 * 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 Dfutex_wait05.c20 * 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 Dfutex_wake01.c36 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 Dfutex_wait01.c24 * 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 Dfutex_wake02.c34 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 Dfutextest.h24 * 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 Dfutex_bench.c12 #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 Dticket-lock-linux.c61 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 Dfutextest.h11 * 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 Dpitest-1.c63 volatile unsigned futex; member in struct:thread_param
H A Dpitest-2.c64 volatile unsigned futex; member in struct:thread_param
H A Dpitest-3.c65 volatile unsigned futex; member in struct:thread_param
H A Dpitest-4.c66 volatile unsigned futex; member in struct:thread_param
H A Dpitest-5.c64 volatile unsigned futex; member in struct:thread_param
H A Dpitest-6.c62 volatile unsigned futex; member in struct:thread_param

Completed in 288 milliseconds