Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1016894lqj; Mon, 3 Jun 2024 07:54:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy4ZhVmNkFF3fYM2hr0mtTvOdk+PDuW+xQY2RvYv1w0+32Dmq8IxAWA9xqPn+buHYlHZlQokBxZpeKoYQlNx5YoD4XzNYLTeNDFJZncQ== X-Google-Smtp-Source: AGHT+IEiKZDgHbn9To9racGxAg0KYCPsfDy5UGE9yCx92QdpO0rEBtqCsiksNCH2T0pTtAkTh3bF X-Received: by 2002:a05:6e02:1a2f:b0:36d:acb4:8c02 with SMTP id e9e14a558f8ab-3748b96ece8mr118686185ab.6.1717426460850; Mon, 03 Jun 2024 07:54:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717426460; cv=pass; d=google.com; s=arc-20160816; b=tEtRizDFd3coNjqWVvVHQFqgzntu0GSVr2II0UlGg8WrxdR2giWa8xc1GQctr3oy6M 2tMMgiStJdD6T82iZdSWEEO13h7cGSeQ2fRm/o/TRRpF15h15NxahdEbfUxjSvzB39jx KEbrsKjru4FAbPxVE6vmxtKXB1DPOoU196u+nxbB/ZLutWvi3frQdNDQjZFY6ija8h4/ 6zsQXdeIj4EMueF7eNAUJOKWbFLDQ9G/eJpaRdvM+V29dWKR5+wcXrVwBnGhfU/QYtF0 U96EfuCXTd9cMWyKOqNubE+u3/Unfxr8bCFKa8M/Z/4hdJRXRXAKOUj6PRojV7t05VQh eWqg== 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=s6PtKuj7L8NKKlJVQW1CreofksNlBq5JGwbpvGFHMRY=; fh=CONbk9IM1KeoX7M3ojYzAuH3rM9roTZPm7jJ9UBDXA8=; b=WBoJ9W8ow8/53Q43oJOHANiQgApwqPVUGd0N0DkPyLoEg1Ysbuz3uLPh/98Pfj3sco nb7nCGgjzUdgwpXJVks4mA3Gq2iyrWiM1QbwwRlKJRZTcHwQVw1mUCZXlbxQ3/3uGrDg 9dQ3qkiDjir3sQAlVjWcEvYw7HjZ/jnkm3cuLU5pIZwH1JtRf7eYJRJJ/3rY8HC+rgpj i6fOZlrmSWyjuzWHCq/JYFy/gUzh6pQmFL38AaTXHV9O8cjmT7YiTBP3CspmuSDuGr9T 6Zpqxx2A4aRX+ISRU1iD0p/pDA/9kFX6psOXe5JtBpa73UhyzPdN9YmHnESX0CHwpVBK 9ZQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-199321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199321-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35a0e6a9asi6700978a12.391.2024.06.03.07.54.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 07:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-199321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199321-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 54594287473 for ; Mon, 3 Jun 2024 14:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8C5812FF9C; Mon, 3 Jun 2024 14:53:22 +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 3408512FF8E; Mon, 3 Jun 2024 14:53:21 +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=1717426402; cv=none; b=NK8CoUYG2dTI798b5voazv9IPfhlQPP+1RFmKHPQMzAbWw5oZz2hhmSXPecR779InwrMav0aUIGNnffN8ccbV6Gkg0JUNxjwRSpHniNjMiDMVe4r0/rMukR9zEi0FtjjeNlrovBKu2ABHXu/u55M0LTjesh+AdbwYIYMZIUeD8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717426402; c=relaxed/simple; bh=ljBV8B2zDJ+lremQm3VgudoYU5q/ejgQbLgH5webZSU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rdcgVSrLSRVnRTH9OfabdgmQBR/D+Z8VBmic/Y7ypx5fnWHhvAWhSbPVExwMI5zEAQJ9fTymUe+EsnT3M8l97Z0l0pbWi3/RsYFwiMYGGnhWpkDcErL2unZJHww5blfsng+oraQR9zHpZqRMxJcT5qSOgAqw6gfzojheGwoDAVY= 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 91B98C2BD10; Mon, 3 Jun 2024 14:53:17 +0000 (UTC) Date: Mon, 3 Jun 2024 10:54:26 -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 v2 10/27] ftrace: Add subops logic to allow one ops to manage many Message-ID: <20240603105426.48ed57c4@gandalf.local.home> In-Reply-To: <20240603114636.63b5abe2189cb732bec2474c@kernel.org> References: <20240602033744.563858532@goodmis.org> <20240602033832.709653366@goodmis.org> <20240603103316.3af9dea3214a5d2bde721cd8@kernel.org> <20240602220613.3f9eac04@gandalf.local.home> <20240603114636.63b5abe2189cb732bec2474c@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, 3 Jun 2024 11:46:36 +0900 Masami Hiramatsu (Google) wrote: > > > if (ftrace_hash_empty(new_hash)) { > > > free_ftrace_hash(new_hash); > > > new_hash = EMPTY_HASH; > > > break; > > > } > > And we still need this (I think this should be done in intersect_hash(), we just > need to count the number of entries.) Actually, ftrace_hash_empty() may be what I use instead of checking against EMPTY_HASH. I forgot about that function when writing the code. -- Steve