Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1774630lqb; Sun, 26 May 2024 17:32:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXejxa2O2zakkv9QrP9C3kRR25JRA/FaKKdVfyP8H8OivJdzpqMIrE/k8M/mgtSc9QAAgpU1dZvVImVJJncBtke8Javn7xZxLM/bzDs1A== X-Google-Smtp-Source: AGHT+IHhA1q/jv4N8K8649RVP7oFnL2qHVoxKRghjrJoESSMt1WEBOFbO0zet3Y0OeT4iaDv1pI7 X-Received: by 2002:a50:a459:0:b0:578:56d8:8d59 with SMTP id 4fb4d7f45d1cf-57856d8934bmr4789341a12.20.1716769972029; Sun, 26 May 2024 17:32:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716769972; cv=pass; d=google.com; s=arc-20160816; b=CiWpWP00JIpllIz6az/w83oeRnCsMRwTnBpm2v9Gv/UwbKkgdgz6WDxdFKXy+Q1TZn 949cy9uZKZXWMBWI+hwGohOjKUml5hjZik1C8mgB5ZsYhkyNq2O/hzCmXXQxokPWZQpA VVf1MBAE/9yQhLhgz+T5gQhBFtvSNCgpvHSLq/S9zA/rwHkmKhxG9pkFK5R7bI05MX1P w+/pE+EqjBhk/zaMQWLnaptd2Iy51hGeH2GzhrbdNmaWI54oAFsKTOpqeVDS+szl/zS9 od9VyOdaSGRSHTbQ4pkOLSGj+tRx/Fs1PdW/NIzsK7rkJlpgso7Y73YFLDQeVDq82753 PtsQ== 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=QDImjSFeXz0tu16D5qmvDXRzGzMnTciJLTTtsj/p2F4=; fh=CONbk9IM1KeoX7M3ojYzAuH3rM9roTZPm7jJ9UBDXA8=; b=nG8s9SPB9nf51HqfFAjPVmN3cpD9J1wgQ6ILFvbS0SKYEWjdvaLuOVNkGLVqm0J3Ia 8ji2phuVRuZk4twH2sFLqmbr5R86rG9cGEWRkpQ5MLQfp+ZJWKPJ/OpqaZ3DXkJUMh60 36l0TC+6nMt1E9ccpfBi42r+v6QATxC/Arjq4sai3+E8BYzv61Gk+0I3VVCvUa+j8SpT x+KMmYic82uak9i2Un39OCXLT0G69HQzLTAGZGq10i/Vx2W35KH88PvCRWh+vi3F2sWu qVYTOaKcEipcnNS5lwAEncfpvopQJ6SQ3cg0kiIvOE1d1UkhlbYMkUyE8oconK4ZDZL8 wdew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189915-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578626296b4si2691217a12.611.2024.05.26.17.32.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 17:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189915-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C080B1F213EA for ; Mon, 27 May 2024 00:32:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2D606FCB; Mon, 27 May 2024 00:32:29 +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 40B0D523A; Mon, 27 May 2024 00:32:28 +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=1716769949; cv=none; b=ifWRh6tbRZD5GjnoZdodA3G8KmKo8/fgEH74fJ/Uyn2HdRZ9XnkNlPYKop6SO5bfO5lAGmtLGdN0hFtrsY87AjEX0Js4Ht9OQ3YA5Bofg2bVUkdaEV0vz7FT+fQ2kwrMQgbg3v2oVNqGkN/bTb3VzQgP8WZ3eEsAjwDrKTy9fPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716769949; c=relaxed/simple; bh=8MPxdnHDEqNTjqYvWyVS11UPBlj8FeTQeXxpXQJDEow=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KLNOtyZW8K5IqKVfq/IPOql6dLzjVXR7hj5pkzHyAz6eGLHkm951a8SujHZZM6nCQuLSL3Lxd0uh9mjnZQhCaYR+PYt23hlHvC1vwHU9+7CKU1f7/HVzo7cXzIRikaLXAGF6hS4/vL7RQdXoNcTmDFGuNu4QbSYPMcpnbZK3ht8= 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 8FBB3C2BD10; Mon, 27 May 2024 00:32:26 +0000 (UTC) Date: Sun, 26 May 2024 20:33:18 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Mathieu Desnoyers , Andrew Morton , Alexei Starovoitov , Florent Revest , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH 20/20] function_graph: Use bitmask to loop on fgraph entry Message-ID: <20240526203318.01ee176e@gandalf.local.home> In-Reply-To: <20240527090949.70151ecb2e7d98d4f284c2c8@kernel.org> References: <20240525023652.903909489@goodmis.org> <20240525023744.390040466@goodmis.org> <20240527090949.70151ecb2e7d98d4f284c2c8@kernel.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 Mon, 27 May 2024 09:09:49 +0900 Masami Hiramatsu (Google) wrote: > > Note, we do not care about races. If a bit is set before the gops is > > assigned, it only wastes time looking at the element and ignoring it (as > > it did before this bitmask is added). > > This is OK because anyway we check gops == &fgraph_stub. > By the way, shouldn't we also make "if (gops == &fgraph_stub)" > check unlikely()? Yeah, I'll add the unlikely() here too. > > This change looks good to me. > > Reviewed-by: Masami Hiramatsu (Google) Thanks for the review Masami! -- Steve