Lines Matching refs:uaddr2
59 int *uaddr2, unsigned long val3, int rc, const char *func, int line) in futex_error() argument
66 # define CHECK_FUTEX_GENERIC(uaddr, op, val, timeout, uaddr2, val3, check, \ argument
71 (uaddr2), (val3)); \
79 (unsigned long) (timeout), (int *) (uaddr2), \
83 # define CHECK_FUTEX_ENOSYS(uaddr, op, val, timeout, uaddr2, val3, check) \ argument
84 CHECK_FUTEX_GENERIC(uaddr, op, val, timeout, uaddr2, val3, check, 1)
86 # define CHECK_FUTEX(uaddr, op, val, timeout, uaddr2, val3, check) \ argument
87 CHECK_FUTEX_GENERIC(uaddr, op, val, timeout, uaddr2, val3, check, 0)
176 TAIL_ALLOC_OBJECT_CONST_PTR(int, uaddr2); in main()
182 uaddr2[0] = 0xbadf00d; in main()
199 CHECK_FUTEX(NULL, FUTEX_WAIT, VAL, tmout, uaddr2, VAL3, in main()
206 CHECK_FUTEX(uaddr + 1, FUTEX_WAIT, VAL, tmout, uaddr2, VAL3, in main()
213 CHECK_FUTEX(uaddr, FUTEX_WAIT, VAL, tmout + 1, uaddr2, VAL3, in main()
222 CHECK_FUTEX(uaddr, FUTEX_WAIT, VAL, tmout, uaddr2, VAL3, in main()
231 CHECK_FUTEX(uaddr, FUTEX_WAIT, VAL, tmout, uaddr2, VAL3, in main()
241 CHECK_FUTEX(uaddr, FUTEX_WAIT, VAL, tmout, uaddr2 + 1, VAL3, in main()
249 uaddr2 + 1, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
260 VAL, tmout, uaddr2, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
268 VAL, tmout, uaddr2, 0, (rc == -1) && (errno == EAGAIN)); in main()
286 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_WAIT_BITSET, VAL, tmout, uaddr2 + 1, in main()
294 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_WAIT_BITSET, VAL, tmout, uaddr2 + 1, in main()
303 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_WAIT_BITSET, VAL, tmout, uaddr2 + 1, 0, in main()
311 tmout, uaddr2 + 1, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
321 tmout, uaddr2 + 1, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
330 tmout, uaddr2 + 1, 0, (rc == -1) && (errno == EINVAL)); in main()
337 FUTEX_WAIT_BITSET, VAL, tmout, uaddr2 + 1, VAL3, in main()
442 CHECK_FUTEX(uaddr, FUTEX_REQUEUE, VAL, VAL2, uaddr2, VAL3, in main()
445 uaddr, VAL_PR, VAL2_PR, uaddr2, sprintrc(rc)); in main()
447 CHECK_FUTEX(uaddr, FUTEX_REQUEUE, VALP, VAL2P, uaddr2, VAL3, in main()
450 uaddr, VALP_PR, VAL2P_PR, uaddr2, sprintrc(rc)); in main()
454 uaddr2, VAL3, (rc == 0) || ((rc == -1) && (errno == EINVAL))); in main()
456 uaddr, VAL_PR, VAL2_PR, uaddr2, sprintrc(rc)); in main()
459 VAL2P, uaddr2, VAL3, (rc == 0)); in main()
461 uaddr, VALP_PR, VAL2P_PR, uaddr2, sprintrc(rc)); in main()
478 CHECK_FUTEX(uaddr, FUTEX_CMP_REQUEUE, VAL, VAL2, uaddr2, VAL3, in main()
481 uaddr, VAL_PR, VAL2_PR, uaddr2, VAL3_PR, sprintrc(rc)); in main()
483 CHECK_FUTEX(uaddr, FUTEX_CMP_REQUEUE, VALP, VAL2P, uaddr2, VAL3, in main()
486 uaddr, VALP_PR, VAL2P_PR, uaddr2, VAL3_PR, sprintrc(rc)); in main()
489 CHECK_FUTEX(uaddr, FUTEX_CMP_REQUEUE, VAL, VAL2, uaddr2, *uaddr, in main()
492 uaddr, VAL_PR, VAL2_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
494 CHECK_FUTEX(uaddr, FUTEX_CMP_REQUEUE, VALP, VAL2P, uaddr2, *uaddr, in main()
497 uaddr, VALP_PR, VAL2P_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
501 VAL2, uaddr2, *uaddr, in main()
504 uaddr, VAL_PR, VAL2_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
507 VAL2P, uaddr2, *uaddr, (rc == 0)); in main()
509 uaddr, VALP_PR, VAL2P_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
606 VAL, i, uaddr2, wake_ops[i].val, in main()
620 i, uaddr2, wake_ops[i].str, sprintrc(rc)); in main()
646 CHECK_FUTEX_ENOSYS(uaddr + 1, FUTEX_LOCK_PI, VAL, tmout, uaddr2 + 1, in main()
653 tmout, uaddr2 + 1, VAL3, (rc == -1) && (errno == EFAULT)); in main()
677 CHECK_FUTEX_ENOSYS(uaddr + 1, FUTEX_UNLOCK_PI, VAL, tmout, uaddr2 + 1, in main()
682 tmout, uaddr2 + 1, VAL3, (rc == -1) && (errno == EFAULT)); in main()
699 CHECK_FUTEX_ENOSYS(uaddr + 1, FUTEX_TRYLOCK_PI, VAL, tmout, uaddr2 + 1, in main()
704 VAL, tmout, uaddr2 + 1, VAL3, (rc == -1) && (errno == EFAULT)); in main()
727 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_WAIT_REQUEUE_PI, VAL, tmout, uaddr2, in main()
732 zero_extend_signed_to_ull(tmout->tv_nsec), uaddr2, sprintrc(rc)); in main()
735 VAL, tmout, uaddr2, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
739 zero_extend_signed_to_ull(tmout->tv_nsec), uaddr2, sprintrc(rc)); in main()
742 VAL, tmout, uaddr2, VAL3, (rc == -1) && (errno == EAGAIN)); in main()
746 zero_extend_signed_to_ull(tmout->tv_nsec), uaddr2, sprintrc(rc)); in main()
749 FUTEX_WAIT_REQUEUE_PI, VAL, tmout, uaddr2, VAL3, in main()
754 zero_extend_signed_to_ull(tmout->tv_nsec), uaddr2, sprintrc(rc)); in main()
772 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_CMP_REQUEUE_PI, VAL, VAL2, uaddr2, VAL3, in main()
775 uaddr, VAL_PR, VAL2_PR, uaddr2, VAL3_PR, sprintrc(rc)); in main()
777 CHECK_FUTEX_ENOSYS(uaddr, FUTEX_CMP_REQUEUE_PI, VAL, VAL2, uaddr2, in main()
780 uaddr, VAL_PR, VAL2_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
783 VAL, VAL2, uaddr2, *uaddr, (rc == -1) && (errno == EINVAL)); in main()
785 uaddr, VAL_PR, VAL2_PR, uaddr2, *uaddr, sprintrc(rc)); in main()
794 CHECK_FUTEX(uaddr, 0xd, VAL, tmout + 1, uaddr2 + 1, VAL3, in main()
797 uaddr, VAL_PR, tmout + 1, uaddr2 + 1, VAL3_PR, sprintrc(rc)); in main()
799 CHECK_FUTEX(uaddr, 0xbefeeded, VAL, tmout + 1, uaddr2, VAL3, in main()
802 uaddr, VAL_PR, tmout + 1, uaddr2, VAL3_PR, sprintrc(rc)); in main()