tools/mm: fix the default case for page_owner_sort
authorAudra Mitchell <audra@redhat.com>
Fri, 13 Oct 2023 19:03:48 +0000 (15:03 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:34:19 +0000 (14:34 -0700)
commitc6d5e4901e00031650132aa30aa082a47c3796e5
treed62f86adbb0dd37fd2cddb19174764ead464a876
parent63a150623a2bf94c9ed503719a3423675a3aa0d3
tools/mm: fix the default case for page_owner_sort

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 <audra@redhat.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/mm/page_owner_sort.c