aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 15:33:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 15:33:09 -0400
commite3a0dd98e1ddfd135b7ef889fcc0269e8c2ca445 (patch)
tree7f942b10ffe7ea1498e4b1d3a206291692647040 /include/trace
parentda89bd213fe719ec3552abbeb8be12d0cc0337ca (diff)
parent0e267c44c3a402d35111d1935be1167240b5b79f (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
Pull btrfs update from Chris Mason: "These are the usual mixture of bugs, cleanups and performance fixes. Miao has some really nice tuning of our crc code as well as our transaction commits. Josef is peeling off more and more problems related to early enospc, and has a number of important bug fixes in here too" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (81 commits) Btrfs: wait ordered range before doing direct io Btrfs: only do the tree_mod_log_free_eb if this is our last ref Btrfs: hold the tree mod lock in __tree_mod_log_rewind Btrfs: make backref walking code handle skinny metadata Btrfs: fix crash regarding to ulist_add_merge Btrfs: fix several potential problems in copy_nocow_pages_for_inode Btrfs: cleanup the code of copy_nocow_pages_for_inode() Btrfs: fix oops when recovering the file data by scrub function Btrfs: make the chunk allocator completely tree lockless Btrfs: cleanup orphaned root orphan item Btrfs: fix wrong mirror number tuning Btrfs: cleanup redundant code in btrfs_submit_direct() Btrfs: remove btrfs_sector_sum structure Btrfs: check if we can nocow if we don't have data space Btrfs: stop using try_to_writeback_inodes_sb_nr to flush delalloc Btrfs: use a percpu to keep track of possibly pinned bytes Btrfs: check for actual acls rather than just xattrs when caching no acl Btrfs: move btrfs_truncate_page to btrfs_cont_expand instead of btrfs_truncate Btrfs: optimize reada_for_balance Btrfs: optimize read_block_for_search ...
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/btrfs.h35
1 files changed, 23 insertions, 12 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index ea546a4e9609..2902657ba766 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -40,22 +40,25 @@ struct extent_buffer;
40 { BTRFS_ROOT_TREE_DIR_OBJECTID, "ROOT_TREE_DIR" }, \ 40 { BTRFS_ROOT_TREE_DIR_OBJECTID, "ROOT_TREE_DIR" }, \
41 { BTRFS_CSUM_TREE_OBJECTID, "CSUM_TREE" }, \ 41 { BTRFS_CSUM_TREE_OBJECTID, "CSUM_TREE" }, \
42 { BTRFS_TREE_LOG_OBJECTID, "TREE_LOG" }, \ 42 { BTRFS_TREE_LOG_OBJECTID, "TREE_LOG" }, \
43 { BTRFS_QUOTA_TREE_OBJECTID, "QUOTA_TREE" }, \
43 { BTRFS_TREE_RELOC_OBJECTID, "TREE_RELOC" }, \ 44 { BTRFS_TREE_RELOC_OBJECTID, "TREE_RELOC" }, \
44 { BTRFS_DATA_RELOC_TREE_OBJECTID, "DATA_RELOC_TREE" }) 45 { BTRFS_DATA_RELOC_TREE_OBJECTID, "DATA_RELOC_TREE" })
45 46
46#define show_root_type(obj) \ 47#define show_root_type(obj) \
47 obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ 48 obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \
48 (obj >= BTRFS_ROOT_TREE_OBJECTID && \ 49 (obj >= BTRFS_ROOT_TREE_OBJECTID && \
49 obj <= BTRFS_CSUM_TREE_OBJECTID)) ? __show_root_type(obj) : "-" 50 obj <= BTRFS_QUOTA_TREE_OBJECTID)) ? __show_root_type(obj) : "-"
50 51
51#define BTRFS_GROUP_FLAGS \ 52#define BTRFS_GROUP_FLAGS \
52 { BTRFS_BLOCK_GROUP_DATA, "DATA"}, \ 53 { BTRFS_BLOCK_GROUP_DATA, "DATA"}, \
53 { BTRFS_BLOCK_GROUP_SYSTEM, "SYSTEM"}, \ 54 { BTRFS_BLOCK_GROUP_SYSTEM, "SYSTEM"}, \
54 { BTRFS_BLOCK_GROUP_METADATA, "METADATA"}, \ 55 { BTRFS_BLOCK_GROUP_METADATA, "METADATA"}, \
55 { BTRFS_BLOCK_GROUP_RAID0, "RAID0"}, \ 56 { BTRFS_BLOCK_GROUP_RAID0, "RAID0"}, \
56 { BTRFS_BLOCK_GROUP_RAID1, "RAID1"}, \ 57 { BTRFS_BLOCK_GROUP_RAID1, "RAID1"}, \
57 { BTRFS_BLOCK_GROUP_DUP, "DUP"}, \ 58 { BTRFS_BLOCK_GROUP_DUP, "DUP"}, \
58 { BTRFS_BLOCK_GROUP_RAID10, "RAID10"} 59 { BTRFS_BLOCK_GROUP_RAID10, "RAID10"}, \
60 { BTRFS_BLOCK_GROUP_RAID5, "RAID5"}, \
61 { BTRFS_BLOCK_GROUP_RAID6, "RAID6"}
59 62
60#define BTRFS_UUID_SIZE 16 63#define BTRFS_UUID_SIZE 16
61 64
@@ -154,7 +157,9 @@ DEFINE_EVENT(btrfs__inode, btrfs_inode_evict,
154 { EXTENT_FLAG_PINNED, "PINNED" }, \ 157 { EXTENT_FLAG_PINNED, "PINNED" }, \
155 { EXTENT_FLAG_COMPRESSED, "COMPRESSED" }, \ 158 { EXTENT_FLAG_COMPRESSED, "COMPRESSED" }, \
156 { EXTENT_FLAG_VACANCY, "VACANCY" }, \ 159 { EXTENT_FLAG_VACANCY, "VACANCY" }, \
157 { EXTENT_FLAG_PREALLOC, "PREALLOC" }) 160 { EXTENT_FLAG_PREALLOC, "PREALLOC" }, \
161 { EXTENT_FLAG_LOGGING, "LOGGING" }, \
162 { EXTENT_FLAG_FILLING, "FILLING" })
158 163
159TRACE_EVENT(btrfs_get_extent, 164TRACE_EVENT(btrfs_get_extent,
160 165
@@ -201,13 +206,17 @@ TRACE_EVENT(btrfs_get_extent,
201); 206);
202 207
203#define show_ordered_flags(flags) \ 208#define show_ordered_flags(flags) \
204 __print_symbolic(flags, \ 209 __print_symbolic(flags, \
205 { BTRFS_ORDERED_IO_DONE, "IO_DONE" }, \ 210 { BTRFS_ORDERED_IO_DONE, "IO_DONE" }, \
206 { BTRFS_ORDERED_COMPLETE, "COMPLETE" }, \ 211 { BTRFS_ORDERED_COMPLETE, "COMPLETE" }, \
207 { BTRFS_ORDERED_NOCOW, "NOCOW" }, \ 212 { BTRFS_ORDERED_NOCOW, "NOCOW" }, \
208 { BTRFS_ORDERED_COMPRESSED, "COMPRESSED" }, \ 213 { BTRFS_ORDERED_COMPRESSED, "COMPRESSED" }, \
209 { BTRFS_ORDERED_PREALLOC, "PREALLOC" }, \ 214 { BTRFS_ORDERED_PREALLOC, "PREALLOC" }, \
210 { BTRFS_ORDERED_DIRECT, "DIRECT" }) 215 { BTRFS_ORDERED_DIRECT, "DIRECT" }, \
216 { BTRFS_ORDERED_IOERR, "IOERR" }, \
217 { BTRFS_ORDERED_UPDATED_ISIZE, "UPDATED_ISIZE" }, \
218 { BTRFS_ORDERED_LOGGED_CSUM, "LOGGED_CSUM" })
219
211 220
212DECLARE_EVENT_CLASS(btrfs__ordered_extent, 221DECLARE_EVENT_CLASS(btrfs__ordered_extent,
213 222
@@ -555,7 +564,9 @@ TRACE_EVENT(btrfs_delayed_ref_head,
555 { BTRFS_BLOCK_GROUP_RAID0, "RAID0" }, \ 564 { BTRFS_BLOCK_GROUP_RAID0, "RAID0" }, \
556 { BTRFS_BLOCK_GROUP_RAID1, "RAID1" }, \ 565 { BTRFS_BLOCK_GROUP_RAID1, "RAID1" }, \
557 { BTRFS_BLOCK_GROUP_DUP, "DUP" }, \ 566 { BTRFS_BLOCK_GROUP_DUP, "DUP" }, \
558 { BTRFS_BLOCK_GROUP_RAID10, "RAID10"}) 567 { BTRFS_BLOCK_GROUP_RAID10, "RAID10"}, \
568 { BTRFS_BLOCK_GROUP_RAID5, "RAID5" }, \
569 { BTRFS_BLOCK_GROUP_RAID6, "RAID6" })
559 570
560DECLARE_EVENT_CLASS(btrfs__chunk, 571DECLARE_EVENT_CLASS(btrfs__chunk,
561 572