summaryrefslogtreecommitdiff
path: root/btt/trace_queue.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2008-05-09 13:46:47 -0400
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-05-09 13:46:47 -0400
commit354db430eeaced3b8234668e6527910875d54e50 (patch)
tree99576cf2e4861f7a4868501197b09465440dcb7d /btt/trace_queue.c
parentf028c9584055737f429979e18ab7436583ed41b5 (diff)
downloadblktrace-354db430eeaced3b8234668e6527910875d54e50.tar.gz
blktrace-354db430eeaced3b8234668e6527910875d54e50.tar.bz2
Added S2G times + fixed up -X output to include X2X
Including Q2Q, Q2G, S2G, G2I, Q2M, I2D, M2D, D2C, Q2C. S2G is part of Q2G, and shows the number of times we had to sleep to get a request. Ignored 0-byte I/Os - coming from barrier I/Os...
Diffstat (limited to 'btt/trace_queue.c')
-rw-r--r--btt/trace_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/btt/trace_queue.c b/btt/trace_queue.c
index 1237f34..82c5760 100644
--- a/btt/trace_queue.c
+++ b/btt/trace_queue.c
@@ -43,6 +43,9 @@ static void handle_queue(struct io *q_iop)
void trace_queue(struct io *q_iop)
{
+ if (q_iop->t.bytes == 0)
+ return;
+
if (io_setup(q_iop, IOP_Q))
handle_queue(q_iop);
else