<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/mm/page_owner_sort.c, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-12-23T19:23:14Z</updated>
<entry>
<title>tools/mm/page_owner_sort: fix timestamp comparison for stable sorting</title>
<updated>2025-12-23T19:23:14Z</updated>
<author>
<name>Kaushlendra Kumar</name>
</author>
<published>2025-12-09T04:45:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7013803444dd3bbbe28fd3360c084cec3057c554'/>
<id>urn:sha1:7013803444dd3bbbe28fd3360c084cec3057c554</id>
<content type='text'>
The ternary operator in compare_ts() returns 1 when timestamps are equal,
causing unstable sorting behavior. Replace with explicit three-way
comparison that returns 0 for equal timestamps, ensuring stable qsort
ordering and consistent output.

Link: https://lkml.kernel.org/r/20251209044552.3396468-1-kaushlendra.kumar@intel.com
Fixes: 8f9c447e2e2b ("tools/vm/page_owner_sort.c: support sorting pid and time")
Signed-off-by: Kaushlendra Kumar &lt;kaushlendra.kumar@intel.com&gt;
Cc: Chongxi Zhao &lt;zhaochongxi2019@email.szu.edu.cn&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm/page_owner_sort: add help option support</title>
<updated>2025-11-17T01:28:06Z</updated>
<author>
<name>Ye Liu</name>
</author>
<published>2025-10-16T05:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5bf65d4a8dbe354999596ef6d14bd70839573b16'/>
<id>urn:sha1:5bf65d4a8dbe354999596ef6d14bd70839573b16</id>
<content type='text'>
Add -h/--help option to display usage information and improve code style.

Link: https://lkml.kernel.org/r/20251016054927.138510-1-ye.liu@linux.dev
Signed-off-by: Ye Liu &lt;liuye@kylinos.cn&gt;
Cc: SeongJae Park &lt;sj@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: use &lt;stdbool.h&gt; in page_owner_sort.c</title>
<updated>2025-11-17T01:28:05Z</updated>
<author>
<name>Ye Liu</name>
</author>
<published>2025-10-15T09:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f79ddb64b472e50482f6728fec3b44156e5d844'/>
<id>urn:sha1:2f79ddb64b472e50482f6728fec3b44156e5d844</id>
<content type='text'>
Use standard &lt;stdbool.h&gt; instead of manually defining bool, true and false.

Link: https://lkml.kernel.org/r/20251015093851.109663-1-ye.liu@linux.dev
Signed-off-by: Ye Liu &lt;liuye@kylinos.cn&gt;
Reviewed-by: Dev Jain &lt;dev.jain@arm.com&gt;
Reviewed-by: SeongJae Park &lt;sj@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: free the allocated memory</title>
<updated>2024-11-07T04:11:17Z</updated>
<author>
<name>Liu Jing</name>
</author>
<published>2024-10-22T01:25:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f1f947a322d2bdf0b16ff9158ce6be7cc23b974'/>
<id>urn:sha1:3f1f947a322d2bdf0b16ff9158ce6be7cc23b974</id>
<content type='text'>
The comm_str memory needs to be freed if the search_pattern function call
fails in get_comm

[akpm@linux-foundation.org: fix whitespace]
Link: https://lkml.kernel.org/r/20241022012526.7597-1-liujing@cmss.chinamobile.com
Signed-off-by: Liu Jing &lt;liujing@cmss.chinamobile.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: update the usage output to be more organized</title>
<updated>2023-10-18T21:34:19Z</updated>
<author>
<name>Audra Mitchell</name>
</author>
<published>2023-10-13T19:03:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8ea435f071592d82479414e97e3c70bed204666'/>
<id>urn:sha1:d8ea435f071592d82479414e97e3c70bed204666</id>
<content type='text'>
Organize the usage options alphabetically and improve the description of
some options.  Also separate the more complicated cull options from the
single use compare options.

Link: https://lkml.kernel.org/r/20231013190350.579407-6-audra@redhat.com
Signed-off-by: Audra Mitchell &lt;audra@redhat.com&gt;
Acked-by: Rafael Aquini &lt;aquini@redhat.com&gt;
Acked-by: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Cc: Georgi Djakov &lt;djakov@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: fix the default case for page_owner_sort</title>
<updated>2023-10-18T21:34:19Z</updated>
<author>
<name>Audra Mitchell</name>
</author>
<published>2023-10-13T19:03:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6d5e4901e00031650132aa30aa082a47c3796e5'/>
<id>urn:sha1:c6d5e4901e00031650132aa30aa082a47c3796e5</id>
<content type='text'>
With the additional commands and timestamps added to the tool, the default
case (-t) has been broken.  Now that the allocation timestamps are saved
outside of the txt field, allow us to properly sort the data by number of
times the record has been seen.  Furthermore prevent the misuse of the
commandline arguments so only one compare option can be used.

Link: https://lkml.kernel.org/r/20231013190350.579407-5-audra@redhat.com
Signed-off-by: Audra Mitchell &lt;audra@redhat.com&gt;
Acked-by: Rafael Aquini &lt;aquini@redhat.com&gt;
Acked-by: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Cc: Georgi Djakov &lt;djakov@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: filter out timestamps for correct collation</title>
<updated>2023-10-18T21:34:19Z</updated>
<author>
<name>Audra Mitchell</name>
</author>
<published>2023-10-13T19:03:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63a150623a2bf94c9ed503719a3423675a3aa0d3'/>
<id>urn:sha1:63a150623a2bf94c9ed503719a3423675a3aa0d3</id>
<content type='text'>
With the introduction of allocation timestamps being included in
page_owner output, each record becomes unique due to the timestamp
nanosecond granularity.  Remove the check in add_list that tries to
collate each record during processing as the memcmp() is just additional
overhead at this point.

Also keep the allocation timestamps, but allow collation to occur without
consideration of the allocation timestamp except in the case were
allocation timestamps are requested by the user (the -a option).

Link: https://lkml.kernel.org/r/20231013190350.579407-4-audra@redhat.com
Signed-off-by: Audra Mitchell &lt;audra@redhat.com&gt;
Acked-by: Rafael Aquini &lt;aquini@redhat.com&gt;
Acked-by: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Cc: Georgi Djakov &lt;djakov@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm: remove references to free_ts from page_owner_sort</title>
<updated>2023-10-18T21:34:19Z</updated>
<author>
<name>Audra Mitchell</name>
</author>
<published>2023-10-13T19:03:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0179c62839bdc49769a986e6eb1a6ca6fc7d274a'/>
<id>urn:sha1:0179c62839bdc49769a986e6eb1a6ca6fc7d274a</id>
<content type='text'>
With the removal of free timestamps from page_owner output, we no longer
need to handle this case or the "unreleased" case.  Remove all references
to both cases.

Link: https://lkml.kernel.org/r/20231013190350.579407-3-audra@redhat.com
Signed-off-by: Audra Mitchell &lt;audra@redhat.com&gt;
Acked-by: Rafael Aquini &lt;aquini@redhat.com&gt;
Reviewed-by: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Cc: Georgi Djakov &lt;djakov@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used</title>
<updated>2023-04-16T17:41:25Z</updated>
<author>
<name>Steve Chou</name>
</author>
<published>2023-04-11T03:49:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9235756885e865070c4be2facda75262dbd85967'/>
<id>urn:sha1:9235756885e865070c4be2facda75262dbd85967</id>
<content type='text'>
When using cull option with 'tg' flag, the fprintf is using pid instead
of tgid. It should use tgid instead.

Link: https://lkml.kernel.org/r/20230411034929.2071501-1-steve_chou@pesi.com.tw
Fixes: 9c8a0a8e599f4a ("tools/vm/page_owner_sort.c: support for user-defined culling rules")
Signed-off-by: Steve Chou &lt;steve_chou@pesi.com.tw&gt;
Cc: Jiajian Ye &lt;yejiajian2018@email.szu.edu.cn&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>tools/vm: rename tools/vm to tools/mm</title>
<updated>2023-01-19T01:12:55Z</updated>
<author>
<name>SeongJae Park</name>
</author>
<published>2023-01-03T18:07:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=799fb82aa132fa3a3886b7872997a5a84e820062'/>
<id>urn:sha1:799fb82aa132fa3a3886b7872997a5a84e820062</id>
<content type='text'>
Rename tools/vm to tools/mm for being more consistent with the code and
documentation directories, and won't be confused with virtual machines.

Link: https://lkml.kernel.org/r/20230103180754.129637-4-sj@kernel.org
Signed-off-by: SeongJae Park &lt;sj@kernel.org&gt;
Cc: Jonathan Corbet &lt;corbet@lwn.net&gt;
Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
</feed>
