From patchwork Tue Mar 29 07:47:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liubo X-Patchwork-Id: 670822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2T7iLnG012652 for ; Tue, 29 Mar 2011 07:44:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752676Ab1C2HoS (ORCPT ); Tue, 29 Mar 2011 03:44:18 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:59579 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752290Ab1C2HoS (ORCPT ); Tue, 29 Mar 2011 03:44:18 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 8D7BF170118; Tue, 29 Mar 2011 15:44:14 +0800 (CST) Received: from mailserver.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id p2T7c28l010718; Tue, 29 Mar 2011 15:38:02 +0800 Received: from localhost.localdomain ([10.167.225.27]) by mailserver.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2011032915424412-135249 ; Tue, 29 Mar 2011 15:42:44 +0800 Message-ID: <4D918E80.1010109@cn.fujitsu.com> Date: Tue, 29 Mar 2011 15:47:12 +0800 From: liubo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Chris Mason CC: Linux Btrfs , Josef Bacik Subject: Re: [PATCH] Btrfs: add initial tracepoint support for btrfs References: <4D8B28A3.7050105@cn.fujitsu.com> <1301141505-sup-3679@think> <1301273942-sup-2832@think> <4D9132DB.9000507@cn.fujitsu.com> In-Reply-To: <4D9132DB.9000507@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-03-29 15:42:44, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-03-29 15:42:44, Serialize complete at 2011-03-29 15:42:44 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 29 Mar 2011 07:44:21 +0000 (UTC) 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, "|", \