From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0C89C30658 for ; Tue, 2 Jul 2024 23:25:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27EDC6B0089; Tue, 2 Jul 2024 19:25:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 208BB6B008A; Tue, 2 Jul 2024 19:25:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 082156B008C; Tue, 2 Jul 2024 19:25:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id DA77C6B0089 for ; Tue, 2 Jul 2024 19:25:27 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 554BD1A01C5 for ; Tue, 2 Jul 2024 23:25:27 +0000 (UTC) X-FDA: 82296396294.12.45812D6 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf18.hostedemail.com (Postfix) with ESMTP id 18BB91C0002 for ; Tue, 2 Jul 2024 23:25:24 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=i5dxT+c5; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719962714; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=IgT83TY7y3cISmU1nHTHOsjdH4c8nImRrc5m3m6lPdc=; b=Oj7ubiN7OOW0j6SY7+ydiHIr7INTc77iqrUnhvhNvg2QH1VkunkApq/y8wvMmyf+EN6jD3 N7eFVP2HYF+pWZu74wkFM0uhRGUjFczjVu74WtgwC0bYmoh1WqzUsAs426oyMwGH7Ia/CO UiqRfyIzYM97QWP90tXgEpvudbe/gxs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=i5dxT+c5; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719962714; a=rsa-sha256; cv=none; b=wMRTh1oxgUqlYJw8aeB8aiulnpA1pQpkewUGa97VKAdxvUUlUaSlIs82KqIvC2gfyEmkk/ XZzgnqCNruvO1URhLjJKrdLc8wMxLTTA1n6n8Idm5OKK29x/bAIJhAYPSTTeP7ngzRMKsz 0tTDWrwLA2B59aANNjKx6t6V2d5qEDA= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 074B1CE21DB; Tue, 2 Jul 2024 23:25:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34CA1C116B1; Tue, 2 Jul 2024 23:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719962721; bh=snJ1gW7dX8zqfRyagH8cMhyEIKYnDspHshplSlOrO7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i5dxT+c5rSv/i12bnxDufNjLnkdhnzVZP9wg+0pdzma2NZNPZDd5fT+U9O6ZDYuBW z57ItWM2QQgYA9IqYEBd5+zE2pmrd0dW8WvO6GP5+956nmqhr0pfltQdiWZaFNcIjk uDQc4ZsHyTZgEBO8hBYpuCzhnT5hx3nnFuSle8SInuA7zOVqc/SBnDdMIz8/sgFmMg pc7MkQSflSQxrc5ydRab8ICNHAlUsdMIYic0hdwSWMjesHX+vIak9t0E+VsGRZggp1 /9x3wov2vKDl2z/pQOh0R+tS8OdVpT+rl6phbyk0gIHvJOG9+WUtcFvUg1XUEJvG+b 1H+myUYgtqELg== From: SeongJae Park To: Lorenzo Stoakes Cc: SeongJae Park , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Liam R . Howlett" , Vlastimil Babka , Matthew Wilcox , Alexander Viro , Christian Brauner , Jan Kara , Eric Biederman , Kees Cook , Suren Baghdasaryan Subject: Re: [RFC PATCH v2 7/7] tools: add skeleton code for userland testing of VMA logic Date: Tue, 2 Jul 2024 16:25:16 -0700 Message-Id: <20240702232516.78977-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <73c7a094524bdb21e25d8c436c9059820ad82cb5.1719584707.git.lstoakes@gmail.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 18BB91C0002 X-Stat-Signature: 6yszs31exjfm1nw34aq6f5ucti57qwcf X-HE-Tag: 1719962724-832089 X-HE-Meta: U2FsdGVkX1+64iYXV8VyfatEWd47ZPmhPjs03M32SmFcE3AJ3bz8ZSVmiWS4V+XYYTBpo2bFVxy6+zuKDN+zC541RroD9dqWuwyAha0WBr21avIpT2XY28x3PM3xsEVolc3xjcki+ugmy3kjmJXUkBlABHV8rbcpzEtSJ7SSwCvwzFdutZzxlpElGIHmHJsnjvxtUi8668YnmGZ+RgBUWTLtUzdxdAMLVFOruIiKAwN+g+I+iXSLVdNHUj61TOWx3J/h7wQxkoRsWof5Zzp4ZJu9FEARIHjrNrLTAURL7cZOiPW85zddJnUv2LoHSZnWAY6MDPO76XB8QUVGuybL3gKupNvQi4HVcGPQUE013H9XwOvw/cxubVIALa2k2mHjLwgqz0e2hKhZArudyR+e/Fh3nXMcWDU1YqqIIcJYyXCf0EQl44/EeRrHm6a+ea7ZK8Xjgi08xA4dxdUf7dORqPz4n2LMvqj4E80C4GHvY2tro1VG6YGy6ckEN3eDEpKf2kDXxpd7jIGAOg1mcT28wpL/jc8z5HT5e1HkgtRQRSl+foGebrqk3IafF5K47GJdc+6h8ZcwinSPSKSe2ZAw3dbzLPOsoSBjVoSrUY2jIW+CkVUpQVLvgb7pG8i0wm3qqzM8+DPo8dtbb9bwiI4j9xOPAEuF3YkVtcR3JGCw9uEo3NLR+tIWlNdKJgqt64eAcHuZYhMoed8ZErTnLPOakwWKku0gGwL4HQ6zRmW8aJjlHxRlhrcxPdnBTHiWo6NyctVefF2E8hd0GAQpDNQkCCYI79zA27pz1cdnZbs9soz4799DqL03f7JwbkB3HtxZUp/s4a5ha0LGbcOV+ZQpDxBjeMtnT7W1Fpq7nMfrU7Vn15HD5SXZuxgelpM8gw1/pTBAbu+o4kZDFTazaEtWJ6rIo4cFX53zCnBJvJvEKhFxMA6cp3WdJx1Bc6Pqb7OuE13mdKNQhHpFZEParcO hNT/Ho/P dKJyOqLaESH8et62ITTeQz0QH8TTOlWyL9ml1eKMam961Yt9SXIk0zxwZ3JZtcuJdCYxpZDV1zMlJR3JYrl5zpBb6T9IKrMH37LTiboVR+Z7FXmbVBWWFB2Z0sEuM/DtBlpGWO3+xJbq2X7ojZFT80kKzELpLV28kR5iHl37WM/60Cq+VRLyqzNZQzCH2Yq3a9ORBsbEfNrR0YZ+go1YR009QVSYuSpCqtA8MN+Ny0pWceILnRb9+yBsViT1C7ugG8a0U 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: List-Subscribe: List-Unsubscribe: Hi Lorenzo, On Fri, 28 Jun 2024 15:35:28 +0100 Lorenzo Stoakes wrote: > Establish a new userland VMA unit testing implementation under > tools/testing which utilises existing logic providing maple tree support in > userland utilising the now-shared code previously exclusive to radix tree > testing. > > This provides fundamental VMA operations whose API is defined in mm/vma.h, > while stubbing out superfluous functionality. > > This exists as a proof-of-concept, with the test implementation functional > and sufficient to allow userland compilation of vma.c, but containing only > cursory tests to demonstrate basic functionality. > > Signed-off-by: Lorenzo Stoakes > --- > MAINTAINERS | 1 + > include/linux/atomic.h | 2 +- > include/linux/mmzone.h | 3 +- > tools/testing/vma/.gitignore | 6 + > tools/testing/vma/Makefile | 15 + > tools/testing/vma/errors.txt | 0 > tools/testing/vma/generated/autoconf.h | 2 + > tools/testing/vma/linux/atomic.h | 12 + > tools/testing/vma/linux/mmzone.h | 38 ++ > tools/testing/vma/vma.c | 207 ++++++ > tools/testing/vma/vma_internal.h | 882 +++++++++++++++++++++++++ > 11 files changed, 1166 insertions(+), 2 deletions(-) > create mode 100644 tools/testing/vma/.gitignore > create mode 100644 tools/testing/vma/Makefile > create mode 100644 tools/testing/vma/errors.txt > create mode 100644 tools/testing/vma/generated/autoconf.h > create mode 100644 tools/testing/vma/linux/atomic.h > create mode 100644 tools/testing/vma/linux/mmzone.h > create mode 100644 tools/testing/vma/vma.c > create mode 100644 tools/testing/vma/vma_internal.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index 0847cb5903ab..410062bd8e21 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -23983,6 +23983,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm > F: mm/vma.c > F: mm/vma.h > F: mm/vma_internal.h > +F: tools/testing/vma According to the description of 'F:' section description at the beginning of this file (quoting below), I think adding a trailing slash to the above line would be nice? F: *Files* and directories wildcard patterns. A trailing slash includes all files and subdirectory files. F: drivers/net/ all files in and below drivers/net Thanks, SJ [...]