summaryrefslogtreecommitdiff
path: root/btt/latency.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2008-11-10 10:35:44 -0500
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-11-10 10:35:44 -0500
commite47ada103e028a691d296d09d0bc673a3af6a3dc (patch)
tree790fa5a33df3072844e26a332e3fcf4e678a07e8 /btt/latency.c
parentcdc033a3e6615142697e99b6be43319b8b8233e9 (diff)
downloadblktrace-e47ada103e028a691d296d09d0bc673a3af6a3dc.tar.gz
blktrace-e47ada103e028a691d296d09d0bc673a3af6a3dc.tar.bz2
Added in -z to provide running waiting-for-issue latencies
Diffstat (limited to 'btt/latency.c')
-rw-r--r--btt/latency.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/btt/latency.c b/btt/latency.c
index 4fb02d5..0c6e55d 100644
--- a/btt/latency.c
+++ b/btt/latency.c
@@ -51,6 +51,7 @@ FILE *latency_open(__u32 device, char *name, char *post)
void latency_init(struct d_info *dip)
{
+ dip->q2d_ofp = latency_open(dip->device, q2d_name, "q2d");
dip->d2c_ofp = latency_open(dip->device, d2c_name, "d2c");
dip->q2c_ofp = latency_open(dip->device, q2c_name, "q2c");
}
@@ -60,6 +61,12 @@ void latency_clean(void)
clean_files(&all_files);
}
+void latency_q2d(struct d_info *dip, __u64 tstamp, __u64 latency)
+{
+ plat_x2c(dip->q2d_plat_handle, tstamp, latency);
+ latency_out(dip->q2d_ofp, tstamp, latency);
+}
+
void latency_d2c(struct d_info *dip, __u64 tstamp, __u64 latency)
{
plat_x2c(dip->d2c_plat_handle, tstamp, latency);