tracing: Update function trace addresses with module addresses
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 6 May 2025 15:16:48 +0000 (11:16 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 6 May 2025 15:30:17 +0000 (11:30 -0400)
commite3223e1e9a9f7912763e314c9e8a8320c842be72
tree251e546c025a3be92ce7f84e479d23655960bc95
parent92a09c47464d040866cf2b4cd052bc60555185fb
tracing: Update function trace addresses with module addresses

Now that module addresses are saved in the persistent ring buffer, their
addresses can be used to adjust the address in the persistent ring buffer
to the address of the module that is currently loaded.

Instead of blindly using the text_delta that only works for core kernel
code, call the trace_adjust_address() that will see if the address matches
an address saved in the persistent ring buffer, and then uses that against
the matching module if it is loaded.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250506111648.5df7f3ec@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_output.c