From: Mathieu Desnoyers Date: Wed, 24 Dec 2014 16:19:08 +0000 (-0500) Subject: Fix: Update btrfs instrumentation for 3.18 Linux kernel X-Git-Tag: v2.6.0~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=95ee5a2e9fc23c960e4bb8077853f9bd3318f98e;p=lttng-modules.git Fix: Update btrfs instrumentation for 3.18 Linux kernel Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h index 63913f25..24be3619 100644 --- a/instrumentation/events/lttng-module/btrfs.h +++ b/instrumentation/events/lttng-module/btrfs.h @@ -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, "|", \