[PATCH v3] tests: Add test for the futex syscall
Dmitry V. Levin
ldv at altlinux.org
Wed Aug 31 08:33:09 UTC 2016
On Wed, Aug 31, 2016 at 12:32:58AM +0300, Eugene Syromyatnikov wrote:
> * tests/futex.c: New file.
> * tests/futex.test: Likewise.
> * tests/Makefile.am (check_PROGRAMS): Add futex.
> (DECODER_TESTS): Add futex.test.
> ---
> Changes since v2:
> * Commands not available on the old kernels (2.6.18 onwards) are wrapped in
> CHECK_FUTEX_ENOSYS which prevents failure in case errno is ENOSYS and is not
> expected one.
> * Checks for PI mutexes do no rely on PID 2 being kthreadd (which is not true
> when process namespaces are employed, for example).
> * Printing return code is done via retstr() which utilizes errno2name for errno
> printing.
> * All headers except asm/unistd.h moved under ifdef __NR_futex.
> * <linux/futex.h> inclusion removed since it is proven broken in some
> distros
> * Added definitions for FUTEX_PRIVATE_FLAG, FUTEX_CLOCK_REALTIME, FUTEX_CMD_MASK
> * Skip on EPERM since it is sometimes returned for otherwise perfectly
> valid commands (WAKE_OP on AArch64)
> * Minor formatting fixes.
>
> tests/Makefile.am | 2 +
> tests/futex.c | 692 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> tests/futex.test | 8 +
> 3 files changed, 702 insertions(+)
> create mode 100644 tests/futex.c
> create mode 100755 tests/futex.test
Wow, what a test!
The whole series are now applied. Thanks!
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160831/cb88ba4d/attachment.bin>
More information about the Strace-devel
mailing list