Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp11080pxv; Wed, 14 Jul 2021 21:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxviBAJzO3/4nk8ItEI14F0qzswCpsYGwPHJl63ROBIlEp72mqnWfj0g7GGJUpdsfYmf7xw X-Received: by 2002:a05:6638:16c4:: with SMTP id g4mr1790339jat.86.1626324304859; Wed, 14 Jul 2021 21:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626324304; cv=none; d=google.com; s=arc-20160816; b=xGLaBqJ0FyaXaqHabLR/U2X1mr63/IwMKE5iko7boad0of1P0zKvfa9V5pXb4STR5v RAYKJXuZBwnbRayx9QzZk5dyfpUp0RGGiTpjtnfxCVpi9xdHhK7tsEPm9g6vrt1j2N66 LC5olBwyKLRpYccSCvkoI9WgQykp3ec8dwn5+ZcgVgahQGTY9PD6WT72bC9E0YxxyFkw i0tSTcwQ6hLyjvsK88lfR8/vLO07Ekms2D537vt3Z4COfh7fiOMT0N2OwkXdOMURMfIH GmEEje/4sBdC7dgSM0jYU41ExGL+P01tvzzuyeYR4jgl7+j9T0jFX4TlUm3z8PP7kxXL kIaw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=y3vXmLjfRR4MmO4QuBq8cI5tpKdF/7SijixFCjtN7o0=; b=W5bTmjpw2wplJvl8++hAAsjPnU/nmTD8L793/y5md8FtfC0hZKMeTOLSNKsNMaynqa 4cJvKbOeWOiuEIT60Z9mu10qQ7IOB3RKh/n5fg/G2J6jxwHp8qVej3AwmbAnETBHu5IF U9fQQhfY8aOZZE1G0szX5b6IVz1kkDLUdynRJpxYq6swW3x+q6OqE1yj2q0B+UV69AYd xjwR1qrR9btBOfu33ZcVu7eUnVDmPB7f0M1CYcttBWHJV7Lhpm+SFmQB4b3DDdM5FMoW Y4lW0ITKTQ0Vua5gh/ctt0Ogu36vEbahau5b30EwDrWbLYrR5EC0z5dRJjGqVLXf6pOi BoRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J4LGlPDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si6031713jan.92.2021.07.14.21.44.52; Wed, 14 Jul 2021 21:45:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J4LGlPDK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231823AbhGODym (ORCPT + 99 others); Wed, 14 Jul 2021 23:54:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:45458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbhGODym (ORCPT ); Wed, 14 Jul 2021 23:54:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E877A61260; Thu, 15 Jul 2021 03:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626321109; bh=zIDGkmlUgIcJ8m1hju69tcRsdb7X1rACjkflE4i/S8M=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=J4LGlPDKjIyWxmNQMGq6+gL9PG/MTFmW6So3m0K4toC2VEGpR9B00yqlzZ8RsErDR Jvz+4IB8pweMsC2/Wi19i2C/qhtckSSCkCFpBV9636xsbt1FJY/b8CBAQWTqD112YO MTvV996YH5FzKVNK6nS/yNOOvNmKuCNLbGFTtQh/1Oy0uO/9JRC3hNv+mDLCqPFN+w cvYXFBuGsrM9DRK4EK4nod+ekDx1DZ/nxrPiHDUs/f2UuhyRYB2SlIlrLRfYYndeUN uE/kGRBc1zV9L4/DyyKYkd7g/3aGy141GSaC/u0xnXAyjzrVIxSk6HPF51WfUNKlMw 0Rx2I0qbdZG3Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 90AD15C03DE; Wed, 14 Jul 2021 20:51:49 -0700 (PDT) Date: Wed, 14 Jul 2021 20:51:49 -0700 From: "Paul E. McKenney" To: Zhouyi Zhou Cc: Mathieu Desnoyers , Josh Triplett , rostedt , Lai Jiangshan , "Joel Fernandes, Google" , rcu , linux-kernel Subject: Re: [PATCH] RCU: Fix macro name CONFIG_TASKS_RCU_TRACE Message-ID: <20210715035149.GI4397@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210713005645.8565-1-zhouzhouyi@gmail.com> <20210713041607.GU4397@paulmck-ThinkPad-P17-Gen-1> <520385500.15226.1626181744332.JavaMail.zimbra@efficios.com> <20210713131812.GV4397@paulmck-ThinkPad-P17-Gen-1> <20210713151908.GW4397@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 12:44:36PM +0800, Zhouyi Zhou wrote: > On Tue, Jul 13, 2021 at 11:19 PM Paul E. McKenney wrote: > > > > On Tue, Jul 13, 2021 at 06:18:12AM -0700, Paul E. McKenney wrote: > > > On Tue, Jul 13, 2021 at 09:09:04AM -0400, Mathieu Desnoyers wrote: > > > > ----- On Jul 13, 2021, at 12:16 AM, paulmck paulmck@kernel.org wrote: > > > > > > > > > On Tue, Jul 13, 2021 at 08:56:45AM +0800, zhouzhouyi@gmail.com wrote: > > > > >> From: Zhouyi Zhou > > > > >> > > > > >> Hi Paul, > > > > >> > > > > >> During my studying of RCU, I did a grep in the kernel source tree. > > > > >> I found there are 3 places where the macro name CONFIG_TASKS_RCU_TRACE > > > > >> should be CONFIG_TASKS_TRACE_RCU instead. > > > > >> > > > > >> Without memory fencing, the idle/userspace task inspection may not > > > > >> be so accurate. > > > > >> > > > > >> Thanks for your constant encouragement for my studying. > > > > >> > > > > >> Best Wishes > > > > >> Zhouyi > > > > >> > > > > >> Signed-off-by: Zhouyi Zhou > > > > > > > > > > Good eyes, and those could cause real bugs, so thank you! > > > > > > > > Hi Paul, > > > > > > > > This makes me wonder: what is missing testing-wise in rcutorture to > > > > catch those issues with testing before they reach mainline ? > > > > > > My guess: Running on weakly ordered architectures. ;-) > > > > And another guess: A tool that identifies use of Kconfig options > > that are not defined in any Kconfig* file. > Based on Paul's second guess ;-), I did a small research, and I think > the best answer is to modify scripts/checkpatch.pl. We modify checkpatch.pl > to identify use of Kconfig options that are not defined in any Kconfig* file. > > As I am a C/C++ programmer, I would be glad to take some time to learn > perl (checkpatch is implented in perl) first if no other volunteer is > about to do it ;-) I haven't heard anyone else volunteer. ;-) Others might have opinions on where best to implement these checks, but I must confess that I have not given it much thought. Thanx, Paul