[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A1B6A2F.2040703@cn.fujitsu.com>
Date: Tue, 26 May 2009 12:03:59 +0800
From: Li Zefan <lizf@...fujitsu.com>
To: Ingo Molnar <mingo@...e.hu>
CC: Jens Axboe <jens.axboe@...cle.com>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Tom Zanussi <tzanussi@...il.com>,
"Theodore Ts'o" <tytso@....edu>,
Steven Whitehouse <swhiteho@...hat.com>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Jeff Moyer <jmoyer@...hat.com>,
Christoph Hellwig <hch@...radead.org>,
FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH v2 0/2] tracing/events: convert block trace points to TRACE_EVENT()
Here's the v2 patchset to convert block trace points to TRACE_EVENT().
The biggest change is to use __string() instead of __array() to store
hex dump of rq->cmd, so we minimize the memory occupied by rq->cmd from
48 bytes to 3 bytes for fs events. Also some fixes and cleanups.
I haven't had time to benchmark the ioctl blktrace versus the splice
based TRACE_EVENT tracing, but will do in these 2 days.
This patchset should be applied on top of:
"[PATCH] tracing/events: change the type of __str_loc_item to unsigned short"
(http://lkml.org/lkml/2009/5/21/17)
which hasn't been applied to tip tree.
[PATCH v2 1/2] tracing/events: make __string() more general
[PATCH v2 2/2] tracing/events: convert block trace points to TRACE_EVENT()
---
block/blk-core.c | 16 +-
block/elevator.c | 8 +-
drivers/md/dm.c | 5 +-
fs/bio.c | 3 +-
include/linux/blktrace_api.h | 13 +
include/trace/block.h | 76 -------
include/trace/events/block.h | 483 ++++++++++++++++++++++++++++++++++++++++
include/trace/events/irq.h | 12 +-
include/trace/events/lockdep.h | 8 +-
include/trace/ftrace.h | 21 +-
kernel/trace/Makefile | 5 +-
kernel/trace/blktrace.c | 78 +++++++-
mm/bounce.c | 5 +-
13 files changed, 611 insertions(+), 122 deletions(-)
A sample output:
konsole-2057 [001] 870.751689: block_unplug_io: [konsole] 2
<idle>-0 [001] 870.759674: block_rq_complete: 8,0 R () 115104312 + 24 [0]
<idle>-0 [001] 870.760744: block_rq_complete: 8,0 R () 115104344 + 120 [0]
konsole-2057 [001] 870.761233: block_remap: 8,0 R 115132584 + 256 <- (8,8) 12428976
konsole-2057 [001] 870.761234: block_bio_queue: 8,0 R 115132584 + 256 [konsole]
konsole-2057 [001] 870.761239: block_getrq: 8,0 R 115132584 + 256 [konsole]
konsole-2057 [001] 870.761243: block_plug: [konsole]
konsole-2057 [001] 870.761244: block_rq_insert: 8,0 R 0 () 115132584 + 256 [konsole]
konsole-2057 [001] 870.761248: block_rq_issue: 8,0 R 0 () 115132584 + 256 [konsole]
konsole-2057 [001] 870.761311: block_unplug_io: [konsole] 1
<idle>-0 [001] 870.770299: block_rq_complete: 8,0 R () 115132584 + 256 [0]
konsole-2057 [001] 870.770603: block_remap: 8,0 R 115143352 + 8 <- (8,8) 12439744
konsole-2057 [001] 870.770604: block_bio_queue: 8,0 R 115143352 + 8 [konsole]
konsole-2057 [001] 870.770609: block_getrq: 8,0 R 115143352 + 8 [konsole]
konsole-2057 [001] 870.770612: block_plug: [konsole]
konsole-2057 [001] 870.770614: block_rq_insert: 8,0 R 0 () 115143352 + 8 [konsole]
konsole-2057 [001] 870.770666: block_remap: 8,0 R 115143376 + 104 <- (8,8) 12439768
konsole-2057 [001] 870.770667: block_bio_queue: 8,0 R 115143376 + 104 [konsole]
konsole-2057 [001] 870.770672: block_getrq: 8,0 R 115143376 + 104 [konsole]
konsole-2057 [001] 870.770674: block_rq_insert: 8,0 R 0 () 115143376 + 104 [konsole]
konsole-2057 [001] 870.770678: block_rq_issue: 8,0 R 0 () 115143352 + 8 [konsole]
konsole-2057 [001] 870.770736: block_rq_issue: 8,0 R 0 () 115143376 + 104 [konsole]
konsole-2057 [001] 870.770744: block_unplug_io: [konsole] 2
<idle>-0 [001] 870.780006: block_rq_complete: 8,0 R () 115143352 + 8 [0]
konsole-2057 [001] 870.780423: block_remap: 8,0 R 115184728 + 168 <- (8,8) 12481120
konsole-2057 [001] 870.780424: block_bio_queue: 8,0 R 115184728 + 168 [konsole]
konsole-2057 [001] 870.780429: block_getrq: 8,0 R 115184728 + 168 [konsole]
konsole-2057 [001] 870.780432: block_plug: [konsole]
konsole-2057 [001] 870.780433: block_rq_insert: 8,0 R 0 () 115184728 + 168 [konsole]
konsole-2057 [001] 870.780437: block_rq_issue: 8,0 R 0 () 115184728 + 168 [konsole]
konsole-2057 [001] 870.780483: block_remap: 8,0 R 115187448 + 88 <- (8,8) 12483840
konsole-2057 [001] 870.780484: block_bio_queue: 8,0 R 115187448 + 88 [konsole]
konsole-2057 [001] 870.780488: block_getrq: 8,0 R 115187448 + 88 [konsole]
konsole-2057 [001] 870.780490: block_rq_insert: 8,0 R 0 () 115187448 + 88 [konsole]
konsole-2057 [001] 870.780496: block_unplug_io: [konsole] 3
<idle>-0 [001] 870.781010: block_rq_complete: 8,0 R () 115143376 + 104 [0]
<idle>-0 [001] 870.781076: block_rq_issue: 8,0 R 0 () 115187448 + 88 [swapper]
<idle>-0 [001] 870.792032: block_rq_complete: 8,0 R () 115184728 + 168 [0]
X-1702 [001] 870.801456: block_rq_complete: 8,0 R () 115187448 + 88 [0]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists