]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: vm: add fragment CONFIG_GUP_BENCHMARK
authorAnatoly Pugachev <matorola@gmail.com>
Tue, 16 Jun 2020 12:26:18 +0000 (15:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:07:33 +0000 (10:07 +0100)
commit6852678afe96d79c383188c73ddae38e194193f8
tree8e53e56e5505efe34bf3f134249320bca0ec2b41
parente9f1340193b5b18cb638b19ec2ba2f985c034956
selftests: vm: add fragment CONFIG_GUP_BENCHMARK

[ Upstream commit cae1d5a2c5a491141faa747e9944ba40ab4ab786 ]

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 <matorola@gmail.com>
CC: Jiri Kosina <trivial@kernel.org>
CC: Shuah Khan <shuah@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/vm/config