Skip to content

Commit 8b6ae71

Browse files
Muhammad Usama Anjumopsiff
authored andcommitted
selftests: mm: add pagemap ioctl tests
mainline inclusion from mainline-v6.7-rc1 category: performance 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.com Signed-off-by: Muhammad 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: Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit 46fd75d) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 2d7e9eb commit 8b6ae71

5 files changed

Lines changed: 1669 additions & 1 deletion

File tree

tools/testing/selftests/mm/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ mremap_dontunmap
1818
mremap_test
1919
on-fault-limit
2020
transhuge-stress
21+
pagemap_ioctl
22+
*.tmp*
2123
protection_keys
2224
protection_keys_32
2325
protection_keys_64

tools/testing/selftests/mm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif
3333
MAKEFLAGS += --no-builtin-rules
3434

3535
CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
36-
LDLIBS = -lrt -lpthread
36+
LDLIBS = -lrt -lpthread -lm
3737

3838
TEST_GEN_FILES = cow
3939
TEST_GEN_FILES += compaction_test
@@ -62,6 +62,7 @@ TEST_GEN_FILES += mrelease_test
6262
TEST_GEN_FILES += mremap_dontunmap
6363
TEST_GEN_FILES += mremap_test
6464
TEST_GEN_FILES += on-fault-limit
65+
TEST_GEN_PROGS += pagemap_ioctl
6566
TEST_GEN_FILES += thuge-gen
6667
TEST_GEN_FILES += transhuge-stress
6768
TEST_GEN_FILES += uffd-stress

tools/testing/selftests/mm/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CONFIG_SYSVIPC=y
22
CONFIG_USERFAULTFD=y
3+
CONFIG_PTE_MARKER_UFFD_WP=y
34
CONFIG_TEST_VMALLOC=m
45
CONFIG_DEVICE_PRIVATE=y
56
CONFIG_TEST_HMM=m

0 commit comments

Comments
 (0)