[PATCH v2 0/4] tracing: Have function tracing and events handle module addresses

Steven Rostedt posted 4 patches 10 months, 2 weeks ago
kernel/trace/trace.c        |  8 ++++++--
kernel/trace/trace_output.c | 46 +++++++++++++++++++++++++++++----------------
2 files changed, 36 insertions(+), 18 deletions(-)
[PATCH v2 0/4] tracing: Have function tracing and events handle module addresses
Posted by Steven Rostedt 10 months, 2 weeks ago
This is based on top of Masami's patch:

  https://lore.kernel.org/linux-trace-kernel/174282689201.356346.17647540360450727687.stgit@mhiramat.tok.corp.google.com/

As it requires the function trace_adjust_address() for both kernel text
and modules.

This updates the function tracer as well as the pointers used in events
to be updated via the trace_adjust_address() function.

Changes since v1: https://lore.kernel.org/linux-trace-kernel/20250304231545.708806702@goodmis.org/

- Rebased on the latest code

- Some minor updates to the trace_adjust_address() to print original
  address if not in kernel proper.

Steven Rostedt (4):
      tracing: Update function trace addresses with module addresses
      tracing: Show function names when possible when listing fields
      tracing: Only return an adjusted address if it matches the kernel address
      tracing: Adjust addresses for printing out fields

----
 kernel/trace/trace.c        |  8 ++++++--
 kernel/trace/trace_output.c | 46 +++++++++++++++++++++++++++++----------------
 2 files changed, 36 insertions(+), 18 deletions(-)