summaryrefslogtreecommitdiff
path: root/btt/proc.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <Alan.Brunelle@hp.com>2007-12-10 13:41:37 -0500
committerAlan D. Brunelle <Alan.Brunelle@hp.com>2007-12-10 13:41:37 -0500
commitae6d30f4475181d685d1f33faf056755803f189b (patch)
tree461cfc69aacbe6536798af8291f55c3872442b1c /btt/proc.c
parenta84a97fdf8ce07ccda8dcc4f32f0df2291f2f54f (diff)
downloadblktrace-ae6d30f4475181d685d1f33faf056755803f189b.tar.gz
blktrace-ae6d30f4475181d685d1f33faf056755803f189b.tar.bz2
Separated out g/i/m trace handling.
Also separated out DM-device calculations.
Diffstat (limited to 'btt/proc.c')
-rw-r--r--btt/proc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/btt/proc.c b/btt/proc.c
index 0756320..5818db4 100644
--- a/btt/proc.c
+++ b/btt/proc.c
@@ -214,7 +214,12 @@ void add_process(__u32 pid, char *name)
void pip_update_q(struct io *iop)
{
if (iop->pip) {
- update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q, iop->t.time);
+ if (remapper_dev(iop->dip->device))
+ update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q_dm,
+ iop->t.time);
+ else
+ update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q,
+ iop->t.time);
update_qregion(&iop->pip->regions, iop->t.time);
}
}