summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYe Liu <liuye@kylinos.cn>2026-08-19 10:16:10 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-06 17:38:59 -0700
commit305a263d89c96c157ca568a4872c1eb09e90e9f1 (patch)
tree36d8ed190e4ade05c99db665596136bf054dff6a /include/linux
parent67f96334148d5ff30c7475346913b523506c997d (diff)
tools/mm/page_owner_sort: add module name sort/cull/filter support
Page owner stack traces already contain kernel module names in the "[module]" format produced by %pS, but page_owner_sort has no way to sort, cull, or filter by module. Extract the first module name from each record's stack trace using the regex \[([a-zA-Z0-9_]+)\]. Records whose stack traces contain no module frames are assigned "vmlinux". New options: -M Sort by module name --sort=mod Sort by module name (supports +/- prefix) --cull=mod Cull (aggregate) by module name --module <modlist> Filter to records matching the given module(s) The module field is also printed in cull output when relevant. Link: https://lore.kernel.org/20260819021611.2910835-3-ye.liu@linux.dev Signed-off-by: Ye Liu <liuye@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Hildenbrand (Arm) <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Liu Jing <liujing@cmss.chinamobile.com> Cc: Yichong Chen <chenyichong@uniontech.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions