summaryrefslogtreecommitdiff
path: root/target.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-24 15:43:29 -0600
committerJens Axboe <axboe@kernel.dk>2018-10-24 15:43:29 -0600
commitfcd4e7444e4123b16b307a7ff390771842eab494 (patch)
treea236b50a85f7994852ee319cf2d5b6151639c3ff /target.c
parent4d6d051389d73ea1c900735eb98e9779dc745c97 (diff)
downloadfio-fcd4e7444e4123b16b307a7ff390771842eab494.tar.gz
fio-fcd4e7444e4123b16b307a7ff390771842eab494.tar.bz2
target: fixeslatency-probe
1) Use parent for should_account(), if we have a parent 2) Only sum step stats if src has them, to prevent overwriting destination stats in the parent. 3) Pretty up the normal output a bit Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'target.c')
-rw-r--r--target.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target.c b/target.c
index d372ff1b..bc153008 100644
--- a/target.c
+++ b/target.c
@@ -296,7 +296,12 @@ void lat_step_report(struct thread_stat *ts, struct buf_output *out)
if (!ls->iops[j])
continue;
- __log_buf(out, " %s: iops=%llu, lat=%.1f nsec\n",
+ if (!j)
+ __log_buf(out, " [%2d] ", i);
+ else
+ __log_buf(out, " ");
+
+ __log_buf(out, "%5s: iops=%llu, lat=%.1f nsec\n",
io_ddir_name(j),
(unsigned long long) ls->iops[j],
ls->avg[j].u.f);