diff options
| author | Yaxiong Tian <tianyaxiong@kylinos.cn> | 2026-02-04 09:54:01 +0800 |
|---|---|---|
| committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2026-02-06 15:27:00 -0500 |
| commit | 2cdfe39dc9447a09c568da1b6351c70b770dd923 (patch) | |
| tree | 331b74670dc3c4ab96bd3ae28a4d2c1ed8c61f7f /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 0c2580a8094693578afa9b6cbcee406cf131920e (diff) | |
tracing/kprobes: Skip setup_boot_kprobe_events() when no cmdline event
When the 'kprobe_event=' kernel command-line parameter is not provided,
there is no need to execute setup_boot_kprobe_events().
This change optimizes the initialization function init_kprobe_trace()
by skipping unnecessary work and effectively prevents potential blocking
that could arise from contention on the event_mutex lock in subsequent
operations.
Link: https://patch.msgid.link/20260204015401.163748-1-tianyaxiong@kylinos.cn
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
