[PATCH 2/6] tracing: Replace memcpy() with __get_task_comm()
Linus Torvalds
torvalds at linux-foundation.org
Mon Jun 3 22:38:20 UTC 2024
On Mon, 3 Jun 2024 at 15:36, Steven Rostedt <rostedt at goodmis.org> wrote:
>
> It's actually a 4 byte meta data that holds it.
Ok, much better.
> Note, I've been wanting to get rid of the hard coded TASK_COMM_LEN from the
> events for a while. As I mentioned before, the only reason the memcpy exists
> is because it was added before the __string() logic was. Then it became
> somewhat of a habit to do that for everything that referenced task->comm. :-/
Ok, as long as it's an actual improvement, then ack.
Linus
More information about the Linux-security-module-archive
mailing list