summaryrefslogtreecommitdiff
path: root/btt/trace_queue.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <Alan.Brunelle@hp.com>2007-02-26 20:44:24 +0100
committerJens Axboe <axboe@carl.home.kernel.dk>2007-02-26 20:44:24 +0100
commitfa0ab85de6801b1ebfddf9b697ac0293c14c3e00 (patch)
treeb26ca7fa52175ac856912bc2318e04da04aa715d /btt/trace_queue.c
parenta6c42403c52df673378c30586f673b5fa86b4122 (diff)
downloadblktrace-fa0ab85de6801b1ebfddf9b697ac0293c14c3e00.tar.gz
blktrace-fa0ab85de6801b1ebfddf9b697ac0293c14c3e00.tar.bz2
Add Q and D histograms (based upon IO size)
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'btt/trace_queue.c')
-rw-r--r--btt/trace_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/btt/trace_queue.c b/btt/trace_queue.c
index 676684d..ea285e3 100644
--- a/btt/trace_queue.c
+++ b/btt/trace_queue.c
@@ -71,6 +71,8 @@ void trace_queue(struct io *q_iop)
update_qregion(&all_regions, q_iop->t.time);
dip_update_q(q_iop->dip, q_iop);
pip_update_q(q_iop);
+ if (!remapper_dev(q_iop->t.device))
+ update_q_histo(q_iop->t.bytes);
}
else
io_release(q_iop);