aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
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