From patchwork Tue Oct 27 13:47:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 312597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69D2CC55179 for ; Tue, 27 Oct 2020 15:29:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20BD62225E for ; Tue, 27 Oct 2020 15:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603812559; bh=+cwNwv6qjsb5YJODqEPijhAolfDeP6rDsLXPpxdyTWo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=1Fiwaa7mkypyNbmlX+Q+YXD3yIZ9nXy/+KvjPHRRiESw06erRUV92NCRNzkMFgvbT wTyn3KwBMylUz/CcXcGYRuNioJXBAfRpP+zvrCHJJwqA03WaqZr4NphEutcAglR7Jg 0hEC3z564txhLw9ecHd6Ji9cnJE7kIWhhQ/P5USo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1798619AbgJ0P3Q (ORCPT ); Tue, 27 Oct 2020 11:29:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1798444AbgJ0P2A (ORCPT ); Tue, 27 Oct 2020 11:28:00 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CAA91206E9; Tue, 27 Oct 2020 15:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603812480; bh=+cwNwv6qjsb5YJODqEPijhAolfDeP6rDsLXPpxdyTWo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PEOSRMr3Uy8Go+/uYWlG4aFPGtcD6z4IBdOtJ13GLNKGTMiEwZoPMxnZk/Qwa7Ssz Zf6q5t3aJjo6M2xtpmYZ2Cxuy/AoN7wO3tTwlFeBhjbWzu1ySyDgMQjxPM40+wgf1t n2r0U0JhcQ/lX7CFb32l8hA6A3+sBwsh+k+mLMJg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anatoly Pugachev , Jiri Kosina , Shuah Khan , Jiri Kosina , Sasha Levin Subject: [PATCH 5.9 225/757] selftests: vm: add fragment CONFIG_GUP_BENCHMARK Date: Tue, 27 Oct 2020 14:47:55 +0100 Message-Id: <20201027135501.165835678@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Anatoly Pugachev [ 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 CC: Jiri Kosina CC: Shuah Khan Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- 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