Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1774312lqb; Sun, 26 May 2024 17:31:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcEhlbUCIIfHxnsyY9UV33sAxgcQrlGbM5H2SMl+No6UBJkNjldjK17LdrVEZ3gxX7k3GfnxEy/s6repEquAsMxND6C1JmD5VUMOlOAA== X-Google-Smtp-Source: AGHT+IF1YCd28gaZC8XdSqw5k/lsJfqFDb16wxk4aAKZd6pik4A+b1x+Zwg0zcYClK0nZU2xX9BJ X-Received: by 2002:a05:620a:e8f:b0:794:782c:b0af with SMTP id af79cd13be357-794ab0f83b3mr721328585a.52.1716769913818; Sun, 26 May 2024 17:31:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716769913; cv=pass; d=google.com; s=arc-20160816; b=ri9y7ps3KiW/A/Pv4CJcJgBxhCGpArNXI/IHiB+IE6rvTjOCAjOK/c+Nv6de3BT039 LHVj1hEJ3SbdBbEuKzUB1bv4VANsaSEIwTd0PQFNk3wF+EpdHigM5pewfum2Vqx6IXFI zW+i8KgsuWD+COcBf2+V87u60S+S74ufnxaVbL2w1eCfCPIDwbcfq8bjHRmQJoxeTJ6R DHzoI8/CSas9+IsaAbIwRSgZ9etSpvp5/8NkNavJ3J+2HBclbKuGKkxNaTK3YARhgtyF /qqhgZNfIEfQ4YZQUaLyPw9UrtTx2Kr3J/R1MCDrwkA8f/agsPx0dccoFqZ0EJS++fxQ qDOA== 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=Kk3+yvDtqyQWwT96IiMh29NrlISOcxA0wUjS+YRNvP4=; fh=CONbk9IM1KeoX7M3ojYzAuH3rM9roTZPm7jJ9UBDXA8=; b=CupfC9H4Izop9Tjsdc8bHh9QxfWmkZkeQfFCPqaiBKKVn6QR11A7+hdpu7iOfRWA0p LbX8ZeYvcS0LoJY39gNfB4OTt8d4gnRWWtHVBjnHpsw0ouayYg5nvSy2sT71LgYdMxYq pQ+/J3ZAtkw0ydl7ZQmA3yw2wTuwGyYf1I1fLbH4Ue1tNwHT4ZXxhmRFbM4oFw9t5KpY CVSUIChXkqi9KH8y44QZ0SRA5RONESMUhkrWTz6cH7dUQKe4uW17IL2g8oLOn6n+Qh+T AI7g0oQet0cMfCsnHNeV7nE4WA9vD2AFmYjjPa9L4nPADDssR+ICEA/0X37/ewy+AJpr UOpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189914-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abcab9d1si755326085a.53.2024.05.26.17.31.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 17:31:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189914-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6FADD1C20C90 for ; Mon, 27 May 2024 00:31:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C481223D7; Mon, 27 May 2024 00:31:43 +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 40C1836C; Mon, 27 May 2024 00:31:42 +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=1716769903; cv=none; b=auYYkghO9RLqqmx4ZETg9fjPB7v+94XeYzJ0REEgU/NbD0pS89O4+cqAYsIefbMI14XIbl5X9mpEgPc2fyeJGSon6R74MuGyzOsYhVIDTHMXRW8XguapuU29x7elhqPqotiflHgF8IT1bpjZis7SCZBeR54Li8nXqN6NPqVnTbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716769903; c=relaxed/simple; bh=kLapuMVDeL2Hs6Z/9dIbBEZtedR5ElbHgfpMcfi8spE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M2bXD1seZ5uKHxPYmpjRP5lQusuj57YKPN7a/PXaINxtyXC8ZafLE/L0dQvWh1h6J96IWDNLKDNtzpXksMwTm3lpsyNrralRJ3/RwNDmVHS5BUGH39m2woPW2crAHJPMVJ31qHv+5nW5JrquzuKYS/YrBOk5iKdKl9aX03Q/al0= 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 8695BC2BD10; Mon, 27 May 2024 00:31:40 +0000 (UTC) Date: Sun, 26 May 2024 20:32:32 -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 19/20] function_graph: Use for_each_set_bit() in __ftrace_return_to_handler() Message-ID: <20240526203232.59557382@gandalf.local.home> In-Reply-To: <20240527090434.37e309d0280d6d8f116edc85@kernel.org> References: <20240525023652.903909489@goodmis.org> <20240525023744.231570357@goodmis.org> <20240527090434.37e309d0280d6d8f116edc85@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:04:34 +0900 Masami Hiramatsu (Google) wrote: > > bitmap = get_bitmap_bits(current, offset); > > - for (i = 0; i < FGRAPH_ARRAY_SIZE; i++) { > > + > > + for_each_set_bit(i, &bitmap, sizeof(bitmap) * BITS_PER_BYTE) { > > struct fgraph_ops *gops = fgraph_array[i]; > > > > - if (!(bitmap & BIT(i))) > > - continue; > > if (gops == &fgraph_stub) > > Ah, nit: maybe this is unlikely()? Ah probably. I'll update it. Thanks, -- Steve