lkml.org 
[lkml]   [2020]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.8 191/633] selftests: vm: add fragment CONFIG_GUP_BENCHMARK
    Date
    From: Anatoly Pugachev <matorola@gmail.com>

    [ 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 | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/tools/testing/selftests/vm/config b/tools/testing/selftests/vm/config
    index 3ba674b64fa9f..69dd0d1aa30b2 100644
    --- a/tools/testing/selftests/vm/config
    +++ b/tools/testing/selftests/vm/config
    @@ -3,3 +3,4 @@ CONFIG_USERFAULTFD=y
    CONFIG_TEST_VMALLOC=m
    CONFIG_DEVICE_PRIVATE=y
    CONFIG_TEST_HMM=m
    +CONFIG_GUP_BENCHMARK=y
    --
    2.25.1


    \
     
     \ /
      Last update: 2020-10-27 16:10    [W:4.033 / U:0.568 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site