summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-02 16:11:15 +0900
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-06 12:22:31 +0900
commitdf87101f816083ad5da559f8be8eac1cee94e38f (patch)
treeee2d72363dd8b6c689aba8ddeba7f967132064f0 /include/linux/timerqueue.h
parent07038c33e791e80c6422c26211fcb9c751439f34 (diff)
samples/fprobe: Use trace_printk() and trace_dump_stack()
Fprobe entry and exit callbacks execute in atomic context with preemption disabled under ftrace recursion protection. Calling printk() directly inside handlers can lead to deadlocks if console or scheduler locks are already held by the probed or interrupted context. Drop the use_trace module parameter and always use trace_printk() for handler logging. In addition, replace stack_trace_print() (which uses printk()) with trace_dump_stack(0) to output backtraces safely to the ftrace buffer. Also update the module header comment to reference /sys/kernel/tracing/trace. Additionally, update CONFIG_SAMPLE_FPROBE in samples/Kconfig to depend on EVENT_TRACING so that the tracing subsystem is enabled when building the sample. Link: https://lore.kernel.org/all/179360347512.115681.7201999490892291449.stgit@devnote2/ Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions