Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp590670rdb; Tue, 5 Dec 2023 14:01:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdQHIL1Ftrkm6S457lhUiZDc9uRC1sD+lWRhCM/K4F6V9rSIi0rBDcOuI3uGXpGa6NZIDX X-Received: by 2002:a17:90a:2acb:b0:286:da5e:a4fb with SMTP id i11-20020a17090a2acb00b00286da5ea4fbmr1590268pjg.90.1701813695115; Tue, 05 Dec 2023 14:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701813695; cv=none; d=google.com; s=arc-20160816; b=gCn5lmVyskPDwxHDKgiCSXWD6edd311FiqknnRGQqq+rWgrz1U6/jxmdqAXyBdNZFC 3U/AkOktC2whEwKsKG9+7u9XEzu/76ovoMwfbXoJSbfMMBKOp5oLPUjbYZxE2VgUhOCQ wvXBmwbM8E+CU0n3ere9L0DR1VmqyN1B4mK7/VvA2qAsciI1AcVdCjgwq225yd4/u0QV wRlJknGTnrWbC+kfUW9dbJJchwSTYYzWYzesv2J22pzBMoH3uth8VIfrhTGGBoKa88fK AkKNskFADo2oui1uhBFoPemHU/AsblIoqzjoKZTrWqswXcGRQwMTp4Q9c3tUKmpBTBlC EwqQ== 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=EdKj9wScZ9NpCWYzBuHjOeam9FPVXmd9Lgv/0AXTlpw=; fh=oNZTEI/dsuHqCrxO1zrrS0d86lb00OCd9qYnwvQ9LU8=; b=B5UqXEg3vDSAs/c3UVhm1Id5QhziKtpGiRetTD4VXnclNfvBpLB9S574mckabcIEmq 2QWLM4lLJ8iS/sPAZ/q+CTEAkcrRJOb6cEFt2k1g6GzVPjTkFVfIss0f/cnNrm05S/Kh HyNmIglPbjG02wlNL3WmIc3BXOO8d+0x4iootmUnQG+3LEuAY0iKaKaasallXGg4cUA1 ltnJk3pFQI3PBH+FPZGekiuvpnzu287fx02WCez1xHP0Rvn+k7q1WMfGfNDRvCamkFLi lHC2IWF9MLD30uXpmD9se+dLFqfYJ6zJyO5bHYmKG/CBM3ficD38AVsDw5VRNqPpJdj7 ubnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oVNG/uEb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id iq24-20020a17090afb5800b002867594b77dsi5882270pjb.139.2023.12.05.14.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 14:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oVNG/uEb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B28F48077A65; Tue, 5 Dec 2023 14:01:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346327AbjLEWBG (ORCPT + 99 others); Tue, 5 Dec 2023 17:01:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjLEWBE (ORCPT ); Tue, 5 Dec 2023 17:01:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231D51BE for ; Tue, 5 Dec 2023 14:01:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71B34C433C8; Tue, 5 Dec 2023 22:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701813666; bh=3oc7m0TW9vs6E4ZG1Whu8Y/db6CQ79nhN1Ql18OdrjI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=oVNG/uEbLQH1jBzUH0nrTz6FaSVMGQACN+x7r2qwEoxjkAGpTKKsa3WfiH9ivukiP s5qVpR9W7TqoMCFrqV3XNUQ+PYQABXGUQXuzNySMkLfrt9pNet6LJsB3jDn/df0D3L /pzAxB1PT93/EJC4M1z/FoLUsKlSX3gBj7XVfYY55T4yFaFmxrSSn/cs86TAKumiSp fzTH21gtNBZN/x0Ihe+OCifoc4IDfm2SDAIIm3btjVZEKQxpeJBIwmr3PU33fkaWJq 9yQr6fC3S0wdTCLyi1aVLJUlC+b/djsSF7WpIelmWWLZu+xdEJ/neUMU3RV8m1o3NC Zb1+y19hA2HSA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 03DC3CE10B6; Tue, 5 Dec 2023 14:01:06 -0800 (PST) Date: Tue, 5 Dec 2023 14:01:05 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: LKML , rcu@vger.kernel.org, Frederic Weisbecker , Joel Fernandes , Mathieu Desnoyers Subject: Re: [RCU] rcu_tasks_trace_qs(): trc_reader_special.b.need_qs value incorrect likely()? Message-ID: <770fa784-d9cd-456c-b651-221c485a65ea@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20231201154932.468d088b@gandalf.local.home> <20231202184507.26178c17@rorschach.local.home> <20231205155927.4b3b9151@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205155927.4b3b9151@gandalf.local.home> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 14:01:24 -0800 (PST) On Tue, Dec 05, 2023 at 03:59:27PM -0500, Steven Rostedt wrote: > On Sat, 2 Dec 2023 18:45:07 -0500 > Steven Rostedt wrote: > > > On Sat, 2 Dec 2023 14:24:26 -0800 > > "Paul E. McKenney" wrote: > > > > > > Note, the unlikely tracing is running on my production server v6.6.3. > > > > > > > > The above trace is from my test box with latest Linus's tree. > > > > > > Nice tool!!! > > > > Thanks! It's only been in the kernel since 2008 ;-) > > > > 1f0d69a9fc815 ("tracing: profile likely and unlikely annotations") > > > > > > > > My kneejerk reaction is that that condition is suboptimal. Does the > > > (untested) patch below help things? > > > > I'll give it a try on Monday. > > > > This looks to have caused a difference. Although there's other RCU > functions that need dealing with, but that's for when I have time to > analyze all the places that have bad annotations. > > > Anyway: > > correct incorrect % Function File Line > ------- --------- - -------- ---- ---- > [..] > 17924 0 0 rcu_softirq_qs tree.c 247 > > Tested-by: Steven Rostedt (Google) Thank you very much, and I will apply this on my next rebase. One of the disadvantages of userspace-free rcutorture testing... Thanx, Paul