Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5923472rwp; Mon, 17 Jul 2023 11:37:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2D7+dZC42zkZIgAwe9przQugvD+1FtNDByyJwaZLdhY7doUTTWyrdKe2jKa5yVsCeBkBR X-Received: by 2002:a17:906:7381:b0:994:577:f9df with SMTP id f1-20020a170906738100b009940577f9dfmr11621971ejl.4.1689619034458; Mon, 17 Jul 2023 11:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689619034; cv=none; d=google.com; s=arc-20160816; b=HL972eOJuq6BH8KUC1/UurzuIhsMFFvO114N2/SJWyncYu3TXwdcA0NE83gqeW5Ekk 23NDZPhZfcQ2zaEB5ABAVXCZhmcPqoX4qy9m7krvF1ngfJXNJSAdkSx4LKnrYqTTpxNc oiZO1gm4mqwm4RLHAY3JEDOmV9ENR6V1rie6Tbs7em6LtZpjnMOYGYL0NhzGg8s0zL+Y EZaJ9h4rNA+xO447CCeYxbfMugmbviDO9gK2NNdMKThnnJSK1HbxrhNjwVGBbD84m92O sSQS3wU8aTo7UhTGi/cJfLsimYH49cNb1lqtGldPb3cCmeWWYQnUefQL0AH/cFQ3/xxy mbRw== 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=o9Dl3jqkdxufjAxdyaJ5YJjeMzo2z7NKMbly2qXCqHw=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=Rkh0jwXJZnxjr76kfsvtYsqE8lB3pUm72lG3sZLHLCofpPq1ftNNTKuyT60lQk5PF9 OzuGPb6DKxdPqnd60qA5ry5IEOmJ3+cepd18tY/csGXWPGQ+3PoU76l1mLxJAlLvYJ1W jPi1VOa8SmY6xgFI+XHOkkzM5Vj8W09pMAEtFBrXwF1RzemFGcd+LhuQCCgI0wXRi2ni TSteKRDpSIhQ7oj4y3mnUWYfn7t6gQWCtcmgXKu1kA6CVuPJnc0cItVX7yZTATz9G1OB xn3/veXVd55byBzyorUMxSFMsWfUizOaG6b0xZuu/5nd/LWUjqUfT4UUYLfrvCLyUiM3 deyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WUE/bRyS"; 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 lu11-20020a170906facb00b0098dd9f4ed69si9817ejb.707.2023.07.17.11.36.49; Mon, 17 Jul 2023 11:37:14 -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="WUE/bRyS"; 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 S230167AbjGQSYk (ORCPT + 99 others); Mon, 17 Jul 2023 14:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjGQSYF (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 AA47610EF; 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 D849661213; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F9EBC43215; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618220; bh=tpSNGTaai4SYfMsF8EY+/TuqmqP8/w/8cn3E8iuGjL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WUE/bRySZD5f6P4vEdRcD4NT2CCcZokn/SYfBfjCGw+h8luuY1SosYpoS2bgHuhBh i9srvlzw2dsX15gD3iLXQoSvy2+ySd36Wr69kMuF9Ihj+7aq6z9cz9vgOCks8QbeFV pviKQObTY7HJbOvSPHSkPkmFejXynnydTVodM8KQkVK6Pj0yd/Maskqkd7Rby/b/OD clcaJzJJMTjWiQs2lby70CEhX1j7OyCnXSUV0uGm72NjifFq1Jq3oRuxC6hVUE5h8j G9bFUf/E/mcz96Cbyumo+wQNtKCbFXBxny//uQzG0Ti0qpM9ExlKQbsFMaLlwHSNv3 Z5dsIQlZe4e5Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3AE94CE0A11; 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" Subject: [PATCH rcu 13/18] torture: Add srcu_lockdep.sh to torture.sh Date: Mon, 17 Jul 2023 11:23:32 -0700 Message-Id: <20230717182337.1098991-13-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 srcu_lockdep.sh to torture.sh, thus exercizing the extended SRCU-aware lockdep-RCU functionality on a regular basis. Signed-off-by: Paul E. McKenney --- .../selftests/rcutorture/bin/torture.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/testing/selftests/rcutorture/bin/torture.sh index d36b839bf586..7917ba9ea544 100755 --- a/tools/testing/selftests/rcutorture/bin/torture.sh +++ b/tools/testing/selftests/rcutorture/bin/torture.sh @@ -56,6 +56,7 @@ do_kcsan=no do_clocksourcewd=yes do_rt=yes do_rcutasksflavors=yes +do_srcu_lockdep=yes # doyesno - Helper function for yes/no arguments function doyesno () { @@ -87,6 +88,7 @@ usage () { echo " --do-refscale / --do-no-refscale / --no-refscale" echo " --do-rt / --do-no-rt / --no-rt" echo " --do-scftorture / --do-no-scftorture / --no-scftorture" + echo " --do-srcu-lockdep / --do-no-srcu-lockdep / --no-srcu-lockdep" echo " --duration [ | h | d ]" echo " --kcsan-kmake-arg kernel-make-arguments" exit 1 @@ -179,6 +181,9 @@ do --do-scftorture|--do-no-scftorture|--no-scftorture) do_scftorture=`doyesno "$1" --do-scftorture` ;; + --do-srcu-lockdep|--do-no-srcu-lockdep|--no-srcu-lockdep) + do_srcu_lockdep=`doyesno "$1" --do-srcu-lockdep` + ;; --duration) checkarg --duration "(minutes)" $# "$2" '^[0-9][0-9]*\(m\|h\|d\|\)$' '^error' mult=1 @@ -432,6 +437,23 @@ then torture_set "rcurttorture-exp" tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration "$duration_rcutorture" --configs "TREE03" --trust-make fi +if test "$do_srcu_lockdep" = "yes" +then + echo " --- do-srcu-lockdep:" Start `date` | tee -a $T/log + tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh --datestamp "$ds/results-srcu-lockdep" > $T/srcu_lockdep.sh.out 2>&1 + retcode=$? + cp $T/srcu_lockdep.sh.out "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep/log" + if test "$retcode" -eq 0 + then + echo "srcu_lockdep($retcode)" "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep" >> $T/successes + echo Success >> "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep/log" + else + echo "srcu_lockdep($retcode)" "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep" >> $T/failures + echo " --- srcu_lockdep Test Summary:" >> "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep/log" + echo " --- Summary: Exit code $retcode from srcu_lockdep.sh, see ds/results-srcu-lockdep" >> "tools/testing/selftests/rcutorture/res/$ds/results-srcu-lockdep/log" + fi +fi + if test "$do_refscale" = yes then primlist="`grep '\.name[ ]*=' kernel/rcu/refscale.c | sed -e 's/^[^"]*"//' -e 's/".*$//'`" -- 2.40.1