Thread (21 messages) 21 messages, 6 authors, 2024-06-05

Re: [PATCH 2/6] tracing: Replace memcpy() with __get_task_comm()

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2024-06-03 22:24:08
Also in: bpf, linux-fsdevel, linux-mm, linux-security-module, selinux

On Mon, 3 Jun 2024 at 15:18, Steven Rostedt [off-list ref] wrote:
The logic behind __string() and __assign_str() will always add a NUL
character.
Ok. But then you still end up with the issue that now the profiles are
different, and you have a 8-byte pointer to dynamically allocated
memory instead of just the simpler comm[TASK_COMM_LEN].

Is that actually a good idea for tracing?

We're trying to fix the core code to be cleaner for places that may
actually *care* (like 'ps').

Would we really want to touch this part of tracing?

            Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help