diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2024-08-18 21:50:28 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-09 10:41:00 +0100 |
| commit | b544be374458009b65d16296291fbd6fbb824ba6 (patch) | |
| tree | 751a53cff60990e6200db8683ac96a61ee798b97 /kernel/trace | |
| parent | 4f74bd307f078c0605b9f6f1edb8337dee35fa2e (diff) | |
| download | linux-b544be374458009b65d16296291fbd6fbb824ba6.tar.gz linux-b544be374458009b65d16296291fbd6fbb824ba6.tar.bz2 linux-b544be374458009b65d16296291fbd6fbb824ba6.zip | |
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>
Diffstat (limited to 'kernel/trace')
| -rw-r--r-- | kernel/trace/ftrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 4c28dd177ca6..d2dd71d04b8a 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -883,6 +883,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, }; |
