From patchwork Tue Jan 23 07:36:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13526929 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 D7F8CC47258 for ; Tue, 23 Jan 2024 07:36:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6A1756B0080; Tue, 23 Jan 2024 02:36:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 65E576B0082; Tue, 23 Jan 2024 02:36:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 51B186B0083; Tue, 23 Jan 2024 02:36:23 -0500 (EST) 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 3FEE86B0080 for ; Tue, 23 Jan 2024 02:36:23 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1B08FC01D9 for ; Tue, 23 Jan 2024 07:36:23 +0000 (UTC) X-FDA: 81709767846.16.45CF75A Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by imf27.hostedemail.com (Postfix) with ESMTP id 7AA4140005 for ; Tue, 23 Jan 2024 07:36:20 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b="XJBKv2O/"; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf27.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705995380; 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:references:dkim-signature; bh=EfuS2Tt+4WI6cHfeaps0egdh+qgxoxbNgqJrrsMe6q8=; b=0T0hlcuGSyZQGa9OwkuK6gSl+40l/Vw6l0enJ9+hfqiKKy7I7oz41SKr0dOZuAb2g2G8xI sF6J5oG2MfDMRz9j6K4mBBmvSt37zJ50hYHzLWXO3qBxaZ8rxHl2CJegUp9NJs1GAeXnMM 7Uqjxks/8PDuLUn39QLU3nXpJjBZxaA= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b="XJBKv2O/"; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf27.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705995380; a=rsa-sha256; cv=none; b=NXt7r116MIG80gu90lA0LfpIa2JOdYUHlRhkyjIS0+QJncDNiKuParWdEXfNOE/VE8bcyo Grzv3TkOMQsPcy3NRwkHvYBaNPLS2gJ38vXy47LrvMXf08gx9oyqzYs+/fYCi2LxabHce2 SS+Zq02c+MOSvwUjZmQg4WjcV1voyVA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705995378; bh=UjyihoPyN6SOPFC4hXvckN7LSDeJ3FDGKGRL79wdbrI=; h=From:To:Cc:Subject:Date:From; b=XJBKv2O/lbViF3stGvXrhrgD6QAkY3LkvT2znhJvBl8JwewmKA+W0sDCCN4Tnsm6c D1nUuRlb5LJ1l5RbF72JT4R0Mby8v1FB5Fpw0U2caKcFedUzPcv0AV6rKJEnUtTlGO 29DCJMwu7QHL9vYlv7mJ151n+deebekBZGkRqXpAhcm0EyC4GG3Tcbux290jKc3u/e epJslm+MhXD5jwfuncizu2PfPCTAR1vQtxUYNFP4y9ui8vwDtcGlwUOUBoZjWW3DpW hjCSW80jWtpD7ohV4IR2LR+61z0XAUPoOhNBCL+dPDvVMFch+iBex9eUAojH5tTPRS ju3FJeDlSJWJA== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 91D033782039; Tue, 23 Jan 2024 07:36:16 +0000 (UTC) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan Cc: Muhammad Usama Anjum , kernel@collabora.com, Ryan Roberts , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] selftests/mm: run_vmtests.sh: add missing tests Date: Tue, 23 Jan 2024 12:36:13 +0500 Message-ID: <20240123073615.920324-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 7AA4140005 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: t37shxuagd6dfq3cw8ad9ibzwewc1goj X-HE-Tag: 1705995380-15221 X-HE-Meta: U2FsdGVkX1/wH92cnUjQx1dBaPvVdUrQyS34l4+3gj4v4fxwd5bOb45rdqAD8qZg5lrdGDPPVfXlXijsVYeO2RfFt2ocWz1OOk1TnQSAOHOo0f7oEVS0cyEF4cEhy3p1NX8RGndBXnJLjI6vvCROYfqKVQWTxB8Zjr7k4+KyqaPtnDjsb6snUXkDQMTJ04pWa9BIkPIeL+7XgDMHNQw3AigUMl2YljWnw8qKo7mowaCMMnXVfIDZXb1+FelYbM2GBofZQmpXCve/ctP2Hc+o/cSXEihcinHoAgZqqdg0AyShxuwWG6rlb5Q9uE6+3pIUFPGuRp+Ez0l52FcvtGAsxCOyloQKiH3NIOFz2wrxWjoQXKv+nCN90YqMD+OvJBRHXEpjzlUB9iQm+9iETlOrpXeh+wSVwPjVfGnSs2WYSb4o1i9BXR7ew8nE3yYpfSoAbf4pyDhL0EOLHr2s2GrpV4OtwHpGdA3fBmd5oL78+CbsYGCJYxWL7zPjfhtNOGyNhdFC94aAkjbyAFpGBo8mfxYYSMgewA2V8qJflk1Z3aI1MF0tgz0CU9evCl+CTFrtri/vxVG8idIFUqZD0yJgOjtRRAj5qcwd/ccD0iANSyd9KSQQeRlzG9kEYdswtgGYus88XnXU8Yq9XJ5vmhZIbcdV9t3svtXw+P9b8qXFC+aLYl0f1b39Gv3GMPGcOuz1zczr7I/OvVg38sE4mJqs+nvP7yDHTGtSN7gvB942T/idBat8jOW2DmopU8dd4KwUsEk7T495HcqUtNqXn19VJwCWV1HjaPXiJzz1g89GjMDThrplRItFNgfN9WmqHFN6DI9u//i5ZlYtEJ1ToDGBh1M9cjeOtxfnpzPgwhS+gpY7X6EztoThy4sNslSESzSmgiFQ6RsWm7MPQsWGlJssa9lukFlHSJ3V9v0sFmwN8jjfSlf5j76jTLcCQu8k6H956SfeVxzHgl53MowwBvB yzDHYapb 97EFpw3KP77mXTV7g4c6QXsQArHpt/EhEIm2KyMPFdulnoC0bX/FzEL23aa7rhtuhpSCitf+BNZyu4pHNdBb/VcRfPhqGmSJGJRkGHCUQ9mRQgcJzbDHo73KiFMrHVhR8ZmyMP9lcQWesI6oEpuuAnory661INYHXbfFk2WwjMBDrfmsnetHqgNq2H98OTy91bdW4E5GY6GvJVe0IAOosyoJg3heIn6pte5wVlxmvedPCuCJae0HPva9uBg5e2VmM+HmxrxMqcBOuSCvh5BpOTd7R0eUx5wm39A+GlE2Kge1Ig8IdiNUqXgDIlFxVv7zKPKeeop5+Yn8IQOT74ovYuEEoclaZz5PxVTeBcZ9EMdXuPwc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.003381, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Add missing tests to run_vmtests.sh. The mm kselftests are run through run_vmtests.sh. If a test isn't present in this script, it'll not run with run_tests or `make -C tools/testing/selftests/mm run_tests`. Cc: Ryan Roberts Signed-off-by: Muhammad Usama Anjum --- Changes since v1: - Copy the original scripts and their dependence script to install directory as well --- tools/testing/selftests/mm/Makefile | 3 +++ tools/testing/selftests/mm/run_vmtests.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 2453add65d12f..c9c8112a7262e 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -114,6 +114,9 @@ TEST_PROGS := run_vmtests.sh TEST_FILES := test_vmalloc.sh TEST_FILES += test_hmm.sh TEST_FILES += va_high_addr_switch.sh +TEST_FILES += charge_reserved_hugetlb.sh +TEST_FILES += write_hugetlb_memory.sh +TEST_FILES += hugetlb_reparenting_test.sh include ../lib.mk diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 246d53a5d7f28..12754af00b39c 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -248,6 +248,9 @@ CATEGORY="hugetlb" run_test ./map_hugetlb CATEGORY="hugetlb" run_test ./hugepage-mremap CATEGORY="hugetlb" run_test ./hugepage-vmemmap CATEGORY="hugetlb" run_test ./hugetlb-madvise +CATEGORY="hugetlb" run_test ./charge_reserved_hugetlb.sh -cgroup-v2 +CATEGORY="hugetlb" run_test ./hugetlb_reparenting_test.sh -cgroup-v2 +CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages) # For this test, we need one and just one huge page