[prev in list] [next in list] [prev in thread] [next in thread] 

List:       strace
Subject:    Re: [PATCH v3] tests: Add test for the futex syscall
From:       "Dmitry V. Levin" <ldv () altlinux ! org>
Date:       2016-08-31 8:33:09
Message-ID: 20160831083309.GA7043 () altlinux ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

------------------------------------------------------------------------------


_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic