Symbol: futex
arch/um/include/shared/skas/stub-data.h
64
unsigned int futex;
arch/um/kernel/skas/mmu.c
135
stub_data->futex = FUTEX_IN_KERN;
arch/um/kernel/skas/mmu.c
137
os_futex_wake(&stub_data->futex);
arch/um/kernel/skas/stub.c
122
d->futex = FUTEX_IN_KERN;
arch/um/kernel/skas/stub.c
124
res = stub_syscall3(__NR_futex, (unsigned long)&d->futex,
arch/um/kernel/skas/stub.c
129
res = stub_syscall4(__NR_futex, (unsigned long)&d->futex,
arch/um/kernel/skas/stub.c
131
} while (res == -EINTR || d->futex == FUTEX_IN_KERN);
arch/um/os-Linux/skas/process.c
190
data->futex = FUTEX_IN_CHILD;
arch/um/os-Linux/skas/process.c
191
CATCH_EINTR(syscall(__NR_futex, &data->futex,
arch/um/os-Linux/skas/process.c
210
ret = syscall(__NR_futex, &data->futex,
arch/um/os-Linux/skas/process.c
218
} while (data->futex == FUTEX_IN_CHILD);
arch/um/os-Linux/skas/process.c
475
proc_data->futex = FUTEX_IN_CHILD;
include/linux/restart_block.h
38
} futex;
kernel/futex/syscalls.c
188
SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val,
kernel/futex/waitwake.c
726
restart->futex.uaddr = uaddr;
kernel/futex/waitwake.c
727
restart->futex.val = val;
kernel/futex/waitwake.c
728
restart->futex.time = *abs_time;
kernel/futex/waitwake.c
729
restart->futex.bitset = bitset;
kernel/futex/waitwake.c
730
restart->futex.flags = flags | FLAGS_HAS_TIMEOUT;
kernel/futex/waitwake.c
740
u32 __user *uaddr = restart->futex.uaddr;
kernel/futex/waitwake.c
743
if (restart->futex.flags & FLAGS_HAS_TIMEOUT)
kernel/futex/waitwake.c
744
tp = &restart->futex.time;
kernel/futex/waitwake.c
748
return (long)futex_wait(uaddr, restart->futex.flags,
kernel/futex/waitwake.c
749
restart->futex.val, tp, restart->futex.bitset);
kernel/sys_ni.c
79
COND_SYSCALL(futex);
tools/perf/bench/futex-hash.c
189
worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex));
tools/perf/bench/futex-hash.c
190
if (!worker[i].futex)
tools/perf/bench/futex-hash.c
239
worker[i].tid, &worker[i].futex[0], t);
tools/perf/bench/futex-hash.c
242
worker[i].tid, &worker[i].futex[0],
tools/perf/bench/futex-hash.c
243
&worker[i].futex[params.nfutexes-1], t);
tools/perf/bench/futex-hash.c
246
zfree(&worker[i].futex);
tools/perf/bench/futex-hash.c
46
u_int32_t *futex;
tools/perf/bench/futex-hash.c
95
ret = futex_wait(&w->futex[i], 1234, NULL, futex_flag);
tools/perf/bench/futex-lock-pi.c
100
ret = futex_lock_pi(w->futex, NULL, futex_flag);
tools/perf/bench/futex-lock-pi.c
105
w->tid, w->futex, ret);
tools/perf/bench/futex-lock-pi.c
113
ret = futex_unlock_pi(w->futex, futex_flag);
tools/perf/bench/futex-lock-pi.c
116
w->tid, w->futex, ret);
tools/perf/bench/futex-lock-pi.c
144
worker[i].futex = calloc(1, sizeof(u_int32_t));
tools/perf/bench/futex-lock-pi.c
145
if (!worker[i].futex)
tools/perf/bench/futex-lock-pi.c
148
worker[i].futex = &global_futex;
tools/perf/bench/futex-lock-pi.c
243
worker[i].tid, worker[i].futex, t);
tools/perf/bench/futex-lock-pi.c
246
zfree(&worker[i].futex);
tools/perf/bench/futex-lock-pi.c
29
u_int32_t *futex;
tools/perf/bench/futex-wake-parallel.c
143
if (futex_wait(&futex, 0, NULL, futex_flag) != EINTR)
tools/perf/bench/futex-wake-parallel.c
303
&futex, params.nwakes, nwakes);
tools/perf/bench/futex-wake-parallel.c
49
static u_int32_t futex = 0;
tools/perf/bench/futex-wake-parallel.c
89
waker->nwoken = futex_wake(&futex, nwakes, futex_flag);
tools/testing/selftests/futex/functional/futex_numa_mpol.c
151
futex_numa->futex = 0;
tools/testing/selftests/futex/functional/futex_numa_mpol.c
195
futex_numa->futex = 0;
tools/testing/selftests/futex/functional/futex_wait.c
124
futex = shm;
tools/testing/selftests/futex/functional/futex_wait.c
126
ksft_print_dbg_msg("Calling shared (file backed) futex_wait on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
132
ksft_print_dbg_msg("Calling shared (file backed) futex_wake on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
20
void *futex;
tools/testing/selftests/futex/functional/futex_wait.c
33
if (futex_wait(futex, 0, &to, flags))
tools/testing/selftests/futex/functional/futex_wait.c
46
futex = &f_private;
tools/testing/selftests/futex/functional/futex_wait.c
49
ksft_print_dbg_msg("Calling private futex_wait on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
55
ksft_print_dbg_msg("Calling private futex_wake on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
56
res = futex_wake(futex, 1, FUTEX_PRIVATE_FLAG);
tools/testing/selftests/futex/functional/futex_wait.c
83
futex = shared_data;
tools/testing/selftests/futex/functional/futex_wait.c
85
ksft_print_dbg_msg("Calling shared (page anon) futex_wait on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
91
ksft_print_dbg_msg("Calling shared (page anon) futex_wake on futex: %p\n", futex);
tools/testing/selftests/futex/functional/futex_wait.c
92
res = futex_wake(futex, 1, 0);
tools/testing/selftests/futex/functional/robust_list.c
100
head->futex_offset = (size_t) offsetof(struct lock_struct, futex) -
tools/testing/selftests/futex/functional/robust_list.c
113
_Atomic(unsigned int) *futex = &lock->futex;
tools/testing/selftests/futex/functional/robust_list.c
124
if (atomic_compare_exchange_strong(futex, &zero, tid)) {
tools/testing/selftests/futex/functional/robust_list.c
150
tid = atomic_load(futex);
tools/testing/selftests/futex/functional/robust_list.c
153
atomic_store(futex, tid);
tools/testing/selftests/futex/functional/robust_list.c
155
ret = futex_wait((futex_t *) futex, tid, &to, 0);
tools/testing/selftests/futex/functional/robust_list.c
209
struct lock_struct lock = { .futex = 0 };
tools/testing/selftests/futex/functional/robust_list.c
210
_Atomic(unsigned int) *futex = &lock.futex;
tools/testing/selftests/futex/functional/robust_list.c
236
ASSERT_TRUE(*futex & FUTEX_OWNER_DIED);
tools/testing/selftests/futex/functional/robust_list.c
393
struct lock_struct lock = { .futex = 0 };
tools/testing/selftests/futex/functional/robust_list.c
394
_Atomic(unsigned int) *futex = &lock.futex;
tools/testing/selftests/futex/functional/robust_list.c
412
ASSERT_TRUE(*futex & FUTEX_OWNER_DIED);
tools/testing/selftests/futex/functional/robust_list.c
435
locks[i].futex = 0;
tools/testing/selftests/futex/functional/robust_list.c
462
if (!(lock->futex & FUTEX_OWNER_DIED)) {
tools/testing/selftests/futex/functional/robust_list.c
62
_Atomic(unsigned int) futex;
tools/testing/selftests/futex/include/futex2test.h
55
futex_t futex;
tools/testing/selftests/futex/include/futextest.h
102
return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags);
tools/testing/selftests/futex/include/futextest.h
112
return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags);
tools/testing/selftests/futex/include/futextest.h
123
return futex(uaddr, FUTEX_WAIT_BITSET, val, timeout, NULL, bitset,
tools/testing/selftests/futex/include/futextest.h
134
return futex(uaddr, FUTEX_WAKE_BITSET, nr_wake, NULL, NULL, bitset,
tools/testing/selftests/futex/include/futextest.h
146
return futex(uaddr, FUTEX_LOCK_PI, detect, timeout, NULL, 0, opflags);
tools/testing/selftests/futex/include/futextest.h
155
return futex(uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0, opflags);
tools/testing/selftests/futex/include/futextest.h
165
return futex(uaddr, FUTEX_WAKE_OP, nr_wake, nr_wake2, uaddr2, wake_op,
tools/testing/selftests/futex/include/futextest.h
181
return futex(uaddr, FUTEX_REQUEUE, nr_wake, nr_requeue, uaddr2, 0,
tools/testing/selftests/futex/include/futextest.h
194
return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2,
tools/testing/selftests/futex/include/futextest.h
210
return futex(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0,
tools/testing/selftests/futex/include/futextest.h
225
return futex(uaddr, FUTEX_CMP_REQUEUE_PI, nr_wake, nr_requeue, uaddr2,
tools/testing/selftests/powerpc/benchmarks/futex_bench.c
29
futex(&addr, FUTEX_WAKE, 1, NULL, NULL, 0);