From nobody Fri Nov 29 23:51:14 2024 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 AA91D1C6F4E; Sun, 15 Sep 2024 09:12:18 +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=1726391538; cv=none; b=Vq9KE8Zm7NAPqpAPJlE03gdbU5r9IuRazxwslxPNkrnkt2Xdr0EQY6/uVsRQwmUWvx5WABhgl7nRLw+Yki0xkXaZhDAodJr5eCGgz9v4rxNqopA2GOcVyjdIICgWsmcGnTgPkyF45fF7hqgb5UYr9z8XdjIRfZ2ruHCPs05cUjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726391538; c=relaxed/simple; bh=XL3/JHepsp5mPyEf2U8WFE6hs9Xy4+zNyejmCVae1Kw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=bYRsuIa+Fu+twMgxIQNvKYdzobp8p38eqFWHH5tC3L+UjngCJ4Jk5z9ZKaVNO3pXaRFTazGhjPZiksAzrL7zYG2yc8sSYW2ShkGSW/S3dnb4U1Sq4GTfhO0/ZKPkzrnds5hvVhULms6lhlPWUPT6ayFycr5C1QeHMfDHIAoUoKQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dA1DQbvf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dA1DQbvf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8BBCC4CEC3; Sun, 15 Sep 2024 09:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726391538; bh=XL3/JHepsp5mPyEf2U8WFE6hs9Xy4+zNyejmCVae1Kw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dA1DQbvfqrsIyfzUe9JRNbF3cdp66jlCEYkrz5XI6NxqOB3TMctXutfPNOa+Hd+SU Z6cb25yWNYHha6cLLCiloQVh0ilbOMj3AnRMJatLGDm8CkNUelU+yaKxd3oeisJhFi 2XA06Vz7y3Mbvq8yNXaEKbD0ndu6lAcDI+m5K6BoOA4jA7Q8lgoRhpHs2xSAFs7A2Q 1HtYax+4c6fNkTgGYYjYdIaa6biBj0B8wOYkp+aa53I1rtAOv6Sr/J5AdySxVdI8aq MbAEkoT0NkQKIZai9E5bnLGMTM3OZZdysuVJkUxEl/hEb2qsH4eBDr/Bk+x24oaO4u CevDyFk39+gwA== From: "Masami Hiramatsu (Google)" To: Alexei Starovoitov , Steven Rostedt , Florent Revest Cc: linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Mark Rutland , Peter Zijlstra , Thomas Gleixner , Guo Ren , linux-arch@vger.kernel.org Subject: [PATCH v15 14/19] tracing: Fix function timing profiler to initialize hashtable Date: Sun, 15 Sep 2024 18:12:12 +0900 Message-Id: <172639153271.366111.7639381985296883820.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <172639136989.366111.11359590127009702129.stgit@devnote2> References: <172639136989.366111.11359590127009702129.stgit@devnote2> User-Agent: StGit/0.19 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-Transfer-Encoding: quoted-printable From: Masami Hiramatsu (Google) Since the new fgraph requires to initialize fgraph_ops.ops.func_hash before calling register_ftrace_graph(), initialize it with default (tracing all functions) parameter. Signed-off-by: Masami Hiramatsu (Google) --- kernel/trace/ftrace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 66aea1baf8a2..d589057957d2 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -904,6 +904,10 @@ static void profile_graph_return(struct ftrace_graph_r= et *trace, } =20 static struct fgraph_ops fprofiler_ops =3D { + .ops =3D { + .flags =3D FTRACE_OPS_FL_INITIALIZED, + INIT_OPS_HASH(fprofiler_ops.ops) + }, .entryfunc =3D &profile_graph_entry, .retfunc =3D &profile_graph_return, };