From 72906e125de68199709df4d7f390fa12ccba7a16 Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Fri, 22 May 2015 14:36:53 -0400 Subject: [PATCH] Fix: Update kmem event for recent Ubuntu kernel 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 Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/kmem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/kmem.h b/instrumentation/events/lttng-module/kmem.h index ee83d386..1d4eb62b 100644 --- a/instrumentation/events/lttng-module/kmem.h +++ b/instrumentation/events/lttng-module/kmem.h @@ -202,7 +202,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(kmem_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_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)) + || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0) \ + || LTTNG_UBUNTU_KERNEL_RANGE(3,13,0,50, 3,14,0,0)) LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag, -- 2.34.1