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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89A64C7619A for ; Mon, 20 Mar 2023 20:28:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjCTU2J (ORCPT ); Mon, 20 Mar 2023 16:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbjCTU1j (ORCPT ); Mon, 20 Mar 2023 16:27:39 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AF534F79; Mon, 20 Mar 2023 13:27:00 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id n2so14789552qtp.0; Mon, 20 Mar 2023 13:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679344017; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=oP+DDhOOPdM28aMhqmlGJ2/+YkBO9E6JeUPqNBtvtEo=; b=DffpttkLpDHILskLvIQMHPLfYpLwJBngYTE6A1FaptZvq4JYEivrt0fuXS1+SRE/vY mzbOmWoLnvU9VdCU9CDpB0wWQXaF6LjEsvaaTgXeXeTC+IoAAaE74OOKrufbYS5EPOmG JjE0E9lwLpW+pVncUtH9Adv7yhoZr18yt4sirY3vhtiGoet2opMfmRXgvZ1kqY5gVrXm AeUoold4UuK17QTl9RCWqVe4vlkhykdWFdsRhD/GJLq25gorO+OkQAHSnQFQzq1wBID/ +TqlPjltuCTAVSXIV1ko0HjbouVEaHu+eiBJVmINrLF887GAqrKCmqh2r4ZnFpqdaAWW zvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679344017; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oP+DDhOOPdM28aMhqmlGJ2/+YkBO9E6JeUPqNBtvtEo=; b=Eu3w5DEQqJg7GhB0Bfg5SpyT+gEulgDjjVY3OGMvVHbKTbF7CzstLGaYEj2O72zyFo XSilng3qJth5KJZ4diq0NnLsamd/bPrYMqfDIFDyD38Sq3X84/+AoxwHVNChJXyxG231 y9GMt9cmBarfKvdbynFvTT/PjIEQUP5RlhBe9aea4zxcErScMvBQbvRa3esAUhnOYdOZ LzOdMmJY+aHtvqgHKQ1a1lvh+8E0/+FzFkMBioBrifRQQsKopCofTqZpxRgv6rfWJC1v zQoEPS1dIbPpki6sy5+gSVyOEMSvn7xrwbEM/EfERDbCcdHl+WPfwV15qUMIe7ohbe9I +c7w== X-Gm-Message-State: AO0yUKX6La2nIdJtj3DN1ZRyLRM+2vrK3CC+Tr5ldFjkkKck+iLm4zmt 6S6eCJGUBmdVat28GZqIGpw= X-Google-Smtp-Source: AK7set/UNEkpTV3rETYJouRrcFk7ijRfWvnS9EqJrRmT/gVpiI3+8RCItBHTJbcSu0J/yDSDMqV6LQ== X-Received: by 2002:ac8:7f05:0:b0:3b6:8b52:1359 with SMTP id f5-20020ac87f05000000b003b68b521359mr1791444qtk.0.1679344017281; Mon, 20 Mar 2023 13:26:57 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id v10-20020ac873ca000000b003e29583cf22sm1709390qtp.91.2023.03.20.13.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 13:26:56 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id F3D4F27C005C; Mon, 20 Mar 2023 16:26:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Mar 2023 16:26:56 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefkedgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhq uhhnucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrf grthhtvghrnhephedugfduffffteeutddvheeuveelvdfhleelieevtdeguefhgeeuveei udffiedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epsghoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedt ieegqddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfh higihmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Mar 2023 16:26:55 -0400 (EDT) Date: Mon, 20 Mar 2023 13:26:39 -0700 From: Boqun Feng To: "Paul E. McKenney" Cc: rcu@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Lai Jiangshan , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Davidlohr Bueso , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Shuah Khan , David Woodhouse , Paolo Bonzini , kvm@vger.kernel.org, seanjc@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH rcu 7/7] rcutorture: Add srcu_lockdep.sh Message-ID: References: <20230317031339.10277-1-boqun.feng@gmail.com> <20230317031339.10277-8-boqun.feng@gmail.com> <15e799a8-0e63-4bd9-9a01-028c9d906904@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15e799a8-0e63-4bd9-9a01-028c9d906904@paulmck-laptop> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 20, 2023 at 01:22:24PM -0700, Paul E. McKenney wrote: > On Mon, Mar 20, 2023 at 12:28:05PM -0700, Boqun Feng wrote: > > On Mon, Mar 20, 2023 at 12:09:00PM -0700, Paul E. McKenney wrote: > > > On Mon, Mar 20, 2023 at 11:19:05AM -0700, Boqun Feng wrote: > > > > Hi Paul, > > > > > > > > On Thu, Mar 16, 2023 at 08:13:39PM -0700, Boqun Feng wrote: > > > > > From: "Paul E. McKenney" > > > > > > > > > > This commit adds an srcu_lockdep.sh script that checks whether lockdep > > > > > correctly classifies SRCU-based, SRCU/mutex-based, and SRCU/rwsem-based > > > > > deadlocks. > > > > > > > > > > Signed-off-by: Paul E. McKenney > > > > > [ boqun: Fix "RCUTORTURE" with "$RCUTORTURE" ] > > > > > Signed-off-by: Boqun Feng > > > > > --- > > > > > .../selftests/rcutorture/bin/srcu_lockdep.sh | 73 +++++++++++++++++++ > > > > > 1 file changed, 73 insertions(+) > > > > > create mode 100755 tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > > > > > > > > > > diff --git a/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh b/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > > > > > new file mode 100755 > > > > > index 000000000000..961932754684 > > > > > --- /dev/null > > > > > +++ b/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > > > > > > > > Could you provide the SPDX header and copyright bits for this newly > > > > added file? For small changes I can do it myself, however this is about > > > > licenses and copyright, so I need it from you, thanks! > > > > > > Good catch, thank you! > > > > > > Would you like a delta patch to merge into your existing one, or would > > > you prefer a replacement patch? Either way works for me. > > > > > > > A delta patch if that's not much trouble. I will fold it into this one. > > Here you go! > Thanks! Fold it in patch #7. Regards, Boqun > Thanx, Paul > > ------------------------------------------------------------------------ > > rcutorture: Add proper comment header to srcu_lockdep.sh > > This patch adds a proper comment header to srcu_lockdep.sh, > and is intended to be folded into 9dc68f40c665 ("rcutorture: Add > srcu_lockdep.sh"). > > Signed-off-by: Paul E. McKenney > > diff --git a/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh b/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > index 961932754684..2e63ef009d59 100755 > --- a/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > +++ b/tools/testing/selftests/rcutorture/bin/srcu_lockdep.sh > @@ -1,6 +1,11 @@ > #!/bin/bash > +# SPDX-License-Identifier: GPL-2.0+ > # > # Run SRCU-lockdep tests and report any that fail to meet expectations. > +# > +# Copyright (C) 2021 Meta Platforms, Inc. > +# > +# Authors: Paul E. McKenney > > usage () { > echo "Usage: $scriptname optional arguments:"