Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5916965rwp; Mon, 17 Jul 2023 11:29:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEy9/sNemVCtBig3RyOreBcaeeX3K4Vzu1FEmbIM6LBW4KDr5esQcarSstrEC0oDDFaKoCM X-Received: by 2002:ac2:55ac:0:b0:4f8:6d99:f4f3 with SMTP id y12-20020ac255ac000000b004f86d99f4f3mr8349517lfg.52.1689618595272; Mon, 17 Jul 2023 11:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618595; cv=none; d=google.com; s=arc-20160816; b=KZ7eESuCdfbGWZHTdLvJXSspsfG3rQYvM0a4C0CVyDF+GZtjgQ1v3pzvkq27Jvlpy9 gKvtzZEuy0RIumkAMWhwk7UWVeobb71Weo1rhmxWjPmSOJPwlvU3g6LjPi2HHwVO5lgD A1eQy4H5Xwhc9eFmsVQ+mpajxvG+AJgVSa4jV9iWUeDVNy81UH9CFxzAntgZvw+biHPN rQTDDuMRx4p7IFJS+Z4fRdhYVc4orWZ5bYYCeRgCx5GJZkJOz/occmTCBzJxJK524DKJ 3Qxlb5zhgLoUBl2el2Xdrwpre+evRbOcfev8tpN4Io/EG2AptcErzdh7Nuwt0Mqvm0Z6 SMZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gltb8fP5ZEJ8knL5X9I60ggp9Z94+b+cPm4RO3JBXdo=; fh=jTA3dugwq0Wdrs/qMnDmjKj4wBvBc9r9IwapvIfKWx4=; b=VQvgnq/5KdIDxIHCYcK9rokESOHzRGjKdqRLb8u5UHTS7w9Jw4YVnWgYWJijJd5zEt kt29J40L7YIkZUN5bAXdz0el5DMrvx9apbcI3mzMPiULLNgsoM7qtTmUbBbRtXUfJTUf WysQo8Vkxh+Ofibz8jKwN1pCvusxrBOVUGf5zigq6+9Okt+bSKAL0Y600wVADq2T1WIX ugQRmkpQ/R450oW3q1i34Mmbx2HhjZVZ+F00ZJA+FN4k1LPst0T4BZ3t+1nq+xg2l7vd yl+rVx+mSlQAD0zB8tfWTDUIJ8NDcyaShsFtA2WCqFwvB3to1xL0lwQgP/avApo6Nhxp j6Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QMY4aBZr; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020aa7c909000000b0051e0c61714csi13650372edt.104.2023.07.17.11.29.31; Mon, 17 Jul 2023 11:29:55 -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=@kernel.org header.s=k20201202 header.b=QMY4aBZr; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbjGQSYn (ORCPT + 99 others); Mon, 17 Jul 2023 14:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbjGQSYF (ORCPT ); Mon, 17 Jul 2023 14:24:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 503EB10E3; Mon, 17 Jul 2023 11:23:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C118261204; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9D4EC433AD; Mon, 17 Jul 2023 18:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618219; bh=qHIeKT9jqHAeemj/f9dbUhQ4zOrTZrB+KZ1K94En2Mg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QMY4aBZrrRUCDkp25yFUbN9ecihF3hhj4k+G0SJGhTHQHE4JvA09P2JZdqxMZA3GQ zjwdM6yUnHtC8CVn9kCPSP6o4mHgy9sB9NfpsudbazKI+B2DKUVluim6+I13etMeM6 X+O2Qayk/i2EKSKGdBZZ7gqv2POsTGgDJQG3kSK6L3sTIgiwXzo3qk8DtTvWNZLWuX SextQshJLHRa6AstlrXJkDREuVKVtml5Y30LqoZTp7F+3J5JYJJKK4nuGAbkwOYVS5 ZWNFzN60hA16/+b21XbgYq4kcshq7n/Q9P/700BYfjsuD3Dn+8TF5opotQv3vCL4Da dd9WDQmaeREZQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 2DF39CE0930; Mon, 17 Jul 2023 11:23:39 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Arnd Bergmann Subject: [PATCH rcu 07/18] torture: Add RCU Tasks individual-flavor build tests Date: Mon, 17 Jul 2023 11:23:26 -0700 Message-Id: <20230717182337.1098991-7-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 This commit adds build tests of the individual RCU Tasks flavors in order to detect inadvertent dependencies among the flavors. Reported-by: Arnd Bergmann Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/torture.sh | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/testing/selftests/rcutorture/bin/torture.sh index c3190ca9c96f..dd3bfadb0639 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -55,6 +55,7 @@ do_kasan=yes do_kcsan=no do_clocksourcewd=yes do_rt=yes +do_rcutasksflavors=yes # doyesno - Helper function for yes/no arguments function doyesno () { @@ -81,6 +82,7 @@ usage () { echo " --do-locktorture / --do-no-locktorture / --no-locktorture" echo " --do-none" echo " --do-rcuscale / --do-no-rcuscale / --no-rcuscale" + echo " --do-rcutasksflavors / --do-no-rcutasksflavors / --no-rcutasksflavors" echo " --do-rcutorture / --do-no-rcutorture / --no-rcutorture" echo " --do-refscale / --do-no-refscale / --no-refscale" echo " --do-rt / --do-no-rt / --no-rt" @@ -115,6 +117,7 @@ do ;; --do-all|--doall) do_allmodconfig=yes + do_rcutasksflavor=yes do_rcutorture=yes do_locktorture=yes do_scftorture=yes @@ -146,6 +149,7 @@ do ;; --do-none|--donone) do_allmodconfig=no + do_rcutasksflavors=no do_rcutorture=no do_locktorture=no do_scftorture=no @@ -160,6 +164,9 @@ do --do-rcuscale|--do-no-rcuscale|--no-rcuscale) do_rcuscale=`doyesno "$1" --do-rcuscale` ;; + --do-rcutasksflavors|--do-no-rcutasksflavors|--no-rcutasksflavors) + do_rcutasksflavors=`doyesno "$1" --do-rcutasksflavors` + ;; --do-rcutorture|--do-no-rcutorture|--no-rcutorture) do_rcutorture=`doyesno "$1" --do-rcutorture` ;; @@ -361,6 +368,40 @@ then fi fi +# Test building RCU Tasks flavors in isolation, both SMP and !SMP +if test "$do_rcutasksflavors" = "yes" +then + echo " --- rcutasksflavors:" Start `date` | tee -a $T/log + rtfdir="tools/testing/selftests/rcutorture/res/$ds/results-rcutasksflavors" + mkdir -p "$rtfdir" + cat > $T/rcutasksflavors << __EOF__ +#CHECK#CONFIG_TASKS_RCU=n +#CHECK#CONFIG_TASKS_RUDE_RCU=n +#CHECK#CONFIG_TASKS_TRACE_RCU=n +__EOF__ + for flavor in CONFIG_TASKS_RCU CONFIG_TASKS_RUDE_RCU CONFIG_TASKS_TRACE_RCU + do + forceflavor="`echo $flavor | sed -e 's/^CONFIG/CONFIG_FORCE/'`" + deselectedflavors="`grep -v $flavor $T/rcutasksflavors | tr '\012' ' ' | tr -s ' ' | sed -e 's/ *$//'`" + echo " --- Running RCU Tasks Trace flavor $flavor `date`" >> $rtfdir/log + tools/testing/selftests/rcutorture/bin/kvm.sh --datestamp "$ds/results-rcutasksflavors/$flavor" --buildonly --configs "TINY01 TREE04" --kconfig "CONFIG_RCU_EXPERT=y CONFIG_RCU_SCALE_TEST=y $forceflavor=y $deselectedflavors" --trust-make > $T/$flavor.out 2>&1 + retcode=$? + if test "$retcode" -ne 0 + then + break + fi + done + if test "$retcode" -eq 0 + then + echo "rcutasksflavors($retcode)" $rtfdir >> $T/successes + echo Success >> $rtfdir/log + else + echo "rcutasksflavors($retcode)" $rtfdir >> $T/failures + echo " --- rcutasksflavors Test summary:" >> $rtfdir/log + echo " --- Summary: Exit code $retcode from $flavor, see Make.out" >> $rtfdir/log + fi +fi + # --torture rcu if test "$do_rcutorture" = "yes" then -- 2.40.1