Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp381893pxb; Wed, 11 Nov 2020 06:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcAImifKmyoQT2ImeiOe9zOgJCa4GFUVRWTunrTO3kuv9J0nhWLZQXWTliVyP3jUcdhSFm X-Received: by 2002:a17:906:f84f:: with SMTP id ks15mr24433853ejb.337.1605103894606; Wed, 11 Nov 2020 06:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605103894; cv=none; d=google.com; s=arc-20160816; b=bFc9KNszPr7WpLDHjUwUGL4J0KJxpqL7SuO8K7LSlG1nrkC86vrfcsmq20s7X2thQ+ Ply76fJ/3m06rpR742Le3y4zG66ySixrbCJmdzBX3vj/j/I7eFACy/gXmMM2u22/DQgG bgaFd1Q46z83mpY68b4NOxLG7XgrV2otXcBXJ/pXKqLNk0BSaLRiQeIdPN2cj3F5TpiH ao2L6KIdbhBAcowgeLYlRxHv7jTFMvyHrvKk6hfNHpidnpu5LKCs+lnwX8X28NgX/D8O 6Mib8DDDFySqdMzLSFldTzioof0wPsDgh9MxtBMr2KOHYmjzD2rpHDcg5hJng+1mJZEc l+GQ== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=p193/gfZhwMwQQgjZComuF01Y8jmSrOLDTP+qjDesEs=; b=EQmWNeDV8ebQ4W5/CkFoK4pZ2Gh4G2neyivMwo4L8tiUcOXHr3eNgelXkTCLaT3RQR fYbLpGjIPgP9E48Jm+skg4yTK3/ObzdX8TC4Rxn6L1MDjA5oihrwR968XgqcFzW+2iIS VSodfU9GJTnC+aq53O5P1sMgWcvj1hdgFbFVnYjmq6u57ODUD3CG7w+HzOQ9cprjMr+a T90VE54XGqwLlEBo46WCRQXHc6fEzw7vkDJjvVTO8cut5Gqx8xdRH+TyQBDhhUlCblba YGvMzP6QOgC7zr0M3pFYNd8P/2RSqMuzXaC2bTp86UKAPEi1cThAvXXQzcBQMMki1AB5 BA5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=b9NT2N3q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si1511378edw.271.2020.11.11.06.11.10; Wed, 11 Nov 2020 06:11:34 -0800 (PST) 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=@joelfernandes.org header.s=google header.b=b9NT2N3q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725900AbgKKOJL (ORCPT + 99 others); Wed, 11 Nov 2020 09:09:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726929AbgKKOIs (ORCPT ); Wed, 11 Nov 2020 09:08:48 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2C0C0613D4 for ; Wed, 11 Nov 2020 06:08:47 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id h12so1310742qtc.9 for ; Wed, 11 Nov 2020 06:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=p193/gfZhwMwQQgjZComuF01Y8jmSrOLDTP+qjDesEs=; b=b9NT2N3qVXzD4LHnqG/NOLqlrjMlVJudXJxGsyOtW1KaDBfkAvBtIFnpwASXe8fNtb P7A1uxFU1IzfyywAd5V5igLUBwgaVIAy+oGqzf53b6AkevmEdUbhuumx8MAhW2SgRd7d kb9wx6SHh66wRrmw4TGBEuSeP1Bwq+CMbxzxU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=p193/gfZhwMwQQgjZComuF01Y8jmSrOLDTP+qjDesEs=; b=XL+IWND25ME974wdvWuVfKSU5UN0+eIo1qPhWOcEnADoW/qFsMLVrrAiC90p38Fdih ISGmUJIO3A7pmIyBz3oSzQxmMntTynX86pFoUKzoCT6ZIRWAM0gsoSih1YTK4WR7+RqC red65v5fpeX5ayUmMti67/Dgx3lSfzTzvJ/OSj/SAe6gC22DqsqLC6m8o83pSYEK3KXt ef9LyZXPDejU+bD+eq/g03o8c62D9iQGVGSUEcXd1kqfNCYqdphX1fQuWmdgMXZwTGy7 2024A8jfqlA7Yhz3hfKZYxGyQKm4qYJWxk9G+Tp2mEB5v7FyEhwGH2iJy1Tgi7VFWGFU w9dA== X-Gm-Message-State: AOAM533tO1x1LINVJz+18AThfKd6U+bRnHSA7OdHGcsM6Fo+x0jlN8Ds Bk/2tCy5qBKzXfB7CnQGG/xB00Ssv6Gmbw== X-Received: by 2002:a05:622a:18f:: with SMTP id s15mr22503294qtw.160.1605103727046; Wed, 11 Nov 2020 06:08:47 -0800 (PST) Received: from localhost ([2620:15c:6:411:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id h26sm2129456qkh.127.2020.11.11.06.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 06:08:46 -0800 (PST) Date: Wed, 11 Nov 2020 09:08:45 -0500 From: Joel Fernandes To: Steven Rostedt Cc: "Paul E. McKenney" , linux-kernel@vger.kernel.org, Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Lai Jiangshan , Marco Elver , Mathieu Desnoyers , rcu@vger.kernel.org, "Uladzislau Rezki (Sony)" , fweisbec@gmail.com, neeraj.iitr10@gmail.com Subject: Re: [PATCH v9 4/7] rcu/trace: Add tracing for how segcb list changes Message-ID: <20201111140845.GA875516@google.com> References: <20201103142603.1302207-1-joel@joelfernandes.org> <20201103142603.1302207-5-joel@joelfernandes.org> <20201111003530.GA10251@paulmck-ThinkPad-P72> <20201111084941.1db1b324@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201111084941.1db1b324@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 08:49:41AM -0500, Steven Rostedt wrote: > On Tue, 10 Nov 2020 16:35:30 -0800 > "Paul E. McKenney" wrote: > > > > +void __trace_rcu_segcb_stats(struct rcu_segcblist *rsclp, const char *context) > > > +{ > > > + int cbs[RCU_CBLIST_NSEGS]; > > > + unsigned long gps[RCU_CBLIST_NSEGS]; > > > + > > > + if (!trace_rcu_segcb_stats_enabled()) > > > + return; > > > > Can't you rely on the trace system to enable and disable this trace > > event? If the thought is to save instructions, then moving all this > > into TP_fast_assign() enables the trace system to deal with that as well. Makes sense. > > > + rcu_segcblist_countseq(rsclp, cbs, gps); > > > + > > > + trace_rcu_segcb_stats(context, cbs, gps); > > > +} > > > +#endif > > Yeah, I agree with Paul. I think it is possible to move this all into the > TP_fast_assign. If you have trouble doing so, let me know. Sure. Last time I tried this for this patch, I ran into some issue. I will try again and let you know if I need help. thanks, - Joel > > -- Steve