selftests: add epoll selftests
authorHeiher <r@hev.cc>
Thu, 5 Dec 2019 00:52:19 +0000 (16:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Dec 2019 03:44:13 +0000 (19:44 -0800)
commitf2728fe80cefb40a8f486e64a4bef17ce2c64f5b
treee4455507058f1fcc8d05c1d60957e7410b2b0347
parent339ddb53d373baee6e7946aec17c739c4924d6d9
selftests: add epoll selftests

This adds the promised selftest for epoll.  It will verify the wakeups
of epoll.  Including leaf and nested mode, epoll_wait() and poll() and
multi-threads.

Link: http://lkml.kernel.org/r/20191009121518.4027-1-r@hev.cc
Signed-off-by: hev <r@hev.cc>
Reviewed-by: Roman Penyaev <rpenyaev@suse.de>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/filesystems/epoll/.gitignore [new file with mode: 0644]
tools/testing/selftests/filesystems/epoll/Makefile [new file with mode: 0644]
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c [new file with mode: 0644]