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

Submitted by Andrey Ryabinin on March 7, 2019, 10:36 a.m.

Details

Message ID 20190307103623.21271-1-aryabinin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Ryabinin March 7, 2019, 10:36 a.m.
Since __entry->time wasn't assigned, mm_page_alloc trace point
shows always 0 lat.

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

Patch hide | download patch | download mbox

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",