Skip to content

Commit 4645f06

Browse files
JoonsooKimtorvalds
authored andcommitted
mm/compaction: change tracepoint format from decimal to hexadecimal
To check the range that compaction is working, tracepoint print start/end pfn of zone and start pfn of both scanner with decimal format. Since we manage all pages in order of 2 and it is well represented by hexadecimal, this patch change the tracepoint format from decimal to hexadecimal. This would improve readability. For example, it makes us easily notice whether current scanner try to compact previously attempted pageblock or not. Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Mel Gorman <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8d38633 commit 4645f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/trace/events/compaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TRACE_EVENT(mm_compaction_begin,
104104
__entry->zone_end = zone_end;
105105
),
106106

107-
TP_printk("zone_start=%lu migrate_start=%lu free_start=%lu zone_end=%lu",
107+
TP_printk("zone_start=0x%lx migrate_start=0x%lx free_start=0x%lx zone_end=0x%lx",
108108
__entry->zone_start,
109109
__entry->migrate_start,
110110
__entry->free_start,

0 commit comments

Comments
 (0)