From patchwork Wed Nov 4 10:05:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Song Bao Hua (Barry Song)" X-Patchwork-Id: 11880143 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 71D9D174A for ; Wed, 4 Nov 2020 10:10:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0FC0C22280 for ; Wed, 4 Nov 2020 10:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FC0C22280 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D88676B0036; Wed, 4 Nov 2020 05:09:58 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D3B6B6B005D; Wed, 4 Nov 2020 05:09:58 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C528A6B0068; Wed, 4 Nov 2020 05:09:58 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id 943276B0036 for ; Wed, 4 Nov 2020 05:09:58 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 2E6561EE6 for ; Wed, 4 Nov 2020 10:09:58 +0000 (UTC) X-FDA: 77446314876.14.stop31_0813f00272c0 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 056F818229835 for ; Wed, 4 Nov 2020 10:09:57 +0000 (UTC) X-Spam-Summary: 1,0,0,6a15900845b117ee,d41d8cd98f00b204,song.bao.hua@hisilicon.com,,RULES_HIT:41:355:379:541:582:800:960:967:973:988:989:1152:1260:1261:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1711:1730:1747:1777:1792:2393:2525:2559:2563:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3866:3868:3870:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6261:7903:9025:10004:10400:11026:11658:11914:12043:12296:12297:12555:12895:12986:13069:13161:13229:13311:13357:13894:14096:14097:14181:14394:14721:21080:21627:21749:21966:30012:30054:30056:30064,0,RBL:45.249.212.191:@hisilicon.com:.lbl8.mailshell.net-62.14.2.100 64.201.201.201;04y89g578q3h9zxtfyb4hkxdctcqeyc5yat3es1aaejnn4rmprhdniuh8utkgg8.md7tjs4x8iqf78sqa7bkganrqugxzfcdi6qeqdc478tqhis65n7rndiaiaot1xh.4-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules :0:0:0,L X-HE-Tag: stop31_0813f00272c0 X-Filterd-Recvd-Size: 2264 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Wed, 4 Nov 2020 10:09:57 +0000 (UTC) Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CR2St5X04zhgfH; Wed, 4 Nov 2020 18:09:50 +0800 (CST) Received: from SWX921481.china.huawei.com (10.126.203.215) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Wed, 4 Nov 2020 18:09:43 +0800 From: Barry Song To: , , CC: , Barry Song , "John Hubbard" , Ralph Campbell , "John Garry" Subject: [PATCH] mm/gup_benchmark: GUP_BENCHMARK depends on DEBUG_FS Date: Wed, 4 Nov 2020 23:05:52 +1300 Message-ID: <20201104100552.20156-1-song.bao.hua@hisilicon.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.126.203.215] X-CFilter-Loop: Reflected X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Without DEBUG_FS, all the code in gup_benchmark becomes meaningless. For sure kernel provides debugfs stub while DEBUG_FS is disabled, but the point here is that GUP_BENCHMARK can do nothing without DEBUG_FS. Cc: John Hubbard Cc: Ralph Campbell Inspired-by: John Garry Signed-off-by: Barry Song --- * inspired by John's comment in this patch: https://lore.kernel.org/linux-iommu/184797b8-512e-e3da-fae7-25c7d662648b@huawei.com/ mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig b/mm/Kconfig index d42423f..91fa923 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -836,6 +836,7 @@ config PERCPU_STATS config GUP_BENCHMARK bool "Enable infrastructure for get_user_pages() and related calls benchmarking" + depends on DEBUG_FS help Provides /sys/kernel/debug/gup_benchmark that helps with testing performance of get_user_pages() and related calls.