From patchwork Thu Sep 12 15:10:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 13802283 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 2F3691BB6B5; Thu, 12 Sep 2024 15:10:48 +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=1726153849; cv=none; b=tkWifnfzi1fFtrkJDER11+LNaHxp8+lmvXdPg8Da5pGkDT6iS4X2FdU7BQimDSd4q7oP/FlIG137oB1WN6VAlxy2XJ79q6YzH3hTwyA118Xv5KLLBpSjLG1zn5sGizxUqLU+0Uq5cGsP6DhjRorlK7NVVpF6gPDtpznGzX45LVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726153849; c=relaxed/simple; bh=TU7U/7cI5u4iMQ6JCxAHG0ipOgBf+qmHbAaqBlHtV9M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=gpCa+vqTuOKemOX56MxtLkX4ghMuZ/RMM9dB1FhexkAMj3ww/KAWtgyqa/Ghkm7hnYRBfuIFnO4Rl+TxThckkiVXB08bW4Ksndc81UJmsgMT0nyoj+WKxDwBv1Hb63579yK5yZmlZdxo22uGM9oaWTga5ljShvJqpN2raTM0R7U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IfBirS0K; 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="IfBirS0K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A1C0C4CEC3; Thu, 12 Sep 2024 15:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726153848; bh=TU7U/7cI5u4iMQ6JCxAHG0ipOgBf+qmHbAaqBlHtV9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IfBirS0KBjnGI1C00xT5k33+UcgMsBh9uwKYMf3OZxkCZXg5tScUXhZgHWo7bNd/m uewMY/KGiM+sj/C2d/yo1yZ+ZYjP995HgPZqYSj3sBZP/mdjBLIzM70r/7hw3V4lZK HdX2A1cESckJZAQ4M6iQzJU4OhzGhSeL/276LZn8VV4VinHEyo7rkhH9s4ajv2cUVQ auYNvhklI0Y6gREI4X+2RR94jr9Xh5E3S0psgjGYfnKmC8NEOXHQeuMBWKRYXXK1/i wyS7vFGwIJbjSj8Sto2gFp+mK20DJGaoDq8fnanH9UTEOhEkQsepNKUpSWX2ib1LEs cXez2bokzmvMg== 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 v14 14/19] tracing: Fix function timing profiler to initialize hashtable Date: Fri, 13 Sep 2024 00:10:42 +0900 Message-Id: <172615384269.133222.13779164555686766360.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <172615368656.133222.2336770908714920670.stgit@devnote2> References: <172615368656.133222.2336770908714920670.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 fd6c5a50c5e5..c55cf21fd53c 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -885,6 +885,10 @@ static void profile_graph_return(struct ftrace_graph_ret *trace, } static struct fgraph_ops fprofiler_ops = { + .ops = { + .flags = FTRACE_OPS_FL_INITIALIZED, + INIT_OPS_HASH(fprofiler_ops.ops) + }, .entryfunc = &profile_graph_entry, .retfunc = &profile_graph_return, };