Skip to contentSkip to conversation

selftests: vm: add fragment CONFIG_GUP_BENCHMARK

PATCH In review Anatoly Pugachev 2 participants 2 messages Jun 16, 2020 – Sep 1, 2020 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: vm: add fragment CONFIG_GUP_BENCHMARK

When running gup_benchmark test the following output states that the config options is missing.

$ sudo ./gup_benchmark
open: No such file or directory
$ sudo strace -e trace=file ./gup_benchmark 2>&1 | tail -3
openat(AT_FDCWD, "/sys/kernel/debug/gup_benchmark", O_RDWR) = -1 ENOENT
(No such file or directory)
open: No such file or directory
+++ exited with 1 +++

Fix it by adding config option fragment.

Fixes 64c349f4ae78 ("mm: add infrastructure for get_user_pages_fast() benchmarking")
CC Jiri Kosina <[email protected]>
CC Shuah Khan <[email protected]>
---
 tools/testing/selftests/vm/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/vm/config +1 -0
index 3ba674b64fa9..69dd0d1aa30b 100644
@@ -3,3 +3,4 @@ CONFIG_USERFAULTFD=y
 CONFIG_TEST_VMALLOC=m
 CONFIG_DEVICE_PRIVATE=y
 CONFIG_TEST_HMM=m
+CONFIG_GUP_BENCHMARK=y
Signature · 1 line
2.27.0
#1 lore raw
Quoted 27 lines · Anatoly Pugachev

When running gup_benchmark test the following output states that the config options is missing.

$ sudo ./gup_benchmark
open: No such file or directory
$ sudo strace -e trace=file ./gup_benchmark 2>&1 | tail -3
openat(AT_FDCWD, "/sys/kernel/debug/gup_benchmark", O_RDWR) = -1 ENOENT
(No such file or directory)
open: No such file or directory
+++ exited with 1 +++

Fix it by adding config option fragment.

Fixes 64c349f4ae78 ("mm: add infrastructure for get_user_pages_fast() benchmarking")
CC Jiri Kosina <[email protected]>
CC Shuah Khan <[email protected]>
---
 tools/testing/selftests/vm/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/vm/config +0 -0
index 3ba674b64fa9..69dd0d1aa30b 100644

tools/testing/selftests/vm/config CONFIG_USERFAULTFD=y · line 6

Quoted 4 lines
tools/testing/selftests/vm/config +1 -0
@@ -3,3 +3,4 @@ CONFIG_USERFAULTFD=y
 CONFIG_TEST_VMALLOC=m
 CONFIG_DEVICE_PRIVATE=y
 CONFIG_TEST_HMM=m
+CONFIG_GUP_BENCHMARK=y

Doesn't seem to be in linux-next as of today, I am picking it up. Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs