Fix: add missing versions and init call for page_alloc wrapper
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Feb 2016 20:11:04 +0000 (15:11 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Feb 2016 20:12:21 +0000 (15:12 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.c
wrapper/page_alloc.c
wrapper/page_alloc.h

index aac9c5899355df496ec5a31f9635b43918220726..ffb605106ab6f775f467a7409f507947a1cdbc95 100644 (file)
@@ -2195,6 +2195,9 @@ static int __init lttng_events_init(void)
        if (ret)
                return ret;
        ret = wrapper_get_pfnblock_flags_mask_init();
+       if (ret)
+               return ret;
+       ret = wrapper_get_pageblock_flags_mask_init();
        if (ret)
                return ret;
        ret = lttng_context_init();
index 149bff82078d5facc27ff21ef6bb95a8eac6029f..fd8cfa847cdce7216c4e55faba111fc3a722b892 100644 (file)
 #include "../lttng-kernel-version.h"
 
 #if (defined(CONFIG_KALLSYMS) \
-       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \
-               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)))
+       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)        \
+               || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0)          \
+               || LTTNG_KERNEL_RANGE(3,18,10, 3,19,0)          \
+               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)) \
+               || LTTNG_UBUNTU_KERNEL_RANGE(3,16,7,34, 3,17,0,0))
 
 #include <linux/kallsyms.h>
 #include <linux/mm_types.h>
index 3c7c1ea60a487ba378439df602c9d44c1fc79234..2736e2f361cfbebb86f3566adbb9dcbe04ebfae4 100644 (file)
  * the get_pageblock_migratetype() macro uses it.
  */
 #if (defined(CONFIG_KALLSYMS) \
-       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \
-               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)))
+       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)        \
+               || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0)          \
+               || LTTNG_KERNEL_RANGE(3,18,10, 3,19,0)          \
+               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)) \
+               || LTTNG_UBUNTU_KERNEL_RANGE(3,16,7,34, 3,17,0,0))
 
 #define get_pfnblock_flags_mask                wrapper_get_pfnblock_flags_mask
 
This page took 0.027605 seconds and 4 git commands to generate.