From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D31773E5577 for ; Fri, 24 Apr 2026 17:20:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777051219; cv=none; b=OqB/p9RI5rMVJCtISd1db5tXHjfkflh6FJEkrKhyUxzvxNXsjVJK2oi6ZCYQkDiRS8cXMyv7fYVic6O81ca00xvHzQDdGsYqEd3OjD3UkCisHYx4EwXm2Im4XgJzKQtwdQKmBmOhE9F7tlnFlPJ54fj7k/PtBu3eMjYlNoYsCnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777051219; c=relaxed/simple; bh=PovRbSemUueXoYODEXwd3J9HbPCGsHTHWR7LqTeyPQ8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XAe87IL1jlZPPqSkAhAlKGHAAAzxcBaFytj1zdp//ZUxbtFaRWqLAM+Dzia0beq3OORvZWAjNs7HKKwVlmNI8hSPnKtvcg/ffHH5x75qoVI/BtOOR0xO6T2k+i0LGljGMXdgfYtIJLAarKAQPwjRBOQNXolDM0gg8a2/OQ8ykLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AQMHRQMe; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AQMHRQMe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777051216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XXbdvzcx3AGgA9t9mIdiI3dWKSgdhols9baBSfTZi60=; b=AQMHRQMeRzFLOMQkY9V4rb4fknxViAguWiQ96sooZyC3EPMdMNQ4YDy6YvcktRmEQT/uiL 7uKGNu6/yP4XF0zioBTYF2k72+nWD0m8akCnIbnyUPC+pllZ14AQUQkhlGnf8nj3NcuzEE 7B9FPJB8YLBLbA/rnTvdhpn2IRkWoV4= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-148-I2B_x3_tNJCWRXqmSc85YQ-1; Fri, 24 Apr 2026 13:20:15 -0400 X-MC-Unique: I2B_x3_tNJCWRXqmSc85YQ-1 X-Mimecast-MFC-AGG-ID: I2B_x3_tNJCWRXqmSc85YQ_1777051215 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-8ac566014e0so208493996d6.2 for ; Fri, 24 Apr 2026 10:20:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777051215; x=1777656015; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XXbdvzcx3AGgA9t9mIdiI3dWKSgdhols9baBSfTZi60=; b=j0O85HqH64xTvHdhydJ8ouJpngdFEwcFThLc+JH3JOfIhl1ZZY2lbhqstEl5HKqhpK o4pOOplpJh23fir15CcK3kBskK8XiFJg/HIpSPjMWCHooR+lmTdCipE08j8wLUiTin6j PD/UBLYMUPBpt7td0augmyXjpHu74oIn1jcCPkoD+FkrtwZxKmte6mRDpMy+i5rHBDJU QKmoc4LEwEBkV8pYG4XvniZFj6EJGMG4AllMggJf/A47JqLiL6azstmxahcho04fBcE6 DvuPgMIO1zg24KDODRzXqr79khFZrWDRUBPGBCBpHj7oxuQKnaqsMEe5WNW8HiBzEv1l kiBg== X-Forwarded-Encrypted: i=1; AFNElJ9tfOGWz4BwtprcsjXAFfY65Ms/mefS+0DahFSkCvHXHwoZM0K9JJDgfKuD8xBEbofTS+mcvU03Yyuhgoo=@vger.kernel.org X-Gm-Message-State: AOJu0YyzphKp/rz35BEAjf8bLA4APXk1Cozgbj51+Jr/pDmljZaZlGrS S1zOhggqwdFrycGHDtaza+cjjcV2XSvlCLMmekFXNb2kBqxrUO4EQdehOMj/Bb7B3ItDL4lHliG Eo+3PIZ8uOuP3TBmaMSFpQcPZ8nUn6ZbcUOVzkZtp0YUf63KzMJNo32NonT1dKlAyMA== X-Gm-Gg: AeBDievrdsnz2pI9XkGoRQF2EneQOVqdkcXs2NaGo8eeBrttmGMyuZ9t1PYJFTpScnw pS17t2TwhdYwBt/G5+Z7lgpWd1PI0YVztUgDEYcSiZi6AeUN3IBqm4ConHHls8vzFwx6PIOYb1X Oqtr/gNE61C8XqNAn3Sm46+QOpNfHCx4a66unw6hNK8bM+ZF7W8Nj5dtQe0pxwg7EujI0b30TB9 q6VGV3XbxFH+tK4JrOTuFRg8GL30a1ujgGlrSD2eg9fuoQdOPCll/2roBcqafDuuxkCt3hQLX2B HC6kKOyLF2bQCVQzv9AyoAqGstsT4Dt/nz8Oh7nchOpAiAxQzvTTskV21b/t+XL/i+icQztMiH2 8XG0h9W4EW9Cc+mQGYcQSDJle9DD+hAKihKgl X-Received: by 2002:a05:6214:411a:b0:896:f97c:2f83 with SMTP id 6a1803df08f44-8b0281babfbmr509468966d6.33.1777051214551; Fri, 24 Apr 2026 10:20:14 -0700 (PDT) X-Received: by 2002:a05:6214:411a:b0:896:f97c:2f83 with SMTP id 6a1803df08f44-8b0281babfbmr509468356d6.33.1777051214058; Fri, 24 Apr 2026 10:20:14 -0700 (PDT) Received: from [192.168.2.110] ([69.159.169.238]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8b02ac7834esm185766586d6.18.2026.04.24.10.20.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Apr 2026 10:20:13 -0700 (PDT) Message-ID: <4d2fb0ec-91e4-4902-9d7f-68d782ee98c7@redhat.com> Date: Fri, 24 Apr 2026 13:20:02 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 06/53] selftests/mm: rename hugepage-* tests to hugetlb-* To: Mike Rapoport , Andrew Morton , David Hildenbrand Cc: Baolin Wang , Barry Song , Dev Jain , Donet Tom , Jason Gunthorpe , John Hubbard , "Liam R. Howlett" , Lance Yang , Leon Romanovsky , Lorenzo Stoakes , Mark Brown , Michal Hocko , Nico Pache , Peter Xu , Ryan Roberts , Sarthak Sharma , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , Zi Yan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org References: <20260418105539.1261536-1-rppt@kernel.org> <20260418105539.1261536-7-rppt@kernel.org> Content-Language: en-US, en-CA From: Luiz Capitulino In-Reply-To: <20260418105539.1261536-7-rppt@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2026-04-18 06:54, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" > > hugepage could mean both THP and HugeTLB these days. > > Rename hugepage-* tests for HugeTLB to hugetlb-* to avoid confusion. > > Signed-off-by: Mike Rapoport (Microsoft) > Reviewed by: Donet Tom > --- > tools/testing/selftests/mm/.gitignore | 4 ++++ > tools/testing/selftests/mm/Makefile | 8 ++++---- > tools/testing/selftests/mm/hugetlb-madvise.c | 2 +- > .../selftests/mm/{hugepage-mmap.c => hugetlb-mmap.c} | 2 +- > .../selftests/mm/{hugepage-mremap.c => hugetlb-mremap.c} | 2 +- > .../selftests/mm/{hugepage-shm.c => hugetlb-shm.c} | 2 +- > .../mm/{hugepage-vmemmap.c => hugetlb-vmemmap.c} | 0 > tools/testing/selftests/mm/run_vmtests.sh | 8 ++++---- > 8 files changed, 16 insertions(+), 12 deletions(-) > rename tools/testing/selftests/mm/{hugepage-mmap.c => hugetlb-mmap.c} (99%) > rename tools/testing/selftests/mm/{hugepage-mremap.c => hugetlb-mremap.c} (99%) > rename tools/testing/selftests/mm/{hugepage-shm.c => hugetlb-shm.c} (99%) > rename tools/testing/selftests/mm/{hugepage-vmemmap.c => hugetlb-vmemmap.c} (100%) > > diff --git a/tools/testing/selftests/mm/.gitignore b/tools/testing/selftests/mm/.gitignore > index b0c30c5ee9e3..9ccd9e1447e6 100644 > --- a/tools/testing/selftests/mm/.gitignore > +++ b/tools/testing/selftests/mm/.gitignore > @@ -4,6 +4,10 @@ hugepage-mmap > hugepage-mremap > hugepage-shm > hugepage-vmemmap Shouldn't we remove these? Also, there's a reference to hugepage-mmap in Documentation/admin-guide/mm/hugetlbpage.rst. > +hugetlb-mmap > +hugetlb-mremap > +hugetlb-shm > +hugetlb-vmemmap > hugetlb-madvise > hugetlb-read-hwpoison > hugetlb-soft-offline > diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile > index cbda989f6b6a..a6955660a806 100644 > --- a/tools/testing/selftests/mm/Makefile > +++ b/tools/testing/selftests/mm/Makefile > @@ -63,10 +63,10 @@ TEST_GEN_FILES += hmm-tests > TEST_GEN_FILES += hugetlb-madvise > TEST_GEN_FILES += hugetlb-read-hwpoison > TEST_GEN_FILES += hugetlb-soft-offline > -TEST_GEN_FILES += hugepage-mmap > -TEST_GEN_FILES += hugepage-mremap > -TEST_GEN_FILES += hugepage-shm > -TEST_GEN_FILES += hugepage-vmemmap > +TEST_GEN_FILES += hugetlb-mremap > +TEST_GEN_FILES += hugetlb-shm > +TEST_GEN_FILES += hugetlb-vmemmap > +TEST_GEN_FILES += hugetlb-mmap > TEST_GEN_FILES += khugepaged > TEST_GEN_FILES += madv_populate > TEST_GEN_FILES += map_fixed_noreplace > diff --git a/tools/testing/selftests/mm/hugetlb-madvise.c b/tools/testing/selftests/mm/hugetlb-madvise.c > index 5b12041fa310..898cc90b314f 100644 > --- a/tools/testing/selftests/mm/hugetlb-madvise.c > +++ b/tools/testing/selftests/mm/hugetlb-madvise.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * hugepage-madvise: > + * hugetlb-madvise: > * > * Basic functional testing of madvise MADV_DONTNEED and MADV_REMOVE > * on hugetlb mappings. > diff --git a/tools/testing/selftests/mm/hugepage-mmap.c b/tools/testing/selftests/mm/hugetlb-mmap.c > similarity index 99% > rename from tools/testing/selftests/mm/hugepage-mmap.c > rename to tools/testing/selftests/mm/hugetlb-mmap.c > index f4fcc7c45875..c0d58dd7cbf6 100644 > --- a/tools/testing/selftests/mm/hugepage-mmap.c > +++ b/tools/testing/selftests/mm/hugetlb-mmap.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * hugepage-mmap: > + * hugetlb-mmap: > * > * Example of using huge page memory in a user application using the mmap > * system call. Before running this application, make sure that the > diff --git a/tools/testing/selftests/mm/hugepage-mremap.c b/tools/testing/selftests/mm/hugetlb-mremap.c > similarity index 99% > rename from tools/testing/selftests/mm/hugepage-mremap.c > rename to tools/testing/selftests/mm/hugetlb-mremap.c > index b8f7d92e5a35..1c87c39780c5 100644 > --- a/tools/testing/selftests/mm/hugepage-mremap.c > +++ b/tools/testing/selftests/mm/hugetlb-mremap.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * hugepage-mremap: > + * hugetlb-mremap: > * > * Example of remapping huge page memory in a user application using the > * mremap system call. The path to a file in a hugetlbfs filesystem must > diff --git a/tools/testing/selftests/mm/hugepage-shm.c b/tools/testing/selftests/mm/hugetlb-shm.c > similarity index 99% > rename from tools/testing/selftests/mm/hugepage-shm.c > rename to tools/testing/selftests/mm/hugetlb-shm.c > index ef06260802b5..de8f5d523084 100644 > --- a/tools/testing/selftests/mm/hugepage-shm.c > +++ b/tools/testing/selftests/mm/hugetlb-shm.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * hugepage-shm: > + * hugetlb-shm: > * > * Example of using huge page memory in a user application using Sys V shared > * memory system calls. In this example the app is requesting 256MB of > diff --git a/tools/testing/selftests/mm/hugepage-vmemmap.c b/tools/testing/selftests/mm/hugetlb-vmemmap.c > similarity index 100% > rename from tools/testing/selftests/mm/hugepage-vmemmap.c > rename to tools/testing/selftests/mm/hugetlb-vmemmap.c > diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh > index 61b450032af8..b9e520194634 100755 > --- a/tools/testing/selftests/mm/run_vmtests.sh > +++ b/tools/testing/selftests/mm/run_vmtests.sh > @@ -282,18 +282,18 @@ run_test() { > > echo "TAP version 13" | tap_output > > -CATEGORY="hugetlb" run_test ./hugepage-mmap > +CATEGORY="hugetlb" run_test ./hugetlb-mmap > > shmmax=$(cat /proc/sys/kernel/shmmax) > shmall=$(cat /proc/sys/kernel/shmall) > echo 268435456 > /proc/sys/kernel/shmmax > echo 4194304 > /proc/sys/kernel/shmall > -CATEGORY="hugetlb" run_test ./hugepage-shm > +CATEGORY="hugetlb" run_test ./hugetlb-shm > echo "$shmmax" > /proc/sys/kernel/shmmax > echo "$shmall" > /proc/sys/kernel/shmall > > -CATEGORY="hugetlb" run_test ./hugepage-mremap > -CATEGORY="hugetlb" run_test ./hugepage-vmemmap > +CATEGORY="hugetlb" run_test ./hugetlb-mremap > +CATEGORY="hugetlb" run_test ./hugetlb-vmemmap > CATEGORY="hugetlb" run_test ./hugetlb-madvise > CATEGORY="hugetlb" run_test ./hugetlb_dio >