linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/5] mm/compaction: change tracepoint format from decimal to hexadecimal
@ 2015-01-15  7:41 Joonsoo Kim
  2015-01-15  7:41 ` [PATCH v3 2/5] mm/compaction: enhance tracepoint output for compaction begin/end Joonsoo Kim
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Joonsoo Kim @ 2015-01-15  7:41 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Vlastimil Babka, Mel Gorman, David Rientjes, linux-mm,
	linux-kernel, Joonsoo Kim

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.

Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
---
 include/trace/events/compaction.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h
index c6814b9..1337d9e 100644
--- a/include/trace/events/compaction.h
+++ b/include/trace/events/compaction.h
@@ -104,7 +104,7 @@ TRACE_EVENT(mm_compaction_begin,
 		__entry->zone_end = zone_end;
 	),
 
-	TP_printk("zone_start=%lu migrate_start=%lu free_start=%lu zone_end=%lu",
+	TP_printk("zone_start=0x%lx migrate_start=0x%lx free_start=0x%lx zone_end=0x%lx",
 		__entry->zone_start,
 		__entry->migrate_start,
 		__entry->free_start,
-- 
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-19  6:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15  7:41 [PATCH v3 1/5] mm/compaction: change tracepoint format from decimal to hexadecimal Joonsoo Kim
2015-01-15  7:41 ` [PATCH v3 2/5] mm/compaction: enhance tracepoint output for compaction begin/end Joonsoo Kim
2015-01-16  1:16   ` Andrew Morton
2015-01-19  6:13     ` Joonsoo Kim
2015-01-15  7:41 ` [PATCH v3 3/5] mm/compaction: print current range where compaction work Joonsoo Kim
2015-01-15  7:41 ` [PATCH v3 4/5] mm/compaction: more trace to understand when/why compaction start/finish Joonsoo Kim
2015-01-15  7:41 ` [PATCH v3 5/5] mm/compaction: add tracepoint to observe behaviour of compaction defer Joonsoo Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).