public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Tim Chen <tim.c.chen@linux.intel.com>,
	Vincent Donnefort <vdonnefort@google.com>,
	Sven Schnelle <svens@linux.ibm.com>,
	Mete Durlu <meted@linux.ibm.com>
Subject: [PATCH v3 0/3] tracing: Changes to saved_cmdlines
Date: Fri, 16 Feb 2024 16:00:47 -0500	[thread overview]
Message-ID: <20240216210047.584712062@goodmis.org> (raw)


Repost of "tracing: Fix wasted memory in saved_cmdlines logic" (hence the v3:
v2 at: https://lore.kernel.org/linux-trace-kernel/20240213115232.5fd9e611@gandalf.local.home/)
That patch was based on the two other patches in this series, but
I forgot to post those two other patches.

Instead of applying the update to the saved_cmdlines logic on top of the
two phantom patches, apply it first. This way it can be backported
nicely. I put a "Fixes" tag on it but not a Cc stable as it's more of
a nice to have than fixing any bug (besides wasting some memory).

The second two patches simply move code around. The goal is to keep
all the saved_cmdlines logic in one place. Currently it's in two files
(trace.c and trace_sched_switch.c). Since trace.c is awfully large,
move all the code to trace_sched_switch.c, as that's its only purpose
today anyway.

The first patch is the saved_cmdlines update to consolidate memory.

The second patch removes some open coded saved_cmdlines logic in trace.c
into a helper function to make it a cleaner move.

The last patch simply moves the code from trace.c into trace_sched_switch.c

Steven Rostedt (Google) (3):
      tracing: Have saved_cmdlines arrays all in one allocation
      tracing: Move open coded processing of tgid_map into helper function
      tracing: Move saved_cmdline code into trace_sched_switch.c

----
 kernel/trace/trace.c              | 509 +------------------------------------
 kernel/trace/trace.h              |  10 +
 kernel/trace/trace_sched_switch.c | 516 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 529 insertions(+), 506 deletions(-)

             reply	other threads:[~2024-02-16 21:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16 21:00 Steven Rostedt [this message]
2024-02-16 21:00 ` [PATCH v3 1/3] tracing: Have saved_cmdlines arrays all in one allocation Steven Rostedt
2024-02-16 21:00 ` [PATCH v3 2/3] tracing: Move open coded processing of tgid_map into helper function Steven Rostedt
2024-02-16 21:00 ` [PATCH v3 3/3] tracing: Move saved_cmdline code into trace_sched_switch.c Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240216210047.584712062@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=meted@linux.ibm.com \
    --cc=mhiramat@kernel.org \
    --cc=svens@linux.ibm.com \
    --cc=tim.c.chen@linux.intel.com \
    --cc=vdonnefort@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox