| From: |
| David Laight <david.laight.linux-AT-gmail.com> |
| To: |
| Steven Rostedt <rostedt-AT-goodmis.org>, Masami Hiramatsu <mhiramat-AT-kernel.org>, Mathieu Desnoyers <mathieu.desnoyers-AT-efficios.com>, linux-kernel-AT-vger.kernel.org, linux-trace-kernel-AT-vger.kernel.org, Michal Koutný <mkoutny-AT-suse.com> |
| Subject: |
| [PATCH rfc 0/2] Improvements to ftrace comm[] handling |
| Date: |
| Fri, 26 Jun 2026 22:23:54 +0100 |
| Message-ID: |
| <20260626212356.64150-1-david.laight.linux@gmail.com> |
| Cc: |
| David Laight <david.laight.linux-AT-gmail.com> |
| Archive-link: |
| Article |
RFC because they are untested and I want to send them before going
on holiday for 2 weeks (should still have email access).
The first patch avoids a lot of 'potentially unsized' string
functions by embedding the char[] use to hold task->comm[] in a
structure.
The second adjsuts the data structure used to cache the task
names in the thread switch code.
David Laight (2):
tracing: Embed 'char comm[16]' in a structure
tracing: Keep pid and comm[] in the same structure
kernel/trace/blktrace.c | 28 +++----
kernel/trace/trace.c | 3 +-
kernel/trace/trace.h | 9 ++-
kernel/trace/trace_events_filter.c | 2 +-
kernel/trace/trace_events_hist.c | 26 +++---
kernel/trace/trace_functions_graph.c | 10 +--
kernel/trace/trace_output.c | 24 +++---
kernel/trace/trace_sched_switch.c | 113 ++++++++++++---------------
8 files changed, 101 insertions(+), 114 deletions(-)
--
2.39.5