Fix: Update kmem event for recent Ubuntu kernel
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 22 May 2015 18:36:53 +0000 (14:36 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jul 2015 19:18:43 +0000 (15:18 -0400)
Ubuntu backported a patch into their 3.13 (Trusty) branch which
changes kmem event definition.

Upstream commit
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=99592d598eca62bdbbf62b59941c189176dfc614
first appears in 4.0 (and was later backported to 3.19.2).
We already have the proper check for this.

This corresponds to Ubuntu commit
http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git/commit/?id=d938e4bff1089a1f4757ed94a5cace803c6a363b
which was first released with 3.13.0-50.82.
This required adding a new check specifically for the
Ubuntu version.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/kmem.h

index 0b2ee21347d70ffbfbdc4d8338688d564f6bdf45..049289eae3d695111c0ca2212040473569ed6a08 100644 (file)
@@ -287,7 +287,8 @@ DEFINE_EVENT_PRINT(mm_page, mm_page_pcpu_drain,
 )
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)      \
-       || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0))
+       || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0)          \
+       || LTTNG_UBUNTU_KERNEL_RANGE(3,13,0,50, 3,14,0,0))
 
 TRACE_EVENT(mm_page_alloc_extfrag,
 
This page took 0.028566 seconds and 4 git commands to generate.