Commit 5834a59
ftrace: Don't allocate ftrace module map if ftrace is disabled
If ftrace is disabled, it is meaningless to allocate a module map.
Add a check in allocate_ftrace_mod_map() to not allocate if ftrace is
disabled.
Link: https://lore.kernel.org/20250529111955.2349189-3-yebin@huaweicloud.com
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent f914b52 commit 5834a59
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7631 | 7631 | | |
7632 | 7632 | | |
7633 | 7633 | | |
| 7634 | + | |
| 7635 | + | |
| 7636 | + | |
7634 | 7637 | | |
7635 | 7638 | | |
7636 | 7639 | | |
| |||
0 commit comments