Re: [PATCH] mm: mmap_lock: optimize mmap_lock tracepoints
From: Matthew Wilcox
Date: Sat Nov 23 2024 - 12:02:17 EST
On Fri, Nov 22, 2024 at 10:09:39PM -0800, Shakeel Butt wrote:
> TP_printk(
> - "mm=%p memcg_path=%s write=%s",
> - __entry->mm,
> - __get_str(memcg_path),
> + "mm=%p memcg_id=%llu write=%s",
> + __entry->mm, __entry->memcg_id,
> __entry->write ? "true" : "false"
Is it actually useful to print out the (hashed) pointer of the mm?
Wouldn't the PID be more useful so you could actually associate it with
a task?