/linux-6.6.21/tools/perf/bench/ |
D | futex.h | 50 volatile u_int32_t *uaddr2, int val3, int opflags) in futex_syscall() argument 52 return syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3); in futex_syscall() 57 volatile u_int32_t *uaddr2, int val3, int opflags) in futex_syscall_nr_requeue() argument 59 return syscall(SYS_futex, uaddr, op | opflags, val, nr_requeue, uaddr2, val3); in futex_syscall_nr_requeue() 106 futex_cmp_requeue(u_int32_t *uaddr, u_int32_t val, u_int32_t *uaddr2, int nr_wake, in futex_cmp_requeue() argument 109 return futex_syscall_nr_requeue(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue() 122 futex_wait_requeue_pi(u_int32_t *uaddr, u_int32_t val, u_int32_t *uaddr2, in futex_wait_requeue_pi() argument 125 return futex_syscall(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0, in futex_wait_requeue_pi() 139 futex_cmp_requeue_pi(u_int32_t *uaddr, u_int32_t val, u_int32_t *uaddr2, in futex_cmp_requeue_pi() argument 142 return futex_syscall_nr_requeue(uaddr, FUTEX_CMP_REQUEUE_PI, 1, nr_requeue, uaddr2, in futex_cmp_requeue_pi()
|
/linux-6.6.21/tools/testing/selftests/futex/include/ |
D | futextest.h | 70 #define futex(uaddr, op, val, timeout, uaddr2, val3, opflags) \ argument 71 syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3) 140 futex_wake_op(futex_t *uaddr, futex_t *uaddr2, int nr_wake, int nr_wake2, in futex_wake_op() argument 143 return futex(uaddr, FUTEX_WAKE_OP, nr_wake, nr_wake2, uaddr2, wake_op, in futex_wake_op() 156 futex_requeue(futex_t *uaddr, futex_t *uaddr2, int nr_wake, int nr_requeue, in futex_requeue() argument 159 return futex(uaddr, FUTEX_REQUEUE, nr_wake, nr_requeue, uaddr2, 0, in futex_requeue() 169 futex_cmp_requeue(futex_t *uaddr, futex_t val, futex_t *uaddr2, int nr_wake, in futex_cmp_requeue() argument 172 return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue() 185 futex_wait_requeue_pi(futex_t *uaddr, futex_t val, futex_t *uaddr2, in futex_wait_requeue_pi() argument 188 return futex(uaddr, FUTEX_WAIT_REQUEUE_PI, val, timeout, uaddr2, 0, in futex_wait_requeue_pi() [all …]
|
/linux-6.6.21/kernel/futex/ |
D | syscalls.c | 86 u32 __user *uaddr2, u32 val2, u32 val3) in do_futex() argument 113 return futex_requeue(uaddr, flags, uaddr2, val, val2, NULL, 0); in do_futex() 115 return futex_requeue(uaddr, flags, uaddr2, val, val2, &val3, 0); in do_futex() 117 return futex_wake_op(uaddr, flags, uaddr2, val, val2, val3); in do_futex() 130 uaddr2); in do_futex() 132 return futex_requeue(uaddr, flags, uaddr2, val, val2, &val3, 1); in do_futex() 166 u32 __user *, uaddr2, u32, val3) in SYSCALL_DEFINE6() argument 183 return do_futex(uaddr, op, val, tp, uaddr2, (unsigned long)utime, val3); in SYSCALL_DEFINE6() 360 const struct old_timespec32 __user *, utime, u32 __user *, uaddr2, in SYSCALL_DEFINE6() argument 376 return do_futex(uaddr, op, val, tp, uaddr2, (unsigned long)utime, val3); in SYSCALL_DEFINE6()
|
D | requeue.c | 364 int futex_requeue(u32 __user *uaddr1, unsigned int flags, u32 __user *uaddr2, in futex_requeue() argument 391 if (uaddr1 == uaddr2) in futex_requeue() 430 ret = get_futex_key(uaddr2, flags & FLAGS_SHARED, &key2, in futex_requeue() 484 ret = futex_proxy_trylock_atomic(uaddr2, hb1, hb2, &key1, in futex_requeue() 543 ret = fault_in_user_writeable(uaddr2); in futex_requeue() 764 u32 __user *uaddr2) in futex_wait_requeue_pi() argument 777 if (uaddr == uaddr2) in futex_wait_requeue_pi() 792 ret = get_futex_key(uaddr2, flags & FLAGS_SHARED, &key2, FUTEX_WRITE); in futex_wait_requeue_pi() 833 ret = fixup_pi_owner(uaddr2, &q, true); in futex_wait_requeue_pi() 863 res = fixup_pi_owner(uaddr2, &q, !ret); in futex_wait_requeue_pi()
|
D | futex.h | 261 *uaddr2); 264 u32 __user *uaddr2, int nr_wake, int nr_requeue, 288 u32 __user *uaddr2, int nr_wake, int nr_wake2, int op);
|
D | waitwake.c | 238 int futex_wake_op(u32 __user *uaddr1, unsigned int flags, u32 __user *uaddr2, in futex_wake_op() argument 251 ret = get_futex_key(uaddr2, flags & FLAGS_SHARED, &key2, FUTEX_WRITE); in futex_wake_op() 260 op_ret = futex_atomic_op_inuser(op, uaddr2); in futex_wake_op() 275 ret = fault_in_user_writeable(uaddr2); in futex_wake_op()
|
/linux-6.6.21/include/linux/ |
D | futex.h | 79 u32 __user *uaddr2, u32 val2, u32 val3); 86 ktime_t *timeout, u32 __user *uaddr2, in do_futex() argument
|
D | restart_block.h | 36 u32 __user *uaddr2; member
|
D | syscalls.h | 540 u32 __user *uaddr2, u32 val3); 543 u32 __user *uaddr2, u32 val3);
|
/linux-6.6.21/tools/perf/scripts/python/ |
D | futex-contention.py | 30 nr, uaddr, op, val, utime, uaddr2, val3): argument
|