selftests: vm: add fragment CONFIG_GUP_BENCHMARK
diff mbox series

Message ID 20200616122618.GA24819@yogzotot
State New
Headers show
  • selftests: vm: add fragment CONFIG_GUP_BENCHMARK
Related show

Commit Message

Anatoly Pugachev June 16, 2020, 12:26 p.m. UTC
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 <>
CC: Jiri Kosina <>
CC: Shuah Khan <>
 tools/testing/selftests/vm/config | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/tools/testing/selftests/vm/config b/tools/testing/selftests/vm/config
index 3ba674b64fa9..69dd0d1aa30b 100644
--- a/tools/testing/selftests/vm/config
+++ b/tools/testing/selftests/vm/config
@@ -3,3 +3,4 @@  CONFIG_USERFAULTFD=y