* [PATCH] btrfs: declare TRACE_DEFINE_ENUM for each of show_flush_state enum
@ 2017-08-30 14:36 Anand Jain
2017-09-06 13:55 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Anand Jain @ 2017-08-30 14:36 UTC (permalink / raw)
To: linux-btrfs; +Cc: dsterba
So that perf can show the state symbol.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
include/trace/events/btrfs.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index d412c49f5a6a..64002f898717 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -27,6 +27,13 @@ struct __btrfs_workqueue;
struct btrfs_qgroup_extent_record;
struct btrfs_qgroup;
+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" }, \
--
2.13.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs: declare TRACE_DEFINE_ENUM for each of show_flush_state enum
2017-08-30 14:36 [PATCH] btrfs: declare TRACE_DEFINE_ENUM for each of show_flush_state enum Anand Jain
@ 2017-09-06 13:55 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-09-06 13:55 UTC (permalink / raw)
To: Anand Jain; +Cc: linux-btrfs, dsterba
On Wed, Aug 30, 2017 at 10:36:48PM +0800, Anand Jain wrote:
> So that perf can show the state symbol.
>
> Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-06 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30 14:36 [PATCH] btrfs: declare TRACE_DEFINE_ENUM for each of show_flush_state enum Anand Jain
2017-09-06 13:55 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).