diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-11-05 23:04:13 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 16:19:38 -0500 |
commit | 9d04a8ceacddd52621df59b52f8ec28aa4042b16 (patch) | |
tree | 5ddab1b1a78811db38a64577f909cea00a53e0ce /include/trace/events/btrfs.h | |
parent | 3f870c28990015a1fd6c67807efcdb02a75b35e1 (diff) |
Btrfs/tracepoint: fix to report right flags for ordered extent
We use set_bit() to assign ordered extent's flags, but in the related
tracepoint we don't do the same thing, which makes the trace output
not to parse flags correctly.
Also, since the flags are bits stuff, we change to use __print_flags with
a 'delim' instead of __print_symbolic.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'include/trace/events/btrfs.h')
-rw-r--r-- | include/trace/events/btrfs.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h index 4832d75dcbae..e98a1087158e 100644 --- a/include/trace/events/btrfs.h +++ b/include/trace/events/btrfs.h | |||
@@ -208,17 +208,17 @@ TRACE_EVENT_CONDITION(btrfs_get_extent, | |||
208 | __entry->refs, __entry->compress_type) | 208 | __entry->refs, __entry->compress_type) |
209 | ); | 209 | ); |
210 | 210 | ||
211 | #define show_ordered_flags(flags) \ | 211 | #define show_ordered_flags(flags) \ |
212 | __print_symbolic(flags, \ | 212 | __print_flags(flags, "|", \ |
213 | { BTRFS_ORDERED_IO_DONE, "IO_DONE" }, \ | 213 | { (1 << BTRFS_ORDERED_IO_DONE), "IO_DONE" }, \ |
214 | { BTRFS_ORDERED_COMPLETE, "COMPLETE" }, \ | 214 | { (1 << BTRFS_ORDERED_COMPLETE), "COMPLETE" }, \ |
215 | { BTRFS_ORDERED_NOCOW, "NOCOW" }, \ | 215 | { (1 << BTRFS_ORDERED_NOCOW), "NOCOW" }, \ |
216 | { BTRFS_ORDERED_COMPRESSED, "COMPRESSED" }, \ | 216 | { (1 << BTRFS_ORDERED_COMPRESSED), "COMPRESSED" }, \ |
217 | { BTRFS_ORDERED_PREALLOC, "PREALLOC" }, \ | 217 | { (1 << BTRFS_ORDERED_PREALLOC), "PREALLOC" }, \ |
218 | { BTRFS_ORDERED_DIRECT, "DIRECT" }, \ | 218 | { (1 << BTRFS_ORDERED_DIRECT), "DIRECT" }, \ |
219 | { BTRFS_ORDERED_IOERR, "IOERR" }, \ | 219 | { (1 << BTRFS_ORDERED_IOERR), "IOERR" }, \ |
220 | { BTRFS_ORDERED_UPDATED_ISIZE, "UPDATED_ISIZE" }, \ | 220 | { (1 << BTRFS_ORDERED_UPDATED_ISIZE), "UPDATED_ISIZE" }, \ |
221 | { BTRFS_ORDERED_LOGGED_CSUM, "LOGGED_CSUM" }) | 221 | { (1 << BTRFS_ORDERED_LOGGED_CSUM), "LOGGED_CSUM" }) |
222 | 222 | ||
223 | 223 | ||
224 | DECLARE_EVENT_CLASS(btrfs__ordered_extent, | 224 | DECLARE_EVENT_CLASS(btrfs__ordered_extent, |