Home
last modified time | relevance | path

Searched refs:FUTEX_PRIVATE_FLAG (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/include/uapi/linux/
Dfutex.h26 #define FUTEX_PRIVATE_FLAG 128 macro
28 #define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
30 #define FUTEX_WAIT_PRIVATE (FUTEX_WAIT | FUTEX_PRIVATE_FLAG)
31 #define FUTEX_WAKE_PRIVATE (FUTEX_WAKE | FUTEX_PRIVATE_FLAG)
32 #define FUTEX_REQUEUE_PRIVATE (FUTEX_REQUEUE | FUTEX_PRIVATE_FLAG)
33 #define FUTEX_CMP_REQUEUE_PRIVATE (FUTEX_CMP_REQUEUE | FUTEX_PRIVATE_FLAG)
34 #define FUTEX_WAKE_OP_PRIVATE (FUTEX_WAKE_OP | FUTEX_PRIVATE_FLAG)
35 #define FUTEX_LOCK_PI_PRIVATE (FUTEX_LOCK_PI | FUTEX_PRIVATE_FLAG)
36 #define FUTEX_LOCK_PI2_PRIVATE (FUTEX_LOCK_PI2 | FUTEX_PRIVATE_FLAG)
37 #define FUTEX_UNLOCK_PI_PRIVATE (FUTEX_UNLOCK_PI | FUTEX_PRIVATE_FLAG)
[all …]
/linux-6.1.9/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c124 FUTEX_PRIVATE_FLAG); in waiterfn()
136 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in waiterfn()
138 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in waiterfn()
161 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn()
166 FUTEX_PRIVATE_FLAG); in broadcast_wakerfn()
180 futex_wake(&wake_complete, 1, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn()
183 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn()
212 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in signal_wakerfn()
219 FUTEX_PRIVATE_FLAG); in signal_wakerfn()
226 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in signal_wakerfn()
[all …]
Dfutex_requeue_pi_signal_restart.c103 FUTEX_PRIVATE_FLAG); in waiterfn()
109 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in waiterfn()
167 futex_lock_pi(&f2, 0, 0, FUTEX_PRIVATE_FLAG); in main()
183 FUTEX_PRIVATE_FLAG); in main()
213 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in main()
Dfutex_requeue_pi_mismatched_ops.c46 child_ret = futex_wait(&f1, f1, NULL, FUTEX_PRIVATE_FLAG); in blocking_child()
96 ret = futex_cmp_requeue_pi(&f1, f1, &f2, 1, 0, FUTEX_PRIVATE_FLAG); in main()
104 ret = futex_wake(&f1, 1, FUTEX_PRIVATE_FLAG); in main()
Dfutex_waitv.c91 waitv[i].flags = FUTEX_32 | FUTEX_PRIVATE_FLAG; in main()
102 res = futex_wake(u64_to_ptr(waitv[NR_FUTEXES - 1].uaddr), 1, FUTEX_PRIVATE_FLAG); in main()
149 waitv[0].flags = FUTEX_PRIVATE_FLAG; in main()
167 waitv[0].flags = FUTEX_PRIVATE_FLAG | FUTEX_32; in main()
Dfutex_wait.c52 unsigned int flags = FUTEX_PRIVATE_FLAG; in main()
87 res = futex_wake(futex, 1, FUTEX_PRIVATE_FLAG); in main()
Dfutex_wait_wouldblock.c76 res = futex_wait(&f1, f1+1, &to, FUTEX_PRIVATE_FLAG); in main()
/linux-6.1.9/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py14 FUTEX_PRIVATE_FLAG = 128 variable
16 FUTEX_CMD_MASK = ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
/linux-6.1.9/tools/testing/selftests/futex/include/
Dfutextest.h43 FUTEX_PRIVATE_FLAG)
47 FUTEX_PRIVATE_FLAG)
/linux-6.1.9/kernel/futex/
Dsyscalls.c91 if (!(op & FUTEX_PRIVATE_FLAG)) in do_futex()
173 if (unlikely(should_fail_futex(!(op & FUTEX_PRIVATE_FLAG)))) in SYSCALL_DEFINE6()
187 #define FUTEXV_WAITER_MASK (FUTEX_32 | FUTEX_PRIVATE_FLAG)
Dwaitwake.c422 if ((vs[i].w.flags & FUTEX_PRIVATE_FLAG) && retry) in futex_wait_multiple_setup()
426 !(vs[i].w.flags & FUTEX_PRIVATE_FLAG), in futex_wait_multiple_setup()
/linux-6.1.9/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c286 flags |= FUTEX_PRIVATE_FLAG; in mutex_lock()
307 flags |= FUTEX_PRIVATE_FLAG; in mutex_unlock()
/linux-6.1.9/tools/perf/trace/beauty/
Dfutex_op.c54 if (op & FUTEX_PRIVATE_FLAG) in syscall_arg__scnprintf_futex_op()
/linux-6.1.9/tools/lib/traceevent/plugins/
Dplugin_futex.c102 if (args.op & FUTEX_PRIVATE_FLAG) in futex_handler()
/linux-6.1.9/tools/perf/bench/
Dfutex-wake.c172 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_wake()
Dfutex-hash.c163 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_hash()
Dfutex-lock-pi.c195 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_lock_pi()
Dfutex-requeue.c197 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_requeue()
Dfutex-wake-parallel.c287 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_wake_parallel()
/linux-6.1.9/Documentation/userspace-api/
Dfutex2.rst77 private futexes, it's necessary to specify ``FUTEX_PRIVATE_FLAG`` in the futex