From patchwork Thu Mar 30 16:06:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 13194486 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 3E925C761A6 for ; Thu, 30 Mar 2023 16:07:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D5A0E6B0078; Thu, 30 Mar 2023 12:07:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D0A346B007B; Thu, 30 Mar 2023 12:07:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BAA506B007D; Thu, 30 Mar 2023 12:07:09 -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 ABC056B0078 for ; Thu, 30 Mar 2023 12:07:09 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7F4F4A0593 for ; Thu, 30 Mar 2023 16:07:09 +0000 (UTC) X-FDA: 80626043778.07.41C615A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf11.hostedemail.com (Postfix) with ESMTP id 3E54240012 for ; Thu, 30 Mar 2023 16:07:07 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="f/GoVXPE"; spf=pass (imf11.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680192427; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=KQ4ftFOSRnTCxQ3k16FeIYD6t7fNL3xHl6bh3AvSWJg=; b=7H320BlxfPc487laccFLRZA3L06WlTc4dOHWZXf8b57JzNnSgqncyd0mfXKzgUsYo83r7s SKz0pb7MB/2hyoNpIoZorcnM5GNhYjR7vijYAtPUY2JRHrTLekhv6kYCqG043afWx2QfZ6 qsteBx15ZGFcZiSEcci0hDSSin988Fs= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="f/GoVXPE"; spf=pass (imf11.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680192427; a=rsa-sha256; cv=none; b=JHly2nwlWW3+QmDdHQlomEVVwJuQFpCKO5JHs3TdeQOd9Jc6FzHCPZarTkPtIwNuJrKaJ4 nY7E2xc4Ea3meGVpJIsRZECuCMIyB2NzaaIF6bnzFGfq5SKbGBoxucR22Pv5TeI0W8xYA/ x8SjDqsW1fRJwPTDxZLaVefShLKa2K0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680192426; 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=KQ4ftFOSRnTCxQ3k16FeIYD6t7fNL3xHl6bh3AvSWJg=; b=f/GoVXPEF+oLUpvlA9AKUrKnEjPgmma03WQBpFtCMMwaEop/HrJMhe8M82iwRX8oZLryBn SUrpvsBkGjOpA2001q8KGZLiz4mPmy5IKZNYkKcHRfzLCrxPbKthSRzjz/TgdAREeTnDNe vsrQmU14ekVi9E/H0+vL5T1KyZ9qG4s= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-465-A6OFP01lNQOfdVTyxrOBfA-1; Thu, 30 Mar 2023 12:07:05 -0400 X-MC-Unique: A6OFP01lNQOfdVTyxrOBfA-1 Received: by mail-qv1-f70.google.com with SMTP id m3-20020a0cbf03000000b005de7233ca79so6265870qvi.3 for ; Thu, 30 Mar 2023 09:07:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680192420; x=1682784420; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KQ4ftFOSRnTCxQ3k16FeIYD6t7fNL3xHl6bh3AvSWJg=; b=Vk/TQth8S1VT1XCyOSo6AOXRwNwrSjW+3EYXOZVoOGpHGepOfjavmTbLcpMXa0cYDE aCnzyzhyBj0uRCAOLe9/ChGy4FydFOaoaS5Xf3V3kX6K/bW/9AJq2/b6CGSoRLTHeszU kC/TdffQ6Wk7jHA1h5iK9qU0CuHJXDgVFKSQMwdAL0Poy2f/1CckE7wpCmvUZDy+nf+5 6ZKWO+IX7RVTzqQWhH3Uz+yScIvb8Xoj4kb646sf89XETDDVZ7C+dh1TrqQ/Vb5YaOBZ Kk/0e9uu0aWwG++OKNs0PX0zESPzwyPsw1+PycLD/DZwOYYJeK5ZE0brLH8HEDWGXd3D wN1w== X-Gm-Message-State: AAQBX9eOLyFFjhvOqBQEVvssHPZJ9JkjDeTyfWuqDpJQh5zvN+yekGOi gzq+sgCvfywYUghzFLPLJhOJc6J5ULs8zcPfu1lJwJkKEh/K3IYuodwiTK9iDCYSnuLlq2dIRLa h0Sl8QSfTY4UzHjSNBklOfRP5TGJetWxY+Gkm0XQwVr1a6I1n4TCak+JRp1QuKnuZEVbS X-Received: by 2002:a05:6214:509b:b0:5af:3a13:202d with SMTP id kk27-20020a056214509b00b005af3a13202dmr3919599qvb.4.1680192420334; Thu, 30 Mar 2023 09:07:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bLzP4GpcegMpvHKLVfgNmScSdhSk7athulffSgV0YbWPWaz9dWtQYXSRFdrOj4JKqHaphj6Q== X-Received: by 2002:a05:6214:509b:b0:5af:3a13:202d with SMTP id kk27-20020a056214509b00b005af3a13202dmr3919542qvb.4.1680192419807; Thu, 30 Mar 2023 09:06:59 -0700 (PDT) Received: from x1n.redhat.com (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id f13-20020ad442cd000000b005dd8b9345b8sm5531537qvr.80.2023.03.30.09.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 09:06:59 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Andrew Morton , Andrea Arcangeli , peterx@redhat.com, Axel Rasmussen , Mike Kravetz , Leonardo Bras Soares Passos , Mike Rapoport , Nadav Amit Subject: [PATCH 05/29] selftests/mm: Use TEST_GEN_PROGS where proper Date: Thu, 30 Mar 2023 12:06:54 -0400 Message-Id: <20230330160654.3106929-1-peterx@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230330155707.3106228-1-peterx@redhat.com> References: <20230330155707.3106228-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Queue-Id: 3E54240012 X-Stat-Signature: t64eh95uogta6npxzjutmidfbx7ayga9 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1680192427-712358 X-HE-Meta: U2FsdGVkX1+8weBucnaFmKr147669LSRN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PsckSoDsW5+H8O9upUABl/gOEh46WScY2sHoHT0KntxnR2DBhCLFySmZzB62Phfow52r2eHOhBPN4tmYiC0skui4DCRk0WhskVzxZQDEUv9ZLt2yzbNDU1PLFBGDhoXpnuBTJZshuGEb0UylhHvOTMSrJyoY5JpQPkoTm/QxmurEbuvQr1nZyqDTW5IwWCgp+4DenWcOpfhN70MP1D2EfhjWmYMvoXqPc2l8S1HHTfkcpxdtuaIY9s2Hj7RdNrbhcPJG5y0U9qD0T1HMjSk2izEt7opa+H1iZJecHbB/9dE67MmdaH45t5fzKwjOHNIfo1EDOLoN9um+HZ3oEZ56j+hC0skq+ZI1pZbFp/e8R/aalIZWl5US7s1M72z4JgJu9mxPeud8+yxaTdEDmc= 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: TEST_GEN_PROGS and TEST_GEN_FILES are used randomly in the mm/Makefile to specify programs that need to build. Logically all these binaries should all fall into TEST_GEN_PROGS. Replace those TEST_GEN_FILES with TEST_GEN_PROGS, so that we can reference all the tests easily later. Signed-off-by: Peter Xu Reviewed-by: David Hildenbrand Reviewed-by: Mike Rapoport (IBM) --- tools/testing/selftests/mm/Makefile | 63 +++++++++++++++-------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 4188435967ed..47516a78d447 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -31,34 +31,35 @@ MAKEFLAGS += --no-builtin-rules CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/tools/include/uapi $(EXTRA_CFLAGS) $(KHDR_INCLUDES) LDLIBS = -lrt -lpthread -TEST_GEN_FILES = cow -TEST_GEN_FILES += compaction_test -TEST_GEN_FILES += gup_test -TEST_GEN_FILES += hmm-tests -TEST_GEN_FILES += hugetlb-madvise -TEST_GEN_FILES += hugepage-mmap -TEST_GEN_FILES += hugepage-mremap -TEST_GEN_FILES += hugepage-shm -TEST_GEN_FILES += hugepage-vmemmap -TEST_GEN_FILES += khugepaged + +TEST_GEN_PROGS = cow +TEST_GEN_PROGS += compaction_test +TEST_GEN_PROGS += gup_test +TEST_GEN_PROGS += hmm-tests +TEST_GEN_PROGS += hugetlb-madvise +TEST_GEN_PROGS += hugepage-mmap +TEST_GEN_PROGS += hugepage-mremap +TEST_GEN_PROGS += hugepage-shm +TEST_GEN_PROGS += hugepage-vmemmap +TEST_GEN_PROGS += khugepaged TEST_GEN_PROGS = madv_populate -TEST_GEN_FILES += map_fixed_noreplace -TEST_GEN_FILES += map_hugetlb -TEST_GEN_FILES += map_populate -TEST_GEN_FILES += memfd_secret -TEST_GEN_FILES += migration -TEST_GEN_FILES += mlock-random-test -TEST_GEN_FILES += mlock2-tests -TEST_GEN_FILES += mrelease_test -TEST_GEN_FILES += mremap_dontunmap -TEST_GEN_FILES += mremap_test -TEST_GEN_FILES += on-fault-limit -TEST_GEN_FILES += thuge-gen -TEST_GEN_FILES += transhuge-stress -TEST_GEN_FILES += userfaultfd +TEST_GEN_PROGS += map_fixed_noreplace +TEST_GEN_PROGS += map_hugetlb +TEST_GEN_PROGS += map_populate +TEST_GEN_PROGS += memfd_secret +TEST_GEN_PROGS += migration +TEST_GEN_PROGS += mlock-random-test +TEST_GEN_PROGS += mlock2-tests +TEST_GEN_PROGS += mrelease_test +TEST_GEN_PROGS += mremap_dontunmap +TEST_GEN_PROGS += mremap_test +TEST_GEN_PROGS += on-fault-limit +TEST_GEN_PROGS += thuge-gen +TEST_GEN_PROGS += transhuge-stress +TEST_GEN_PROGS += userfaultfd TEST_GEN_PROGS += soft-dirty TEST_GEN_PROGS += split_huge_page_test -TEST_GEN_FILES += ksm_tests +TEST_GEN_PROGS += ksm_tests TEST_GEN_PROGS += ksm_functional_tests TEST_GEN_PROGS += mdwe_test @@ -76,24 +77,24 @@ CFLAGS += -no-pie endif ifeq ($(CAN_BUILD_I386),1) -TEST_GEN_FILES += $(BINARIES_32) +TEST_GEN_PROGS += $(BINARIES_32) endif ifeq ($(CAN_BUILD_X86_64),1) -TEST_GEN_FILES += $(BINARIES_64) +TEST_GEN_PROGS += $(BINARIES_64) endif else ifneq (,$(findstring $(MACHINE),ppc64)) -TEST_GEN_FILES += protection_keys +TEST_GEN_PROGS += protection_keys endif endif ifneq (,$(filter $(MACHINE),arm64 ia64 mips64 parisc64 ppc64 riscv64 s390x sh64 sparc64 x86_64)) -TEST_GEN_FILES += va_128TBswitch -TEST_GEN_FILES += virtual_address_range -TEST_GEN_FILES += write_to_hugetlbfs +TEST_GEN_PROGS += va_128TBswitch +TEST_GEN_PROGS += virtual_address_range +TEST_GEN_PROGS += write_to_hugetlbfs endif TEST_PROGS := run_vmtests.sh