[Devel] [PATCH rh7 1/2] mm/trace: fix always 0 latency in page_alloc tracepoint

Andrey Ryabinin aryabinin at virtuozzo.com
Thu Mar 7 13:36:22 MSK 2019


Since __entry->time wasn't assigned, mm_page_alloc trace point
shows always 0 lat.

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 include/trace/events/kmem.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/trace/events/kmem.h b/include/trace/events/kmem.h
index af1a8ffb106b..74f69db5d2f7 100644
--- a/include/trace/events/kmem.h
+++ b/include/trace/events/kmem.h
@@ -211,6 +211,7 @@ TRACE_EVENT(mm_page_alloc,
 		__entry->order		= order;
 		__entry->gfp_flags	= gfp_flags;
 		__entry->migratetype	= migratetype;
+		__entry->time		= time;
 	),
 
 	TP_printk("page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s lat=%d",
-- 
2.19.2



More information about the Devel mailing list