From patchwork Thu Apr 13 23:11:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 13210722 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 7C352C77B61 for ; Thu, 13 Apr 2023 23:11:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16512280003; Thu, 13 Apr 2023 19:11:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 115F5280001; Thu, 13 Apr 2023 19:11:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1FBA280003; Thu, 13 Apr 2023 19:11:41 -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 E417A280001 for ; Thu, 13 Apr 2023 19:11:41 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9E89B14045E for ; Thu, 13 Apr 2023 23:11:41 +0000 (UTC) X-FDA: 80677916802.07.EEF1F07 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf17.hostedemail.com (Postfix) with ESMTP id 04DF340017 for ; Thu, 13 Apr 2023 23:11:38 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="UQo/qbNM"; spf=pass (imf17.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.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=1681427499; 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=UrLvr60huy61e3psoajwIv3A4LyU2VRqVkvYCOVTv4c=; b=JhRw8SeqcLJdNQgwZeqK+HXtdmIwqg9mayw5ycpLvNRMjsKPS0/NqlXpBP3Xqqt+VuviU/ 2kjBipSxe1YMggYoA25pLgHrIeeC6DlRFDwfI+hNeHSWce5y+AkOLqrGLCVTei1Qkclykh KfiGOZE8UifqGrbHVNPGKOIt3DYbctI= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="UQo/qbNM"; spf=pass (imf17.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.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=1681427499; a=rsa-sha256; cv=none; b=cG/DIE1VQHfLMr+i0ri1q2h2aEqmwbVJ1y1sO9OabYWKZrVFNVVpzUwdMyjpgRN03ZDctR Fc1qoV+9JOR0aWEYYE8mR0ShfBBOLwYyN2ljm0xGVzXupx3p7gB81sQogKrLV7DyaOCCu9 A76gTaHuGEW6/MA/fm0Ubz7lPgkdchc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681427498; 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=UrLvr60huy61e3psoajwIv3A4LyU2VRqVkvYCOVTv4c=; b=UQo/qbNMePPZCysoONYr3aHzH9ZXTYwsMcJChlKP8uxgRYJfspZN6c/kfp0SG9jbatqoXq MLRTUOEm+ZfoE8STyo0gyiHxPrn9XjLykFkM8uFVl09dMPnFFr9EVHvfxG8UMkaFdTZYFt xhRW58NVH02bzDOUYyWfFx2ljX4PgyQ= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-16-5tB_KRW8Noy4J9axxuxzhw-1; Thu, 13 Apr 2023 19:11:37 -0400 X-MC-Unique: 5tB_KRW8Noy4J9axxuxzhw-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-74acff8cfaeso17909885a.0 for ; Thu, 13 Apr 2023 16:11:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681427494; x=1684019494; 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=UrLvr60huy61e3psoajwIv3A4LyU2VRqVkvYCOVTv4c=; b=YM/NDLbbrURTKP59+Bxf1U8kvYI5hmm13kzN6q9m6agBFdMW2tjYQPj/w9FrjPcteZ J4aE/EZ8Tif0FBP7M/mcbNigoNf7uIJc8a5W+bi7zYNGOe+UuWDIgCs5qVOuWArxb/HK mVKBc8cKQcf+KEG+A4gR67VNibSFI/A9MRDsMjyHVBlpZqeYI0NIaKWvyyywHn2har/V q9JC68RAny7DDyhq9T7WjUnsrp8g4n2jQvI5FbrDf1VQcWocqWANKey+2rSV9vhfgpMp +S5MkYs+i1xyGBStMVJ99/nS7V8Z0M2QJSdhVtXSE+k+GFXAWPrHlQuyk1JNienxZYsZ Wklw== X-Gm-Message-State: AAQBX9etXXvDNHC/vHyncgDTbBlYfg2kzlSvSmnxVsnL7rjmopV8AEs0 Ja3qcvi6MvRncL3g6DsQ9XbAknODd/cddCjmgXiy8ZwqkbNztyRwKXPZCeJQb7l3edZ6Iy8N2oL i2N9Chvr2c1U= X-Received: by 2002:a05:622a:19a4:b0:3e8:e986:b20b with SMTP id u36-20020a05622a19a400b003e8e986b20bmr822633qtc.6.1681427493741; Thu, 13 Apr 2023 16:11:33 -0700 (PDT) X-Google-Smtp-Source: AKy350YyNQPwspj+xj10BFWcJDwoT/zFUFT3us77X7aynWNJPLGIpmq+EZfsiE/QhH18vpRqiooHtg== X-Received: by 2002:a05:622a:19a4:b0:3e8:e986:b20b with SMTP id u36-20020a05622a19a400b003e8e986b20bmr822605qtc.6.1681427493424; Thu, 13 Apr 2023 16:11:33 -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 g3-20020ac81243000000b003ea1b97acfasm612446qtj.49.2023.04.13.16.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 16:11:31 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Axel Rasmussen , Andrew Morton , David Hildenbrand , peterx@redhat.com, Mike Kravetz , Nadav Amit , Andrea Arcangeli Subject: [PATCH 5/6] selftests/mm: Rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS Date: Thu, 13 Apr 2023 19:11:19 -0400 Message-Id: <20230413231120.544685-6-peterx@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230413231120.544685-1-peterx@redhat.com> References: <20230413231120.544685-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Queue-Id: 04DF340017 X-Stat-Signature: bitxamncn53xhsac44zoiu1a8kzn35nf X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1681427498-129109 X-HE-Meta: U2FsdGVkX19hr8OYAJ2ZryVp92eY0P0j5uuxI6qk+6J54IpnH0is3NQ9UU9cffpcV5ZMH8A0G9FiV+XrRmAyDYzTGiyNCkExeEBfgrngCYJhi9QXk3PGxsAdjg1drml00La5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TBj7d1YtMm5DawzR1OcWPgAQNsbMFyfB/681FpQfQs5dflcNP5+qK//AElE6LtL93iC8xEUMQfS2EKv4UuZqKlVJPXa4mtGhUTW4Bo0+HVuojmzJzdezmJZBriC+CEHYo2olxeUP32+bij4GLR/Wz1AIxYjBZz8ddLIZJndm3N0MosRzV88+RfdJAa6oUV+WaTgucOZxG6vfQ2DSVtNOA1vya4KQBrF7EeKamV2hTco042zx4LzRHpezn+d7zjpqhrBz8IDyOg+lfulaRg2+W54WMP6HkTBw5MC+c= 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: The macro and facility can be reused in other tests too. Make it general. Signed-off-by: Peter Xu Reviewed-by: David Hildenbrand --- tools/testing/selftests/mm/Makefile | 8 ++++---- tools/testing/selftests/mm/check_config.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 5a3434419403..9ffce175d5e6 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -161,8 +161,8 @@ warn_32bit_failure: endif endif -# cow_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. -$(OUTPUT)/cow: LDLIBS += $(COW_EXTRA_LIBS) +# IOURING_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. +$(OUTPUT)/cow: LDLIBS += $(IOURING_EXTRA_LIBS) $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap @@ -175,11 +175,11 @@ local_config.mk local_config.h: check_config.sh EXTRA_CLEAN += local_config.mk local_config.h -ifeq ($(COW_EXTRA_LIBS),) +ifeq ($(IOURING_EXTRA_LIBS),) all: warn_missing_liburing warn_missing_liburing: @echo ; \ - echo "Warning: missing liburing support. Some COW tests will be skipped." ; \ + echo "Warning: missing liburing support. Some tests will be skipped." ; \ echo endif diff --git a/tools/testing/selftests/mm/check_config.sh b/tools/testing/selftests/mm/check_config.sh index bcba3af0acea..3954f4746161 100644 --- a/tools/testing/selftests/mm/check_config.sh +++ b/tools/testing/selftests/mm/check_config.sh @@ -21,11 +21,11 @@ $CC -c $tmpfile_c -o $tmpfile_o >/dev/null 2>&1 if [ -f $tmpfile_o ]; then echo "#define LOCAL_CONFIG_HAVE_LIBURING 1" > $OUTPUT_H_FILE - echo "COW_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE + echo "IOURING_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE else echo "// No liburing support found" > $OUTPUT_H_FILE echo "# No liburing support found, so:" > $OUTPUT_MKFILE - echo "COW_EXTRA_LIBS = " >> $OUTPUT_MKFILE + echo "IOURING_EXTRA_LIBS = " >> $OUTPUT_MKFILE fi rm ${tmpname}.*