mbox series

[0/2] tracing: Clean up how iter is freed

Message ID 20230713114510.04c452ca@gandalf.local.home (mailing list archive)
Headers show
Series tracing: Clean up how iter is freed | expand

Message

Steven Rostedt July 13, 2023, 3:45 p.m. UTC
The trace iterator is used in various interfaces and needs to be consistent
in how it is cleaned up. Add a helper function to clean up its content. But
before doing so, I noticed that iter->trace is allocated then the content
of tr->current_trace is copied to it. There's no reason for this, so the
first patch removes that allocation and just points to the content of
tr->current_trace, as tr->current_trace can change, but the content should
not.

Steven Rostedt (Google) (2):
      tracing: Remove unnecessary copying of tr->current_trace
      tracing: Add free_trace_iter_content() helper function
----
 kernel/trace/trace.c | 62 +++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 31 insertions(+), 31 deletions(-)