From 001b263355c68e219fb64d25564c41a0ee07a274 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 1 Dec 2006 10:51:31 +0100 Subject: [PATCH] BTT patch: (3/3) time bounded trace analysis Added in -t and -T options to allow bounding of traces analyzed. Be forewarned: this can result in some excessive numbers of orphaned traces (partial IO streams before the -t tiem and after the -T time won't be analyzed). Signed-off-by: Alan D. Brunelle Signed-off-by: Jens Axboe --- btt/trace_complete.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'btt/trace_complete.c') diff --git a/btt/trace_complete.c b/btt/trace_complete.c index d8e7b5a..32c43b5 100644 --- a/btt/trace_complete.c +++ b/btt/trace_complete.c @@ -74,8 +74,11 @@ static void run_comp(struct io *c_iop, struct io *top, struct list_head *rmhd) dump_level--; } } + dump_iop(per_io_ofp, c_iop, NULL, 0); + LIST_DEL(&c_iop->c_pending); + del_retry(c_iop); list_add_tail(&c_iop->f_head, rmhd); } @@ -122,7 +125,6 @@ int retry_complete(struct io *c_iop) if (!ready_complete(c_iop, c_iop)) return 0; - del_retry(c_iop); run_complete(c_iop); return 1; } -- cgit v1.2.3