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.7.0-rc1~95 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e198138deee133122d55c6b5db0f6d3db07050bd;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, "|", \