]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Fix function timing profiler to initialize hashtable
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Sun, 18 Aug 2024 12:50:28 +0000 (21:50 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:41:00 +0000 (10:41 +0100)
commitb544be374458009b65d16296291fbd6fbb824ba6
tree751a53cff60990e6200db8683ac96a61ee798b97
parent4f74bd307f078c0605b9f6f1edb8337dee35fa2e
tracing: Fix function timing profiler to initialize hashtable

commit c54a1a06daa78613519b4d24495b0d175b8af63f upstream.

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.

Cc: stable@vger.kernel.org
Fixes: 5fccc7552ccb ("ftrace: Add subops logic to allow one ops to manage many")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c