From patchwork Fri Aug 21 03:25:46 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: 11727543 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 A158B138C for ; Fri, 21 Aug 2020 03:34:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7802F208B3 for ; Fri, 21 Aug 2020 03:34:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7802F208B3 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 AFEBE8D000B; Thu, 20 Aug 2020 23:34:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AD6178D000A; Thu, 20 Aug 2020 23:34:58 -0400 (EDT) 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 9C6DE8D000B; Thu, 20 Aug 2020 23:34:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0103.hostedemail.com [216.40.44.103]) by kanga.kvack.org (Postfix) with ESMTP id 864218D000A for ; Thu, 20 Aug 2020 23:34:58 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3B097180AD81D for ; Fri, 21 Aug 2020 03:34:58 +0000 (UTC) X-FDA: 77173159476.29.pail23_0612ba927036 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 11E6E18086E58 for ; Fri, 21 Aug 2020 03:34:58 +0000 (UTC) X-Spam-Summary: 1,0,0,121b382b3f6ab998,d41d8cd98f00b204,song.bao.hua@hisilicon.com,,RULES_HIT:41:355:379:541:582:800:960:973:988:989:1152:1260:1261:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:2692:2895:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6261:10004:10400:11026:11658:11914:12043:12296:12297:12555:12895:13069:13161:13229:13311:13357:13894:14096:14097:14181:14394:14721:21080:21451:21627:30054:30056:30064:30070,0,RBL:45.249.212.32:@hisilicon.com:.lbl8.mailshell.net-62.2.2.100 64.100.201.201;04y8c8588m7byaj8m5aryc8gtm7qgocsru16rphoqqztgtzhfowyp813jumx5bi.8frdhxfwfgocsfamcus59e3i6wxy7tbqigtqaz1iiqp8zeertc7xx7qetjb5dze.g-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:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: pail23_0612ba927036 X-Filterd-Recvd-Size: 2578 Received: from huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Fri, 21 Aug 2020 03:34:57 +0000 (UTC) Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8061D558E3DE7BEE5F2A; Fri, 21 Aug 2020 11:28:36 +0800 (CST) Received: from SWX921481.china.huawei.com (10.126.202.191) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Fri, 21 Aug 2020 11:28:25 +0800 From: Barry Song To: , , CC: , , Barry Song , John Hubbard , Keith Busch , Ira Weiny , "Kirill A . Shutemov" Subject: [PATCH] mm/gup_benchmark: update the documentation in Kconfig Date: Fri, 21 Aug 2020 15:25:46 +1200 Message-ID: <20200821032546.19992-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.202.191] X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 11E6E18086E58 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: In the beginning, mm/gup_benchmark.c supported get_user_pages_fast() only, but right now, it supports the benchmarking of a couple of get_user_pages() related calls like: * get_user_pages_fast() * get_user_pages() * pin_user_pages_fast() * pin_user_pages() The documentation is confusing and needs update. Cc: John Hubbard Cc: Keith Busch Cc: Ira Weiny Cc: Kirill A. Shutemov Signed-off-by: Barry Song --- mm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 6c974888f86f..f7c9374da7b3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -831,10 +831,10 @@ config PERCPU_STATS be used to help understand percpu memory usage. config GUP_BENCHMARK - bool "Enable infrastructure for get_user_pages_fast() benchmarking" + bool "Enable infrastructure for get_user_pages() and related calls benchmarking" help Provides /sys/kernel/debug/gup_benchmark that helps with testing - performance of get_user_pages_fast(). + performance of get_user_pages() and related calls. See tools/testing/selftests/vm/gup_benchmark.c