Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp336300lqr; Wed, 5 Jun 2024 07:32:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr2gAnVIoSPnl+7LXeP9v85JnNA867BcEAqV4ciTil7d98MB9OSiTWE7ujOoVMnYq//6dBmQvxTq+EDaDlT3NZ4Wgu0Mvw4MEDmZLFYg== X-Google-Smtp-Source: AGHT+IHHJQidAXYA/uMgC3KBlOMtI7SxCepfbsrgWcwgme8LpBT99z36ICJ3x8Sqd2z9jMBeNeFy X-Received: by 2002:a17:902:e811:b0:1f6:6900:5946 with SMTP id d9443c01a7336-1f6a5a7b559mr29094675ad.66.1717597961995; Wed, 05 Jun 2024 07:32:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717597961; cv=pass; d=google.com; s=arc-20160816; b=fNutw5nU1JZ+EZOw/U65jBIFd30ldZmVsAFltYI+HPCpz6cD71pW06pLBwND2+o/sZ NcRzfaVpB6zMhJ4kFlSnRg0ytqEbyc03Z0hezwPdale5boN6PJe1LaH2Ah4jgFoJ0ZHv Mz90cC1c72ANfYM7UVZQQZSwudVF9IPpnImXTdPnbR/JeGo8Hmy20h4n4k0bjWlCS7cU loHfZyo+1a43ODNy7YQXnupEaeKmt7hwLXZ81lIhhyeJtDTLikVson14ARL7Fa1sJ+Fv B1gjTE6Pl1E0+ZWsbsHBt9VDXQY3fbiPdeSNCJi11aEtpRXR0hkxoOERZZUf7gcTt7hU Ui+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=UZw8IvRdsWkyDlYMhrpjzWc5ACFxnGYU+DRsToirYWU=; fh=WdJTzcKHC8ktk8y0U/4EQuOcdeMySvxPUHN4GuE6Cms=; b=E/S1N9nk6EofwCZwhkc/vcqIAGUGzR1cWoKSYD4AdgRO7VqGp93+ng/0nwoCaBj4g+ 2nZz2FoWLLED4/jBVck0taWZheP9Rxq03zd75a4goJ1ruv/KGshykp6127ZKMYxbm5GL atQ2u6/vtegEPnsh3woPyQqz/xxkLSeKPgkEhUFJY505erEV9cJZ5ZJJok25YAsLUah5 2EpoNCSMJCmOGJC63ljvsKmuZN9Jqe2GYX6ghHlzUwa6sZwj8w40+NuTsVo4H6OS8YHf buMRYgXC/yH1gmyvQy74EWV4mfJBalvHcLSAUXamFcxLgyOC+UD/VxYor5fTjzrKx5k1 9nJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-202765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202765-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f67a2cee7bsi1160515ad.568.2024.06.05.07.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:32:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202765-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-202765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202765-linux.lists.archive=gmail.com@vger.kernel.org" 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 B2D4C2869AF for ; Wed, 5 Jun 2024 14:18:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE651B95B; Wed, 5 Jun 2024 14:18:37 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00DD56FB0; Wed, 5 Jun 2024 14:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717597117; cv=none; b=FueftfX4pRD7SKdTqiUFEX41LKjVJp7voyqm1FNuuiMn7zwQLFAA+3U4B7Lv3wX011kMmf1q4MD6r8IHias0SwG4WXqZIHvQaa8xpGyYRLL2NGB+oaL/tsXgbAPEf1Ak+3vmBiqUIHabFSCBdkSjnL4odXYi/L4lSjAaWEn5hbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717597117; c=relaxed/simple; bh=LbuZvRIY7fwpTBuUx3Np8cUoMVcmPLOhHPCIl8cD/q0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=j05q/hCXfaPiDiAsPtfYks1lg54nf6FRv62MZZ/JD/5U4xVOQ+yjmK/bviiLMFeuBZ/gp11UEGEjJRgGmW5oAHyNUjFCLKmQafFzccjZsPRTsA+m+qI2B3Vge7/7jxYcUjMeDLP0hrvrciEv3sfUA0d5qt3qdskwDKruCr1NwNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D42C2C32781; Wed, 5 Jun 2024 14:18:33 +0000 (UTC) Date: Wed, 5 Jun 2024 10:18:32 -0400 From: Steven Rostedt To: Mark Rutland Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton Subject: Re: [PATCH 2/5] ftrace: Comment __ftrace_hash_rec_update() and make filter_hash bool Message-ID: <20240605101832.09fb4211@gandalf.local.home> In-Reply-To: References: <20240604212817.384103202@goodmis.org> <20240604212854.725383717@goodmis.org> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 5 Jun 2024 11:15:38 +0100 Mark Rutland wrote: > > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c > > index 9dcdefe9d1aa..93c7c5fd4249 100644 > > --- a/kernel/trace/ftrace.c > > +++ b/kernel/trace/ftrace.c > > @@ -1701,8 +1701,20 @@ static bool skip_record(struct dyn_ftrace *rec) > > !(rec->flags & FTRACE_FL_ENABLED); > > } > > > > +/* > > + * This is the main engine to the ftrace updates. > > + * > > + * It will iterate through all the available ftrace functions > > + * (the ones that ftrace can have callbacks to) and set the flags > > + * to the associated dyn_ftrace records. > > I beleive s/to/in/ here, to make this one of: > > set the flags in the associated dyn_ftrace records. > > ... rather than: > > set the flags to the associated dyn_ftrace records. Thanks. It's good to get a "native English speaker" response ;-) > > > + * > > + * @filter_hash: True if for the filter hash is udpated, false for the > > + * notrace hash > > Typo: s/udpated/updated/ > > ... though I couldn't parse this regardless; maybe: > > @filter_hash: true to update the filter hash, false to update > the notrace hash Sure. -- Steve > > Mark. > > > + * @inc: True to add this hash, false to remove it (increment the > > + * recorder counters or decrement them). > > + */ > > static bool __ftrace_hash_rec_update(struct ftrace_ops *ops, > > - int filter_hash, > > + bool filter_hash, > > bool inc) > > { > > struct ftrace_hash *hash; > > -- > > 2.43.0 > > > >