Commit 46fd75d4 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Andrew Morton

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/20230821141518.870589-7-usama.anjum@collabora.comSigned-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Alex Sierra <alex.sierra@amd.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrei Vagin <avagin@gmail.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Miroslaw <emmir@google.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Nadav Amit <namit@vmware.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Paul Gofman <pgofman@codeweavers.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Yun Zhou <yun.zhou@windriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 18825b8a
...@@ -18,6 +18,8 @@ mremap_dontunmap ...@@ -18,6 +18,8 @@ mremap_dontunmap
mremap_test mremap_test
on-fault-limit on-fault-limit
transhuge-stress transhuge-stress
pagemap_ioctl
*.tmp*
protection_keys protection_keys
protection_keys_32 protection_keys_32
protection_keys_64 protection_keys_64
......
...@@ -33,7 +33,7 @@ endif ...@@ -33,7 +33,7 @@ endif
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
LDLIBS = -lrt -lpthread LDLIBS = -lrt -lpthread -lm
TEST_GEN_FILES = cow TEST_GEN_FILES = cow
TEST_GEN_FILES += compaction_test TEST_GEN_FILES += compaction_test
...@@ -60,6 +60,7 @@ TEST_GEN_FILES += mrelease_test ...@@ -60,6 +60,7 @@ TEST_GEN_FILES += mrelease_test
TEST_GEN_FILES += mremap_dontunmap TEST_GEN_FILES += mremap_dontunmap
TEST_GEN_FILES += mremap_test TEST_GEN_FILES += mremap_test
TEST_GEN_FILES += on-fault-limit TEST_GEN_FILES += on-fault-limit
TEST_GEN_PROGS += pagemap_ioctl
TEST_GEN_FILES += thuge-gen TEST_GEN_FILES += thuge-gen
TEST_GEN_FILES += transhuge-stress TEST_GEN_FILES += transhuge-stress
TEST_GEN_FILES += uffd-stress TEST_GEN_FILES += uffd-stress
......
CONFIG_SYSVIPC=y CONFIG_SYSVIPC=y
CONFIG_USERFAULTFD=y CONFIG_USERFAULTFD=y
CONFIG_PTE_MARKER_UFFD_WP=y
CONFIG_TEST_VMALLOC=m CONFIG_TEST_VMALLOC=m
CONFIG_DEVICE_PRIVATE=y CONFIG_DEVICE_PRIVATE=y
CONFIG_TEST_HMM=m CONFIG_TEST_HMM=m
......
This diff is collapsed.
...@@ -56,6 +56,8 @@ separated by spaces: ...@@ -56,6 +56,8 @@ separated by spaces:
memory protection key tests memory protection key tests
- soft_dirty - soft_dirty
test soft dirty page bit semantics test soft dirty page bit semantics
- pagemap
test pagemap_scan IOCTL
- cow - cow
test copy-on-write semantics test copy-on-write semantics
- thp - thp
...@@ -342,6 +344,8 @@ then ...@@ -342,6 +344,8 @@ then
CATEGORY="soft_dirty" run_test ./soft-dirty CATEGORY="soft_dirty" run_test ./soft-dirty
fi fi
CATEGORY="pagemap" run_test ./pagemap_ioctl
# COW tests # COW tests
CATEGORY="cow" run_test ./cow CATEGORY="cow" run_test ./cow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment