Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp492430rdb; Mon, 15 Jan 2024 04:14:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHw7n0pwXuMaxCvxpS3sa05TafETl2WBN8VuID3fzua9fKLnBX+4clDPYhtcI1/rJxflb1o X-Received: by 2002:a05:6e02:782:b0:35f:97ca:14e6 with SMTP id q2-20020a056e02078200b0035f97ca14e6mr7803774ils.49.1705320897597; Mon, 15 Jan 2024 04:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705320897; cv=none; d=google.com; s=arc-20160816; b=kXK4vjeftrDaKsOcsX0pc80Q/ZTtmdfvKiveH5qUVuwiuF9TdnzIkDC5FjJrD5y4Aa +9vr6Ci9t3ctkqe9n8EhcS+xAaleDTY4+IypcDWe9GE4RP1Df2oXJzcD3VoDUI7dVmn1 K+jTO1wecAYTlA2lf8plFXrp+oAmvheMoFK5kSAFdbyl15Wfo/wlgx20Epq/Pk9Z2Iii jaR/3yDD20sdE4dsdozYT7sY4CJ2PoyJBW5HwvukRheW66Qd38St2kzFqPmxbP57+08y 9CHJeHAzNPlbZx5XYwUp9L9wPpeuJCPbsd/VsRt6D8DFVYs1xosUKSCquJpv5oCVpslf BtgA== ARC-Message-Signature: i=1; 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:date:from:dkim-signature; bh=Bi4Uj5858V6ni9HWJRDgfoHLGkgl98d9toR5WWB7mEY=; fh=QXEnqGstM/s5WrC/vYrba6wL+TitVrEHrhsVe7/+nUo=; b=CLIrUfwcQMB0PLAnd90irRRsrVQH+JUvagygdcRH/qrtdn3cTtuPQIm73AWTvu0Ail wV3WZq/HEKhYixRjfGbXBwFxz1rsnPSjQYiaINWhyTHjh/D94w5nAqQy0vvCcMCplMg3 kUZ5gb2+2UB63u0k0dDh1pHkewEBdo94RBhMpPPJQpZ2UnIOfvVNU9xkIXQ1ifPNCI4r 7+IJFW02m+WhUx06PlZ6ZNl+fIg5N7oC10f7l1P3LcdjQsqZn8RiX6Mty7XgByg7Sl45 P1dqy5h3S8YqhVDwpCmen+2dZRaYT+UqH23xPWKChOZ5fnJLv0X4aJm1sOoxfA71d6r8 A9zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IPWzZQFH; spf=pass (google.com: domain of linux-kernel+bounces-25956-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 18-20020a631352000000b005cde844b5a3si8861708pgt.888.2024.01.15.04.14.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 04:14:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25956-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IPWzZQFH; spf=pass (google.com: domain of linux-kernel+bounces-25956-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 246AB281BC4 for ; Mon, 15 Jan 2024 12:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B25142C69F; Mon, 15 Jan 2024 12:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IPWzZQFH" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6818B2C695; Mon, 15 Jan 2024 12:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2cd8bd6ce1bso42132911fa.1; Mon, 15 Jan 2024 04:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705320886; x=1705925686; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from:from:to :cc:subject:date:message-id:reply-to; bh=Bi4Uj5858V6ni9HWJRDgfoHLGkgl98d9toR5WWB7mEY=; b=IPWzZQFHyY+nqLEag0nORJMqYA/bm2u6HQDpSUi146r9iG6TU/NDjv/u3LHGby8AiE z60t8xylsZ0NjkytHD01MXqJRfQSRq/qOqppCKTeLlK5+UZYkmt7ZP+KO8iEJvHWCUCQ BiCS7s8gHt6LphkpRp8mbx7NjfWnE65AHh7OWD26+Zzd4MCug+gjhvYQZ1X6ktkZh0ZP OvMR/nup6bSez683SvaOmMjE1/sRpwvIUjcUtkjbOWCeeZFvljLRJsYlegnNUdZP9p5f G7HuQs7y9A7TowuX3EFK7naNOfr7DhjD5+ifdVqIVmldjDEFgjVib5H33Nzp8MfZuh8T yq7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705320886; x=1705925686; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bi4Uj5858V6ni9HWJRDgfoHLGkgl98d9toR5WWB7mEY=; b=vpKSxYTeNl27OoYJks+H+UB8ekBSgMZRhtBHqpOEPiEvkUBF7iLO3GnzynVh5lpGpy rKDxjEjlyXibHnYCtPpl+Id6mEY/wP3f6aLj32Az+X4H2gJ6tHI4WNNRdHZF7q+NBAqC IGFGv+3kfiN+RjfjV7ps5NAU2vg4LtL010J5NffJGpS/4tZPqp9EVbDY8284/MoELRZD ZdDemDieRUrsLbXNsjlBS1nEa2uMkGZFSVuzk3D0tBWMBH0MMGcu70GDHl24AdhGDx/k iqaQDYttp5w+aicwECOvkjBdnDTuARESEIYdtbJJaLIjE4hevsbnGmIe4iIOoseWWtYA uM3A== X-Gm-Message-State: AOJu0YzxcaDOlVzVwASPK5IcW8xzF4oybvT947i1K2Cq1pCFw60I+mlf bvzNy4UPaFFJj7FGy07O9ahb1huM3LY= X-Received: by 2002:a2e:3e19:0:b0:2cd:ce2:496e with SMTP id l25-20020a2e3e19000000b002cd0ce2496emr1519246lja.37.1705320886141; Mon, 15 Jan 2024 04:14:46 -0800 (PST) Received: from pc636 (host-90-233-221-202.mobileonline.telia.com. [90.233.221.202]) by smtp.gmail.com with ESMTPSA id i19-20020a2ea233000000b002cd057bbf67sm1398055ljm.133.2024.01.15.04.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 04:14:45 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Mon, 15 Jan 2024 13:14:43 +0100 To: Frederic Weisbecker Cc: "Uladzislau Rezki (Sony)" , "Paul E . McKenney" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko Subject: Re: [PATCH v4 2/4] rcu: Add a trace event for synchronize_rcu_normal() Message-ID: References: <20240104162510.72773-1-urezki@gmail.com> <20240104162510.72773-3-urezki@gmail.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Jan 13, 2024 at 12:20:14AM +0100, Frederic Weisbecker wrote: > Le Thu, Jan 04, 2024 at 05:25:08PM +0100, Uladzislau Rezki (Sony) a écrit : > > Add an rcu_sr_normal() trace event. It takes three arguments > > first one is the name of RCU flavour, second one is a user id > > which triggeres synchronize_rcu_normal() and last one is an > > event. > > > > There are two traces in the synchronize_rcu_normal(). On entry, > > when a new request is registered and on exit point when request > > is completed. > > > > Please note, CONFIG_RCU_TRACE=y is required to activate traces. > > > > Signed-off-by: Uladzislau Rezki (Sony) > > --- > > include/trace/events/rcu.h | 27 +++++++++++++++++++++++++++ > > kernel/rcu/tree.c | 7 ++++++- > > 2 files changed, 33 insertions(+), 1 deletion(-) > > > > diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h > > index 2ef9c719772a..31b3e0d3e65f 100644 > > --- a/include/trace/events/rcu.h > > +++ b/include/trace/events/rcu.h > > @@ -707,6 +707,33 @@ TRACE_EVENT_RCU(rcu_invoke_kfree_bulk_callback, > > __entry->rcuname, __entry->p, __entry->nr_records) > > ); > > > > +/* > > + * Tracepoint for a normal synchronize_rcu() states. The first argument > > + * is the RCU flavor, the second argument is a pointer to rcu_head the > > + * last one is an event. > > + */ > > +TRACE_EVENT_RCU(rcu_sr_normal, > > Can we call this "synchronize_rcu" instead? So people really know what it's > about. > I will update it accordingly! -- Uladzislau Rezki