Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1185755pxb; Wed, 4 Nov 2020 02:11:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzERIkWKqi/fmDWtKTiLUOfR+sNcSUaeD4WgR877vp3BLUDKJ9XI4bJQXr1cFQrk2C/Z8C+ X-Received: by 2002:a50:f316:: with SMTP id p22mr26773049edm.201.1604484710225; Wed, 04 Nov 2020 02:11:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604484710; cv=none; d=google.com; s=arc-20160816; b=h7cFhhcyrKoyjZn5+93ly72TxPdzLMcYM37cFMpV/vsHOSwrtqReOXOuADE+qwkuae ws1rRXWDffWtazC8gQSCJTVzWULxq3+45Ypvl1XqWg+1KwLA7EXO7YYuhrOWajrLRXR6 NJMUuzbhC9czNEBpJsUwbYdbEqevOarl8gvk0l2XLkKxpgRcIPpZLSY+ekf2PSWtjE1h tYh5IJGIm/cRp8Eo9sUZsgzCWPBoB+GdvHIUUUKHxqOpGjuyCUBx7fsjxU+0X87r+m2h Dx4sBW2XVJ9420GeswETDEzmaU+OGvNDpu3OvzhGcb93BNZXyrGqdTpjTdACeo3xa6Dz CJ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XXf9bO4GE2XVeQrNXAr+/fAknW4xFbrsY6dyBdtfjtc=; b=N0heIFXyM94qvSMxow8/v9ODHVj8E2HNBmNZl4x9a9XFfWIZuQ3wFXE9DblmwOnytc 2101Mfqh0T0F3uz3eVcD3DMZcVo/FbSch9QFDrDn1hI9yVHjgH12t9F7a/2t4p8DoQ32 vdDh7+8EuHszCdJbvbeUG/w2s39tr39t/tI8pV2avHQ/HUn+B4pWdItg6clT1uYEzYDO DUPheCAYjCa9HDPQOPj+QaZ/qnwXN92oQpx0B49imDanoHT5B7UtHBRkfugApKxr4r/t hhbhhpet9JAWhrfZInHSOV4dqam2QmTqmMFAmHbd2ZlOALFishYCCdntHENVjQnjSZSb AHcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zm18si1163157ejb.309.2020.11.04.02.11.26; Wed, 04 Nov 2020 02:11:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbgKDKJ4 (ORCPT + 99 others); Wed, 4 Nov 2020 05:09:56 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7048 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbgKDKJz (ORCPT ); Wed, 4 Nov 2020 05:09:55 -0500 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.126.203.215] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- 2.7.4