selftests: vm: add fragment CONFIG_GUP_BENCHMARK
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")
Signed-off-by Anatoly Pugachev <[email protected]>
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
@@ -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
Quoted 27 lines · Anatoly Pugachev
When running
gup_benchmarktest 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")Signed-off-by Anatoly Pugachev <[email protected]>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
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