diff mbox

Btrfs: add initial tracepoint support for btrfs

Message ID 4D918E80.1010109@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

liubo March 29, 2011, 7:47 a.m. UTC
None
diff mbox

Patch

diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index f445cff..27e67fd 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -36,9 +36,12 @@  struct extent_buffer;
 		{ BTRFS_FS_TREE_OBJECTID, 	"FS_TREE"	},	\
 		{ BTRFS_ROOT_TREE_DIR_OBJECTID, "ROOT_TREE_DIR"	},	\
 		{ BTRFS_CSUM_TREE_OBJECTID, 	"CSUM_TREE"	},	\
-		{ BTRFS_TREE_LOG_OBJECTID,	"TREE_LOG"	},	\
-		{ BTRFS_TREE_RELOC_OBJECTID,	"TREE_RELOC"	},	\
-		{ BTRFS_DATA_RELOC_TREE_OBJECTID, "DATA_RELOC_TREE" })
+		{ (unsigned long)BTRFS_TREE_LOG_OBJECTID, 		\
+						"TREE_LOG"	},	\
+		{ (unsigned long)BTRFS_TREE_RELOC_OBJECTID, 		\
+						"TREE_RELOC"},		\
+		{ (unsigned long)BTRFS_DATA_RELOC_TREE_OBJECTID, 	\
+						"DATA_RELOC_TREE" })
 
 #define show_root_type(obj)						\
 	obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) ||		\
@@ -126,13 +129,13 @@  DEFINE_EVENT(btrfs__inode, btrfs_inode_evict,
 
 #define __show_map_type(type)						\
 	__print_symbolic(type,						\
-		{ EXTENT_MAP_LAST_BYTE, "LAST_BYTE" 	},		\
-		{ EXTENT_MAP_HOLE, 	"HOLE" 		},		\
-		{ EXTENT_MAP_INLINE, 	"INLINE" 	},		\
-		{ EXTENT_MAP_DELALLOC,	"DELALLOC" 	})
+		{ (unsigned long)EXTENT_MAP_LAST_BYTE,	"LAST_BYTE" },	\
+		{ (unsigned long)EXTENT_MAP_HOLE, 	"HOLE"      },	\
+		{ (unsigned long)EXTENT_MAP_INLINE, 	"INLINE"    },	\
+		{ (unsigned long)EXTENT_MAP_DELALLOC,	"DELALLOC"  })
 
 #define show_map_type(type)			\
-	type, (type >= EXTENT_MAP_LAST_BYTE) ? "-" :  __show_map_type(type)
+	type, (type >= EXTENT_MAP_LAST_BYTE) ? "-" : __show_map_type(type)
 
 #define show_map_flags(flag)						\
 	__print_flags(flag, "|",					\