selftests: add eventfd selftests
authorWen Yang <wenyang.linux@foxmail.com>
Mon, 8 Jan 2024 15:51:32 +0000 (23:51 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 23:38:51 +0000 (15:38 -0800)
commit7c37857fc23a7e0ff0bf51cc2ea47d9140d1f6a3
treebd85b0ab1dd55fcaecb2e421bb180c4bf961c502
parent2947a4567f3a79127d2d540384e7f042106c1a24
selftests: add eventfd selftests

This adds the promised selftest for eventfd.  It will verify the flags of
eventfd2, including EFD_CLOEXEC, EFD_NONBLOCK and EFD_SEMAPHORE.

Link: https://lkml.kernel.org/r/tencent_3C9A298878D22B5D8F79DC2FEE99BB4A8F05@qq.com
Signed-off-by: Wen Yang <wenyang.linux@foxmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Pengfei Xu <pengfei.xu@intel.com>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Andrei Vagin <avagin@google.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/filesystems/eventfd/.gitignore [new file with mode: 0644]
tools/testing/selftests/filesystems/eventfd/Makefile [new file with mode: 0644]
tools/testing/selftests/filesystems/eventfd/eventfd_test.c [new file with mode: 0644]