Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp563127rwe; Fri, 14 Apr 2023 07:00:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOj1lHcyPv9NN8lUqZwUvSSg1ZfbwNTTGpreiJryOhKGkmXVgQJd98ndd8GLZvhKdCtQIX X-Received: by 2002:a05:6a20:7aa5:b0:eb:fb2b:5d45 with SMTP id u37-20020a056a207aa500b000ebfb2b5d45mr5110827pzh.21.1681480846936; Fri, 14 Apr 2023 07:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681480846; cv=none; d=google.com; s=arc-20160816; b=GM4G8Getyq4Wa9sE5GJXxPKzsIbo/NywatY23Uaxh9ySfM6K2imCnY9KltZJt+JuMH eqcm2Ht7f4N3mRBd6BUXMV6AJ9Rk3LFhuoqKgL0eiWDJtvJSePEVjEiuwsideASqTxta eCY6w+sqrSrEd6nwcU7XFdGmBruoxefTRjsGCrF+Kx+1u5GsbR2RRMnVrDuMrGx5um2m kEYx740XWaaH9qnaQ1fBZLJiJlppVpNKBdlLBD8EAp3YqVkg+pfZ6dBdxJkLuRj+3K4v h2spZLnJSPsP3IJjzrAq+rF7P8qNDDTa/sa0lezsGuMEb9QJ9NT+P2HcRW5ewNHOeFBQ pVhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8yn9oGKAtbnMyVx5qmj+QwSOhdyTGUCXsEIfV/06ERs=; b=tGkfJ5nKE49JssQpl7Ewt87vhl+tRZ7zoOlMBcDg6fucFpzhanfh+xPzbYWv6GYecQ uxjvuoFhnchY6v9Uph2qNdXhrajVaevDTl5Fl3qOgoqmOTirSfXeJtfBPrYTmiEeZEc0 SxeegpKGftmPCTexm1E1sQvIYE26vTb951WGzGZYecOWw2Kr8oU+tyIehRcjs5+Zy5a2 vijjvi4EAr9M9NPWCbAdMB/mlUlYc+t2TPohe3Loui6V7qy0LgvUGwRvbKOL8my2iKT+ I0Qf/9bYXuUtGb4l1AQTHVWK+/Z5P8Rkpfl4UcEnplh61a8ZTjfZe8QlPoP54+kdj6PT /t3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BTYxOG6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020aa79e44000000b00634e129f734si4431050pfq.124.2023.04.14.07.00.15; Fri, 14 Apr 2023 07:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BTYxOG6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbjDNN5B (ORCPT + 99 others); Fri, 14 Apr 2023 09:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjDNN5A (ORCPT ); Fri, 14 Apr 2023 09:57:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB406EAC for ; Fri, 14 Apr 2023 06:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681480572; 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: in-reply-to:in-reply-to:references:references; bh=8yn9oGKAtbnMyVx5qmj+QwSOhdyTGUCXsEIfV/06ERs=; b=BTYxOG6z7MBchoh03SPscrLhXOLoIlwupkbtADrERENlV52b/tZUFVKLKdE2wxOThiDABW 7X9HwkdJoB27RbwEGZvV99uYvQfgvB0w+s0Y55aMWJEcEvsHVF3lgDKT8MsXavwlX7jXed h/sOHob/mFNGUGeoTe2zm+oGn1yaXcU= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-596--ymmk3GgPKqm8aprbXxh8w-1; Fri, 14 Apr 2023 09:56:10 -0400 X-MC-Unique: -ymmk3GgPKqm8aprbXxh8w-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-3eab4df3ef0so1904761cf.0 for ; Fri, 14 Apr 2023 06:56:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681480569; x=1684072569; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8yn9oGKAtbnMyVx5qmj+QwSOhdyTGUCXsEIfV/06ERs=; b=jvSVq8B3ZH6POhJB5fNdy4M+NGeWNYOxo5kk1y4Q7IWh8f5S+Yw0p3AQFqWgsw/+of 3ccMoQFiXTNOOgZHN1KDbic53LwW3xdwSWHtLT2p0yyOnKtol47JeZ6V4DF3/DaTn7eU lssod5ePq0j9PM6YLPRqpNI4z+/L+ABu1ElNqnZaK9Yg0bbOn4XDdjxS9HR4s1sh1ONL v7H8quUB5e4W4W1ghhWrpgH7N9feJsn5+c/nEu6TWZES7lHBvLktCkp14bv0A9gx1gCW yU8oZmrmUmooFLtYuTg/wQ9tWXpQ6zTXM8fND6z26nDP5QyD5aHWD+3xBgFV8oLNm3cm 3mxQ== X-Gm-Message-State: AAQBX9fVUrlNdPuZ5WQQ74MaVSy+xnkqEGzf+4D3t7L2EK8EJH0e8ufU V5XBN0HiqCT9jSNAtDVZUrpZdxU/2HHNxL72dI2c2sB9xDNXWMKJ9nQjeEE1jU6u9Hzy8Cti6yd wo6xQWrwjdyVrZeCjDb/9Q3gR X-Received: by 2002:a05:6214:518c:b0:5e9:2bad:c920 with SMTP id kl12-20020a056214518c00b005e92badc920mr3648618qvb.5.1681480569714; Fri, 14 Apr 2023 06:56:09 -0700 (PDT) X-Received: by 2002:a05:6214:518c:b0:5e9:2bad:c920 with SMTP id kl12-20020a056214518c00b005e92badc920mr3648582qvb.5.1681480569211; Fri, 14 Apr 2023 06:56:09 -0700 (PDT) Received: from x1n (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id z11-20020a0cfecb000000b005ef5e68b4a0sm92193qvs.90.2023.04.14.06.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 06:56:08 -0700 (PDT) Date: Fri, 14 Apr 2023 09:56:07 -0400 From: Peter Xu To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Axel Rasmussen , Andrew Morton , Mike Kravetz , Nadav Amit , Andrea Arcangeli Subject: Re: [PATCH 5/6] selftests/mm: Rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS Message-ID: References: <20230413231120.544685-1-peterx@redhat.com> <20230413231120.544685-6-peterx@redhat.com> <1a2544eb-7d42-eda3-fafa-9bed1377841d@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1a2544eb-7d42-eda3-fafa-9bed1377841d@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 14, 2023 at 11:52:40AM +0200, David Hildenbrand wrote: > On 14.04.23 01:11, Peter Xu wrote: > > The macro and facility can be reused in other tests too. Make it general. > > > > Signed-off-by: Peter Xu > > --- > > 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}.* > > Reviewed-by: David Hildenbrand Oops, I planned to drop this patch but I forgot.. I was planning to use iouring but only later found that it cannot take RO pins so switched to gup_test per your cow test. Hence this patch is not needed anymore. But since it's already there and looks like still good to have.. let me keep it around with your R-b then. Thanks, -- Peter Xu