]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kmem/tracing: add kmem name to kmem_cache_alloc tracepoint
authorWander Lairson Costa <wander@redhat.com>
Mon, 25 Aug 2025 12:59:26 +0000 (09:59 -0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:18 +0000 (16:55 -0700)
commitdfd04add595b97758c8ad1ee970554b7af5c57dd
tree59eee415df0db8c84153204d878c4f18dcf5daeb
parent46afff459925297d9d47c043eb8541fabac9bb0a
kmem/tracing: add kmem name to kmem_cache_alloc tracepoint

The kmem_cache_free tracepoint includes a "name" field, which allows for
easy identification and filtering of specific kmem's.  However, the
kmem_cache_alloc tracepoint lacks this field, making it difficult to pair
corresponding alloc and free events for analysis.

Add the "name" field to kmem_cache_alloc to enable consistent tracking and
correlation of kmem alloc and free events.

Link: https://lkml.kernel.org/r/20250825125927.59816-1-wander@redhat.com
Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Martin Liu <liumartin@google.com>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/kmem.h