mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-02 07:13:31 +01:00
selftests: mm: add pagemap ioctl tests
Add pagemap ioctl tests. Add several different types of tests to judge the correction of the interface. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muhammad Usama Anjum <[email protected]> Cc: Alex Sierra <[email protected]> Cc: Al Viro <[email protected]> Cc: Andrei Vagin <[email protected]> Cc: Axel Rasmussen <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Cc: Dan Williams <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Gustavo A. R. Silva <[email protected]> Cc: "Liam R. Howlett" <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Michal Miroslaw <[email protected]> Cc: Michał Mirosław <[email protected]> Cc: Mike Rapoport (IBM) <[email protected]> Cc: Nadav Amit <[email protected]> Cc: Pasha Tatashin <[email protected]> Cc: Paul Gofman <[email protected]> Cc: Peter Xu <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Yang Shi <[email protected]> Cc: Yun Zhou <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
1 parent
18825b8ae9
commit
46fd75d4a3
5 files changed
+1669
-1
No files matched your search
@@ -18,6 +18,8 @@ mremap_dontunmap
|
||||
mremap_test
|
||||
on-fault-limit
|
||||
transhuge-stress
|
||||
pagemap_ioctl
|
||||
*.tmp*
|
||||
protection_keys
|
||||
protection_keys_32
|
||||
protection_keys_64
|
||||
|
||||
@@ -33,7 +33,7 @@ endif
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
|
||||
LDLIBS = -lrt -lpthread
|
||||
LDLIBS = -lrt -lpthread -lm
|
||||
|
||||
TEST_GEN_FILES = cow
|
||||
TEST_GEN_FILES += compaction_test
|
||||
@@ -60,6 +60,7 @@ TEST_GEN_FILES += mrelease_test
|
||||
TEST_GEN_FILES += mremap_dontunmap
|
||||
TEST_GEN_FILES += mremap_test
|
||||
TEST_GEN_FILES += on-fault-limit
|
||||
TEST_GEN_PROGS += pagemap_ioctl
|
||||
TEST_GEN_FILES += thuge-gen
|
||||
TEST_GEN_FILES += transhuge-stress
|
||||
TEST_GEN_FILES += uffd-stress
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_USERFAULTFD=y
|
||||
CONFIG_PTE_MARKER_UFFD_WP=y
|
||||
CONFIG_TEST_VMALLOC=m
|
||||
CONFIG_DEVICE_PRIVATE=y
|
||||
CONFIG_TEST_HMM=m
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -56,6 +56,8 @@ separated by spaces:
|
||||
memory protection key tests
|
||||
- soft_dirty
|
||||
test soft dirty page bit semantics
|
||||
- pagemap
|
||||
test pagemap_scan IOCTL
|
||||
- cow
|
||||
test copy-on-write semantics
|
||||
- thp
|
||||
@@ -342,6 +344,8 @@ then
|
||||
CATEGORY="soft_dirty" run_test ./soft-dirty
|
||||
fi
|
||||
|
||||
CATEGORY="pagemap" run_test ./pagemap_ioctl
|
||||
|
||||
# COW tests
|
||||
CATEGORY="cow" run_test ./cow
|
||||
|
||||
|
||||
Reference in new issue
Block a user