summaryrefslogtreecommitdiff
path: root/btt/trace_complete.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-01 10:51:31 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-12-01 10:51:31 +0100
commit001b263355c68e219fb64d25564c41a0ee07a274 (patch)
tree635e6489da1f8d58492ac25fa642083ae6386233 /btt/trace_complete.c
parent095181f283c440c7669f2c14aef5e84c80ff433e (diff)
downloadblktrace-001b263355c68e219fb64d25564c41a0ee07a274.tar.gz
blktrace-001b263355c68e219fb64d25564c41a0ee07a274.tar.bz2
[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 <Alan.Brunelle@hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'btt/trace_complete.c')
-rw-r--r--btt/trace_complete.c4
1 files changed, 3 insertions, 1 deletions
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;
}