Fix: Update btrfs instrumentation for 3.18 Linux kernel
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Dec 2014 16:19:08 +0000 (11:19 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Dec 2014 16:19:52 +0000 (11:19 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/btrfs.h

index 63913f25d7f8b7ca116963d903398756e067d3a4..24be361918285438bf3a8d3d5c91b1f45fa083f8 100644 (file)
@@ -240,7 +240,19 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_evict,
 #define show_map_type(type)                    \
        type, (type >= EXTENT_MAP_LAST_BYTE) ? "-" :  __show_map_type(type)
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0))
+
+#define show_map_flags(flag)                                           \
+       __print_flags(flag, "|",                                        \
+               { (1 << EXTENT_FLAG_PINNED),            "PINNED"        },\
+               { (1 << EXTENT_FLAG_COMPRESSED),        "COMPRESSED"    },\
+               { (1 << EXTENT_FLAG_VACANCY),           "VACANCY"       },\
+               { (1 << EXTENT_FLAG_PREALLOC),          "PREALLOC"      },\
+               { (1 << EXTENT_FLAG_LOGGING),           "LOGGING"       },\
+               { (1 << EXTENT_FLAG_FILLING),           "FILLING"       },\
+               { (1 << EXTENT_FLAG_FS_MAPPING),        "FS_MAPPING"    })
+
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
 
 #define show_map_flags(flag)                                           \
        __print_flags(flag, "|",                                        \
This page took 0.027793 seconds and 4 git commands to generate.