diff options
| author | pengdonglin <pengdonglin@xiaomi.com> | 2026-09-16 21:32:15 +0800 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-10-15 18:52:53 -0400 |
| commit | 42643ba35deb8ad1821acfc0577b445ee7ad7548 (patch) | |
| tree | e5f0b309b36cb2ae3e7fd7589b44b185a25b01db /scripts/basic/split-include.c | |
| parent | 5505be91c9413e52efcb37aea528d5699356e075 (diff) | |
| download | linux-42643ba35deb8ad1821acfc0577b445ee7ad7548.tar.gz linux-42643ba35deb8ad1821acfc0577b445ee7ad7548.zip | |
tracing: Avoid BTF lookup in atomic context
The function graph trace formatter can be called from ftrace_dump_one()
with interrupts disabled. When ftrace_dump_on_oops is enabled, the trace
panic notifier can reach ftrace_dump() from the panic path, including the
nmi_panic() path used by the hard lockup detector.
btf_find_func_proto() calls bpf_find_btf_id(), which may initialize vmlinux
BTF under a mutex. Skip the BTF lookup when running in an atomic context
or with interrupts disabled, and fall back to the existing return value
formatting.
Link: https://patch.msgid.link/20260916133218.1282590-2-dolinux.peng@gmail.com
Fixes: ebeed8d4a555 ("tracing/probes: Move finding func-proto API and getting func-param API to trace_btf")
Signed-off-by: pengdonglin <pengdonglin@xiaomi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
