Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2639508lqo; Tue, 14 May 2024 05:14:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJYJxT2whd9iYe3PxTgYRyabQI4l55Glwof5N5ndMllvHgxAePnS1hOVMqVV8MbgUgRsEf3wbe0g/76Xuui94NjOdNc9fdp6ytwfbv7A== X-Google-Smtp-Source: AGHT+IFgatmUNnCdSITXVK9zDyaNHvoTPGd+yLJGlEM+nU4citnx6gyJzoQ3HsPBa7G6TcIvEQZ9 X-Received: by 2002:a17:90a:aa12:b0:2b4:1396:6d3d with SMTP id 98e67ed59e1d1-2b6c710ff79mr19414302a91.11.1715688893246; Tue, 14 May 2024 05:14:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715688893; cv=pass; d=google.com; s=arc-20160816; b=lbvu4LaDpyYk2S413R4HEW17YEusIcBb11fv9IV7W/KQYhF+fU/SF2EwswkNxKoCO7 cNd1eWqIfn/Hir0T0MbBVM9C8pcuN99xuhc15ChOnOvzq0ORbxbD33yCbU1Km1YF8WOv o/KkOE7ra55Wl3o5JyboP1sIgiZE+TSeYlfTED2oRRy4UbFU2tOdBlq+htz0p6jtmAEU IlubtSWd2ZzgxvXqan9asUPtnf/lDsK5wXVKGK73EdGfK5txXRjWrQzTssCF27ucNkFV yeJm9ZjveqQkrXPndA76G3ymdIYh9awcmeYk3nZj0FszI5gFk4Bym0JFUXdfUkHhPP5H lSLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YO7trpC8BvTEtuRRF2ew7TIKuPNoSk7JVuBOlGxxA6Y=; fh=EXeh0QXD8yIO7zRa1z9rYWjTgJJfRYmA7W9VW6WYneg=; b=ppW/rodKqsoCW6ofNK9s2mpWjaH2R0Lx2U17qRHVNIwSy/vt0A8sXs7tfX31d3IiLI blf27/8OaX6BmVFEwbbprvmwQNl2ClQbq++72B4xdEkdNLfUQ9lZArk/ErMDhFjzgDJX D7c0ewWvAJupYrEXbYUl/PwTZejRD9iHp4JiAzeyYm05IoI0LW8TE4+Zttqlcq6ziHzE dJdOGmy1QYredcXsxaOH6B+OR7KbPQB+O9YtI49SoQMyYdIO8LnQ56vhJtnkw3oQz0if G/aFjpTFNcN+YS25AWpjQqJCtMuNhxOd8vbUlM/urKvAX63uUCM+W4sbCqMiAn8oAHL6 f8kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eivisrfS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628868d31si13653708a91.3.2024.05.14.05.14.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eivisrfS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BFFC2855A9 for ; Tue, 14 May 2024 12:09:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21BA63D0AD; Tue, 14 May 2024 12:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eivisrfS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44BA1320F; Tue, 14 May 2024 12:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715688568; cv=none; b=nSIvXk2WDPFW9ns2KfKMQjwfvT+KsiXtZDIjRm1v1aF7fY+4x+EXJP6p224LyF8HEJ0f5z2yXDJPqVIUfSTSgGObGAIBGFrfRIUUvBPb0oKfubQLLXIj3SsL6xDBWtEUdASmSouTE9ou6ylxMU0XmpVDY8pASfvpEMIk8QpxFRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715688568; c=relaxed/simple; bh=iXjrw2SdjuQ3DLboGS0Vp8JyExJQR3Gg2I+FL4ICjZs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QEHxHXyC+mZAown/6Ii30x8wGsFMgQmvXFjSOwD8g76+IBiZu8l/0GfHo5jxzqsYAq/ybPSFPht4yuaiXpSa/MEx/i6/9Uv8k2YyvgV1s+1d8ULsjH+iwxPrlCsmrC/oJUpQ5zyqM3w0w5QFQ102y5kdoc1s0aGGz3QWlF/qg88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eivisrfS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 575CDC2BD10; Tue, 14 May 2024 12:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715688567; bh=iXjrw2SdjuQ3DLboGS0Vp8JyExJQR3Gg2I+FL4ICjZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eivisrfShAh0GBBOLjm2tGNzmKyE15omAS09heBkU2y8ELEp2QGdrtis7yKHrmr6b y7aH9XkMGAVzI0QP+34bZRPgVqb9lph+U1GyQwiMp5E6hWVIQgmFGd/0Nq/NiDBfMC 9NIrp4PUNfJrNUNh6JpEzgj3Q0b2r8lQdomB8QhWI+IGQLXcJL+fMKla5WRJws1qXl tn5+MGBZKFROpz8dSloGP+UyNWQ/9/Ry4YFA+3uPlshIISMIPy2/F13iarsH/Rgi0Q xX9n1/nvRcrl/ud2Ze/cHEOL5vX1JCJhBKcDkuePbUAtT1gbW1JYW70hPHlKkxR2ca s9hSIvbAH/l2g== Date: Tue, 14 May 2024 14:09:25 +0200 From: Frederic Weisbecker To: Valentin Schneider Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" , Peter Zijlstra , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH v2 27/27] context_tracking, rcu: Rename rcu_dyntick trace event into rcu_watching Message-ID: References: <20240430091740.1826862-1-vschneid@redhat.com> <20240430091740.1826862-28-vschneid@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Le Mon, May 13, 2024 at 08:40:42PM +0200, Valentin Schneider a ?crit : > On 08/05/24 15:59, Frederic Weisbecker wrote: > > Le Tue, Apr 30, 2024 at 11:17:31AM +0200, Valentin Schneider a ?crit : > >> @@ -228,7 +228,7 @@ void noinstr ct_nmi_exit(void) > >> } > >> > >> /* This NMI interrupted an RCU-idle CPU, restore RCU-idleness. */ > >> - trace_rcu_dyntick(TPS("Startirq"), ct_nmi_nesting(), 0, ct_rcu_watching()); > >> + trace_rcu_watching(TPS("Endirq"), ct_nmi_nesting(), 0, ct_rcu_watching()); > > > > Ah the initial string was wrong and you're fixing it, right? > > > > Should be a seperate patch? > > > > No, I'm just creating confusion for everyone involved (including myself) :( > Dynticks start when RCU stops watching, so the naming logic gets flipped on > its head. > > If I take the original comment from > bd2b879a1ca5 ("rcu: Add tracing to irq/NMI dyntick-idle transitions") > """ > as argument: "Start" for entering dyntick-idle mode, "Startirq" for > entering it from irq/NMI > """ Oh my! > > So here "Startirq" means "start dyntick mode from IRQ". With the name > change, it should be "Endirq", since RCU stops watching, from IRQ... > > I know, a lot of confusion for 0 functional change :( Ok your change looks good then. Thanks.