From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: LKML <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@elte.hu>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
liubo <liubo2009@cn.fujitsu.com>
Subject: [RFC patch 32/32] trace event btrfs remove semicolons
Date: Tue, 03 May 2011 19:10:55 -0400 [thread overview]
Message-ID: <20110503231429.411314480@efficios.com> (raw)
In-Reply-To: 20110503231023.968960757@efficios.com
[-- Attachment #1: trace-event-btrfs-remove-semicolons.patch --]
[-- Type: text/plain, Size: 5951 bytes --]
Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array
of events, thus saving space for trace event probes.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Frederic Weisbecker <fweisbec@gmail.com>
CC: Ingo Molnar <mingo@elte.hu>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: liubo <liubo2009@cn.fujitsu.com>
---
include/trace/events/btrfs.h | 52 +++++++++++++++++++++----------------------
1 file changed, 26 insertions(+), 26 deletions(-)
Index: linux-2.6-lttng/include/trace/events/btrfs.h
===================================================================
--- linux-2.6-lttng.orig/include/trace/events/btrfs.h
+++ linux-2.6-lttng/include/trace/events/btrfs.h
@@ -63,7 +63,7 @@ TRACE_EVENT(btrfs_transaction_commit,
TP_printk("root = %llu(%s), gen = %llu",
show_root_type(__entry->root_objectid),
(unsigned long long)__entry->generation)
-);
+)
DECLARE_EVENT_CLASS(btrfs__inode,
@@ -101,28 +101,28 @@ DECLARE_EVENT_CLASS(btrfs__inode,
(unsigned long long)__entry->disk_i_size,
(unsigned long long)__entry->last_trans,
(unsigned long long)__entry->logged_trans)
-);
+)
DEFINE_EVENT(btrfs__inode, btrfs_inode_new,
TP_PROTO(struct inode *inode),
TP_ARGS(inode)
-);
+)
DEFINE_EVENT(btrfs__inode, btrfs_inode_request,
TP_PROTO(struct inode *inode),
TP_ARGS(inode)
-);
+)
DEFINE_EVENT(btrfs__inode, btrfs_inode_evict,
TP_PROTO(struct inode *inode),
TP_ARGS(inode)
-);
+)
#define __show_map_type(type) \
__print_symbolic(type, \
@@ -183,7 +183,7 @@ TRACE_EVENT(btrfs_get_extent,
(unsigned long long)__entry->block_len,
show_map_flags(__entry->flags),
__entry->refs, __entry->compress_type)
-);
+)
#define show_ordered_flags(flags) \
__print_symbolic(flags, \
@@ -240,35 +240,35 @@ DECLARE_EVENT_CLASS(btrfs__ordered_exten
(unsigned long long)__entry->bytes_left,
show_ordered_flags(__entry->flags),
__entry->compress_type, __entry->refs)
-);
+)
DEFINE_EVENT(btrfs__ordered_extent, btrfs_ordered_extent_add,
TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
TP_ARGS(inode, ordered)
-);
+)
DEFINE_EVENT(btrfs__ordered_extent, btrfs_ordered_extent_remove,
TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
TP_ARGS(inode, ordered)
-);
+)
DEFINE_EVENT(btrfs__ordered_extent, btrfs_ordered_extent_start,
TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
TP_ARGS(inode, ordered)
-);
+)
DEFINE_EVENT(btrfs__ordered_extent, btrfs_ordered_extent_put,
TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
TP_ARGS(inode, ordered)
-);
+)
DECLARE_EVENT_CLASS(btrfs__writepage,
@@ -319,7 +319,7 @@ DECLARE_EVENT_CLASS(btrfs__writepage,
__entry->nonblocking, __entry->for_kupdate,
__entry->for_reclaim, __entry->range_cyclic,
(unsigned long)__entry->writeback_index)
-);
+)
DEFINE_EVENT(btrfs__writepage, __extent_writepage,
@@ -327,7 +327,7 @@ DEFINE_EVENT(btrfs__writepage, __extent_
struct writeback_control *wbc),
TP_ARGS(page, inode, wbc)
-);
+)
TRACE_EVENT(btrfs_writepage_end_io_hook,
@@ -360,7 +360,7 @@ TRACE_EVENT(btrfs_writepage_end_io_hook,
(unsigned long)__entry->ino, (unsigned long)__entry->index,
(unsigned long long)__entry->start,
(unsigned long long)__entry->end, __entry->uptodate)
-);
+)
TRACE_EVENT(btrfs_sync_file,
@@ -390,7 +390,7 @@ TRACE_EVENT(btrfs_sync_file,
show_root_type(__entry->root_objectid),
(unsigned long)__entry->ino, (unsigned long)__entry->parent,
__entry->datasync)
-);
+)
TRACE_EVENT(btrfs_sync_fs,
@@ -407,7 +407,7 @@ TRACE_EVENT(btrfs_sync_fs,
),
TP_printk("wait = %d", __entry->wait)
-);
+)
#define show_ref_action(action) \
__print_symbolic(action, \
@@ -454,7 +454,7 @@ TRACE_EVENT(btrfs_delayed_tree_ref,
show_root_type(__entry->parent),
show_root_type(__entry->ref_root),
__entry->level, show_ref_type(__entry->type))
-);
+)
TRACE_EVENT(btrfs_delayed_data_ref,
@@ -497,7 +497,7 @@ TRACE_EVENT(btrfs_delayed_data_ref,
(unsigned long long)__entry->owner,
(unsigned long long)__entry->offset,
show_ref_type(__entry->type))
-);
+)
TRACE_EVENT(btrfs_delayed_ref_head,
@@ -526,7 +526,7 @@ TRACE_EVENT(btrfs_delayed_ref_head,
(unsigned long long)__entry->num_bytes,
show_ref_action(__entry->action),
__entry->is_data)
-);
+)
#define show_chunk_type(type) \
__print_flags(type, "|", \
@@ -570,7 +570,7 @@ DECLARE_EVENT_CLASS(btrfs__chunk,
(unsigned long long)__entry->size,
__entry->num_stripes, __entry->sub_stripes,
show_chunk_type(__entry->type))
-);
+)
DEFINE_EVENT(btrfs__chunk, btrfs_chunk_alloc,
@@ -578,7 +578,7 @@ DEFINE_EVENT(btrfs__chunk, btrfs_chunk_
u64 offset, u64 size),
TP_ARGS(root, map, offset, size)
-);
+)
DEFINE_EVENT(btrfs__chunk, btrfs_chunk_free,
@@ -586,7 +586,7 @@ DEFINE_EVENT(btrfs__chunk, btrfs_chunk_
u64 offset, u64 size),
TP_ARGS(root, map, offset, size)
-);
+)
TRACE_EVENT(btrfs_cow_block,
@@ -621,7 +621,7 @@ TRACE_EVENT(btrfs_cow_block,
__entry->buf_level,
(unsigned long long)__entry->cow_start,
__entry->cow_level)
-);
+)
DECLARE_EVENT_CLASS(btrfs__reserved_extent,
@@ -645,21 +645,21 @@ DECLARE_EVENT_CLASS(btrfs__reserved_exte
show_root_type(__entry->root_objectid),
(unsigned long long)__entry->start,
(unsigned long long)__entry->len)
-);
+)
DEFINE_EVENT(btrfs__reserved_extent, btrfs_reserved_extent_alloc,
TP_PROTO(struct btrfs_root *root, u64 start, u64 len),
TP_ARGS(root, start, len)
-);
+)
DEFINE_EVENT(btrfs__reserved_extent, btrfs_reserved_extent_free,
TP_PROTO(struct btrfs_root *root, u64 start, u64 len),
TP_ARGS(root, start, len)
-);
+)
#endif /* _TRACE_BTRFS_H */
next prev parent reply other threads:[~2011-05-03 23:14 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 23:10 [RFC patch 00/32] TRACE_EVENT: cleanup for code-size reduction (v2) Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 01/32] TRACE_EVENT: gradual semicolon removal Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 02/32] trace event sample remove semicolons Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 03/32] trace event block " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 04/32] trace event ext4 " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 05/32] trace event irq " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 06/32] trace event jbd2 " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 07/32] trace event kmem " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 08/32] trace event kvm " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 09/32] trace event lock " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 10/32] trace event mce " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 11/32] trace event module " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 12/32] trace event napi " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 13/32] trace event net " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 14/32] trace event power " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 15/32] trace event sched remove trailing semicolon Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 16/32] trace event scsi remove semicolons Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 17/32] trace event signal " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 18/32] trace event skb " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 19/32] trace event syscalls " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 20/32] trace event timer " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 21/32] trace event vmscan " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 22/32] trace event workqueue " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 23/32] trace event writeback " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 24/32] trace event wireless " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 25/32] trace event video gpu " Mathieu Desnoyers
2011-05-04 0:21 ` Jesse Barnes
2011-05-04 1:51 ` Mathieu Desnoyers
2011-05-04 8:49 ` Jean Pihet
2011-05-04 13:33 ` Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 26/32] trace event gfs2 " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 27/32] trace event xfs " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 28/32] trace event powerpc " Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 29/32] trace event asoc: semicolon removal Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 30/32] trace event compaction remove semicolons Mathieu Desnoyers
2011-05-03 23:10 ` [RFC patch 31/32] trace event regulator " Mathieu Desnoyers
2011-05-04 8:56 ` Mark Brown
2011-05-03 23:10 ` Mathieu Desnoyers [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-02 21:11 [RFC patch 00/32] TRACE_EVENT: cleanup for code-size reduction Mathieu Desnoyers
2011-05-02 21:11 ` [RFC patch 32/32] trace event btrfs remove semicolons Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110503231429.411314480@efficios.com \
--to=mathieu.desnoyers@efficios.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liubo2009@cn.fujitsu.com \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox