Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp561560rdb; Tue, 5 Dec 2023 12:59:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6/+mmCtXWQSxP7QRtinIRI3mu4SzXYRcCPgB9OJo7HEiG/EdVoka9b2LnYNCH3ORxMiuD X-Received: by 2002:a17:902:8c97:b0:1d0:6ffd:ceb5 with SMTP id t23-20020a1709028c9700b001d06ffdceb5mr3882623plo.110.1701809955085; Tue, 05 Dec 2023 12:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701809955; cv=none; d=google.com; s=arc-20160816; b=BNIF2dAP5PrnWvCXOCGR+9BX95z8cBkbTZlw8H8rdGmVJoRnHxw0be6EtdYoW/E1MN XOaX+nxmYnRwUxPC7B4fm91pa9wxTBJLmSBgbmi5DhGay3tYi0nXOyAs20GpEIiyS6Q6 N71qVuaCBQr/CRN3hiYrxQugNAFkOyo4ZPm/N+JbSV+RASrOamjIZGn2kXAQTcuGv6gQ a2mlkavq5B/Wg0ct1OEMm4v5HhUAE+HcuoqyKv5uD12fI7fH1Ch8nNxiu9kxIndK277P si+Dfrh0S4RhemUVFj/YycNTvSJ8kl8HRtYJLWyDGPDjVPtbVf7cdlgoA8cdNrLyVJfQ /Rjg== 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:subject:cc:to:from:date; bh=xW1H1wb1VwCmlmwarXuPTSp7Tbg6WoY9H2R+ZK2i3Ok=; fh=7piaXXqFrdylso55bRAOdaQ8fp0BNpZGnXG8XqKBgE8=; b=Be0AHSs+6k+BOb6yGSRGq5iLnEy2PCOUSsuWMGGFAiQeyTf1dV+KZAA7lCx9gBXBZY H1c8kkc7r0tPoA5zPK/TYBYTVJwjFCh92TiCzwcIb++3EQ7+Fpi9BZdINr6eCFsYJjpc onH1qynBt1vBK+Ps8jL51vH7kZTLVEAlyF8p/D3Hh8RVrwMTX9MwsYhlDWx3KpBx4Gxq uiHozXMnKcSe6izKam820rJszL/X9Iry6UNAHETigmkyl8DthBpm07hT1UHE+FYLw/hm g++MA72Q66WirjGYz9VqCbZUNN6/RD64f9WQMvLejNIx3zaVoM5sxT5BzvKJoT2j9YXr DFUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x7-20020a1709027c0700b001d07c2a582dsi5457394pll.507.2023.12.05.12.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 12:59:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B81DE809644C; Tue, 5 Dec 2023 12:59:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345870AbjLEU65 (ORCPT + 99 others); Tue, 5 Dec 2023 15:58:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjLEU6z (ORCPT ); Tue, 5 Dec 2023 15:58:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C12E188 for ; Tue, 5 Dec 2023 12:59:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4331CC433C7; Tue, 5 Dec 2023 20:59:01 +0000 (UTC) Date: Tue, 5 Dec 2023 15:59:27 -0500 From: Steven Rostedt To: "Paul E. McKenney" 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: <20231205155927.4b3b9151@gandalf.local.home> In-Reply-To: <20231202184507.26178c17@rorschach.local.home> References: <20231201154932.468d088b@gandalf.local.home> <20231202184507.26178c17@rorschach.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 12:59:12 -0800 (PST) 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) -- Steve