[Devel] [PATCH RHEL7 COMMIT] mm/trace: fix always 0 latency in page_alloc tracepoint

Konstantin Khorenko khorenko at virtuozzo.com
Thu Mar 7 18:59:22 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-957.5.1.vz7.84.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.5.1.vz7.84.5
------>
commit b8fdc04676eefd84490d3515ab3cb10254c9b8c0
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Thu Mar 7 18:59:20 2019 +0300

    mm/trace: fix always 0 latency in page_alloc tracepoint
    
    Since __entry->time wasn't assigned, mm_page_alloc trace point
    shows always 0 lat.
    
    Fixes: fc8961c87c00 ("mm/page_alloc: add latency to the page_alloc tracepoint")
    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",



More information about the Devel mailing list