summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorWenwen Fu <wenwfu@qti.qualcomm.com>2026-11-06 10:14:57 +0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-13 11:21:34 +0900
commit2388a673e9276de30c7e917fce50830e497d46cc (patch)
treeda838efbfb6aec31d3f0fa144db2ec73eb73e099 /rust/kernel/alloc/kvec/errors.rs
parent7e1392a42ea288d70a266f6553fe06f57f8647ea (diff)
tracing: skip boot kprobe setup when no events were requested
setup_boot_kprobe_events() calls enable_boot_kprobe_events() even when the kprobe_event= boot parameter was not supplied. That call takes event_mutex without any command-line probes to enable. Asynchronous eval-map updates also hold event_mutex. A normal boot can therefore wait in init_kprobe_trace() for this background work despite having no boot probes to set up. Return early when the boot-event buffer is empty. Keep the mutex protection in trace_event_update_all() and retain setup for explicit kprobe_event= parameters. Bootconfig handles its own probe enablement, and the existing trace_eval_sync() still waits for background work before init memory is freed. Link: https://lore.kernel.org/all/20261106021457.2648231-1-wenwfu@qti.qualcomm.com/ Fixes: 970988e19eb0 ("tracing/kprobe: Add kprobe_event= boot parameter") Signed-off-by: Wenwen Fu <wenwfu@qti.qualcomm.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions