mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
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>
This commit is contained in:
parent
339ddb53d3
commit
f2728fe80c
@ -13,6 +13,7 @@ TARGETS += efivarfs
|
||||
TARGETS += exec
|
||||
TARGETS += filesystems
|
||||
TARGETS += filesystems/binderfs
|
||||
TARGETS += filesystems/epoll
|
||||
TARGETS += firmware
|
||||
TARGETS += ftrace
|
||||
TARGETS += futex
|
||||
|
1
tools/testing/selftests/filesystems/epoll/.gitignore
vendored
Normal file
1
tools/testing/selftests/filesystems/epoll/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
epoll_wakeup_test
|
7
tools/testing/selftests/filesystems/epoll/Makefile
Normal file
7
tools/testing/selftests/filesystems/epoll/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
CFLAGS += -I../../../../../usr/include/
|
||||
LDFLAGS += -lpthread
|
||||
TEST_GEN_PROGS := epoll_wakeup_test
|
||||
|
||||
include ../../lib.mk
|
3074
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
Normal file
3074
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user