Skip to contentSkip to conversation

Fix: mm_page_alloc_extfrag instrumentation for kernel 3.14.36

PATCH Mathieu Desnoyers 1 participant 1 message Mar 23, 2015 1 message not in the archive

lore
Share & tools
lore

Mathieu Desnoyers

author Applied
#1 lore raw
In reply to a message not in the archive

Merged into master, 2.6, 2.5, thanks!

Mathieu

----- Original Message -----

Quoted 45 lines

The following commit has been backported from kernel 3.19.2 into 3.14.36, introducing a change to mm_page_alloc_extfrag and therefore provoking a build failure on a 3.14.36 kernel:

commit a4f3f96f850db69890f47984c60606a2362bee89

Author: Vlastimil Babka <[email protected]>
Date:   Wed Feb 11 15:28:15 2015 -0800

mm: when stealing freepages, also take pages created by splitting buddy page

commit 99592d598eca62bdbbf62b59941c189176dfc614 upstream.

This patch adds the proper version check to allow building on 3.14.y.

---
 instrumentation/events/lttng-module/kmem.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
instrumentation/events/lttng-module/kmem.h +2 -2
index 3782ac6..710c9fa 100644
@@ -286,7 +286,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_PRINT(mm_page,
 mm_page_pcpu_drain,
 		__entry->order, __entry->migratetype)
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)	\
+	|| LTTNG_KERNEL_RANGE(3,14,36, 3,15,0))
 
 LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
 
--

2.3.3

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com