Skip to contentSkip to conversation

selftest-add-mremap_dontunmap-selftest.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 3, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: selftests: add MREMAP_DONTUNMAP selftest
has been removed from the -mm tree. Its filename was
selftest-add-mremap_dontunmap-selftest.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Brian Geffon <[email protected]>
Subject: selftests: add MREMAP_DONTUNMAP selftest

Add a few simple self tests for the new flag MREMAP_DONTUNMAP, they are simple smoke tests which also demonstrate the behavior.

[[email protected]: convert eight-spaces to hard tabs]
[[email protected]: coding style fixes]
Cc Vlastimil Babka <[email protected]>
Cc "Michael S . Tsirkin" <[email protected]>
Cc Brian Geffon <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Will Deacon <[email protected]>
Cc Andrea Arcangeli <[email protected]>
Cc Sonny Rao <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Yu Zhao <[email protected]>
Cc Jesse Barnes <[email protected]>
Cc Nathan Chancellor <[email protected]>
Cc Florian Weimer <[email protected]>
Cc "Kirill A . Shutemov" <[email protected]>
Cc Lokesh Gidra <[email protected]>

---

 tools/testing/selftests/vm/Makefile           |    1 
 tools/testing/selftests/vm/mremap_dontunmap.c |  313 ++++++++++++++++
 tools/testing/selftests/vm/run_vmtests        |   15 
 3 files changed, 329 insertions(+)
tools/testing/selftests/vm/Makefile renamed from tools/testing/selftests/vm/Makefile~selftest-add-mremap_dontunmap-selftest +1 -0
@@ -14,6 +14,7 @@ TEST_GEN_FILES += map_fixed_noreplace
 TEST_GEN_FILES += map_populate
 TEST_GEN_FILES += mlock-random-test
 TEST_GEN_FILES += mlock2-tests
+TEST_GEN_FILES += mremap_dontunmap
 TEST_GEN_FILES += on-fault-limit
 TEST_GEN_FILES += thuge-gen
 TEST_GEN_FILES += transhuge-stress
tools/testing/selftests/vm/mremap_dontunmap.c new file +313 -0

313 lines not on this page · raw message

tools/testing/selftests/vm/run_vmtests renamed from tools/testing/selftests/vm/run_vmtests~selftest-add-mremap_dontunmap-selftest +15 -0
@@ -292,4 +292,19 @@ else
 	exitcode=1
 fi
 
+echo "------------------------------------"
+echo "running MREMAP_DONTUNMAP smoke test"
+echo "------------------------------------"
+./mremap_dontunmap
+ret_val=$?
+
+if [ $ret_val -eq 0 ]; then
+	echo "[PASS]"
+elif [ $ret_val -eq $ksft_skip ]; then
+	 echo "[SKIP]"
+	 exitcode=$ksft_skip
+else
+	echo "[FAIL]"
+	exitcode=1
+fi
 exit $exitcode

_

Patches currently in -mm which might be from [email protected] are