Skip to contentSkip to conversation

selftests/vm: Add protection_keys tests to run_vmtests

PATCH Superseded Kalpana Shetty 3 participants 5 messages May 31, 2022 – Jun 10, 2022

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/vm: Add protection_keys tests to run_vmtests

---
 tools/testing/selftests/vm/run_vmtests.sh | 7 +++++++
 1 file changed, 7 insertions(+)
tools/testing/selftests/vm/run_vmtests.sh +7 -0
index 41fce8bea929..54a0c28f810c 100755
@@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1
 # KSM test with 2 NUMA nodes and merge_across_nodes = 0
 run_test ./ksm_tests -N -m 0
 
+# protection_keys tests
+if [ $VADDR64 -eq 0 ]; then
+	run_test ./protection_keys_32
+else
+	run_test ./protection_keys_64
+fi
+
 exit $exitcode
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · On Tue, 31 May 2022 15:55:56 +0530 Kalpana Shetty <[email protected]>…
tools/testing/selftests/vm/run_vmtests.sh +0 -0
@@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1
 # KSM test with 2 NUMA nodes and merge_across_nodes = 0

tools/testing/selftests/vm/run_vmtests.sh run_test ./ksm_tests -N -m 1 · line 189

Quoted 10 lines
tools/testing/selftests/vm/run_vmtests.sh +7 -0
 run_test ./ksm_tests -N -m 0
 
+# protection_keys tests
+if [ $VADDR64 -eq 0 ]; then
+	run_test ./protection_keys_32
+else
+	run_test ./protection_keys_64
+fi
+
 exit $exitcode

So we're presently not running this test at all, unless invoked by hand?

I'm thinking we should backport this fix - have you any idea when we broke it?

#2 lore raw
Quoted 8 lines · Andrew Morton
Quoted 6 lines · On Tue, 31 May 2022 15:55:56 +0530 Kalpana Shetty <[email protected]>…
tools/testing/selftests/vm/run_vmtests.sh +0 -0
@@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1
  # KSM test with 2 NUMA nodes and merge_across_nodes = 0
  run_test ./ksm_tests -N -m 0
 
Quoted 10 lines

tools/testing/selftests/vm/run_vmtests.sh run_test ./ksm_tests -N -m 1 · line 189

Quoted 8 lines
tools/testing/selftests/vm/run_vmtests.sh +7 -0
+# protection_keys tests
+if [ $VADDR64 -eq 0 ]; then
+	run_test ./protection_keys_32
+else
+	run_test ./protection_keys_64
+fi
+
  exit $exitcode

So we're presently not running this test at all, unless invoked by hand?

Yes.

Quoted 3 lines

I'm thinking we should backport this fix - have you any idea when we broke it?

We didn't break it, just adding "protection_keys" test as part of run_vmtests.sh

Thanks,

Kalpana

maintainer
#3 lore raw
In reply to Kalpana Shetty
Quoted 1 line · Kalpana Shetty

Missing commit log - please add a detailed commit log explaining why this change is necessary.

Quoted 11 lines
---
  tools/testing/selftests/vm/run_vmtests.sh | 7 +++++++
  1 file changed, 7 insertions(+)
tools/testing/selftests/vm/run_vmtests.sh +0 -0
index 41fce8bea929..54a0c28f810c 100755
@@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1
  # KSM test with 2 NUMA nodes and merge_across_nodes = 0

tools/testing/selftests/vm/run_vmtests.sh run_test ./ksm_tests -N -m 1 · line 189

Quoted 10 lines
tools/testing/selftests/vm/run_vmtests.sh +7 -0
  run_test ./ksm_tests -N -m 0
 
+# protection_keys tests
+if [ $VADDR64 -eq 0 ]; then
+	run_test ./protection_keys_32
+else
+	run_test ./protection_keys_64
+fi
+
  exit $exitcode

thanks,
-- Shuah

#4 lore raw
Quoted 5 lines · Shuah Khan
Quoted 1 line · Kalpana Shetty

Missing commit log - please add a detailed commit log explaining why this change is necessary.

Sent V2 patch with patch description.

Thanks,

Kalpana

Quoted 24 lines
Quoted 19 lines

---
  tools/testing/selftests/vm/run_vmtests.sh | 7 +++++++

  1 file changed, 7 insertions(+)
tools/testing/selftests/vm/run_vmtests.sh +0 -0
index 41fce8bea929..54a0c28f810c 100755
@@ -179,4 +179,11 @@ run_test ./ksm_tests -N -m 1
   # KSM test with 2 NUMA nodes and merge_across_nodes = 0

  run_test ./ksm_tests -N -m 0
  +# protection_keys tests

tools/testing/selftests/vm/run_vmtests.sh +6 -0
+if [ $VADDR64 -eq 0 ]; then
+    run_test ./protection_keys_32
+else
+    run_test ./protection_keys_64
+fi
+
Quoted 2 lines

  exit $exitcode

thanks,
-- Shuah