tracing: Convert some ext4 events to DEFINE_TRACE
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 26 Nov 2009 07:07:36 +0000 (15:07 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Nov 2009 08:14:05 +0000 (09:14 +0100)
commitb5eb34c3592545c756e50d882c08417eb60740a7
tree222b0a0fd4a834573484b3b40917f56b7a24e8eb
parent071688f36e7eba3e37b2fc48e35bfdab99b80b4d
tracing: Convert some ext4 events to DEFINE_TRACE

Use DECLARE_EVENT_CLASS to remove duplicate code:

   text    data     bss     dec     hex filename
 294695    6104     340  301139   49853 fs/ext4/ext4.o.old
 289983    6104     324  296411   485db fs/ext4/ext4.o

5 events are convertd:

  ext4__write_begin: ext4_write_begin, ext4_da_write_begin
  ext4__write_end: ext4_{ordered, writeback, journalled}_write_end

No change in functionality.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B0E2938.2040708@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/events/ext4.h