summaryrefslogtreecommitdiffstats
path: root/include/trace/events/btrfs.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2017-08-30 22:36:48 +0800
committerDavid Sterba <dsterba@suse.com>2017-10-30 12:27:55 +0100
commit012e513e1bfeb39e1ce393f5a444f772ea27e954 (patch)
treece4756a9631829a6c52040a8a87756b2518c2db6 /include/trace/events/btrfs.h
parentf78541ddb1da92050a8315cbd09fb5fe7735d150 (diff)
downloadop-kernel-dev-012e513e1bfeb39e1ce393f5a444f772ea27e954.zip
op-kernel-dev-012e513e1bfeb39e1ce393f5a444f772ea27e954.tar.gz
btrfs: declare TRACE_DEFINE_ENUM for each of show_flush_state enum
So that perf can show the state symbol. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace/events/btrfs.h')
-rw-r--r--include/trace/events/btrfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index dc1d0df..77437f5 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -28,6 +28,13 @@ struct btrfs_qgroup_extent_record;
struct btrfs_qgroup;
struct prelim_ref;
+TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS_NR);
+TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS);
+TRACE_DEFINE_ENUM(FLUSH_DELALLOC);
+TRACE_DEFINE_ENUM(FLUSH_DELALLOC_WAIT);
+TRACE_DEFINE_ENUM(ALLOC_CHUNK);
+TRACE_DEFINE_ENUM(COMMIT_TRANS);
+
#define show_ref_type(type) \
__print_symbolic(type, \
{ BTRFS_TREE_BLOCK_REF_KEY, "TREE_BLOCK_REF" }, \
OpenPOWER on IntegriCloud