summaryrefslogtreecommitdiff
path: root/btt/seek.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2008-02-13 11:46:22 -0500
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-02-13 11:47:22 -0500
commit8b10aae0cd4137f1cc9848181e4f45a9fa20de24 (patch)
tree09a9447aa680f1d67d4c4e93f2b041ce8b544065 /btt/seek.c
parentc8aea612abc714072e346366cb0e5cf9da8a2f5f (diff)
downloadblktrace-8b10aae0cd4137f1cc9848181e4f45a9fa20de24.tar.gz
blktrace-8b10aae0cd4137f1cc9848181e4f45a9fa20de24.tar.bz2
Cleanups: Fixed IOPs in btt left over at end of run
o Using valgrind, determined we had Q IOPs left over that weren't used. Added "all" list, and then deleted these at end. o Removed old debug stuff (COUNT_IOS, DEBUG, ...) o Fixed a bunch of white space at end of lines. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Diffstat (limited to 'btt/seek.c')
-rw-r--r--btt/seek.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/btt/seek.c b/btt/seek.c
index cbbd1a3..a5ba84b 100644
--- a/btt/seek.c
+++ b/btt/seek.c
@@ -176,7 +176,7 @@ double seeki_mean(void *handle)
return sip->total_sectors / sip->tot_seeks;
}
-int __median(struct rb_node *n, long long sofar, long long target, long
+int __median(struct rb_node *n, long long sofar, long long target, long
long *rvp)
{
struct seek_bkt *sbp;
@@ -203,7 +203,7 @@ long long seeki_median(void *handle)
struct seeki *sip = handle;
if (sip->root.rb_node)
- (void)__median(sip->root.rb_node, 0LL, sip->tot_seeks / 2,
+ (void)__median(sip->root.rb_node, 0LL, sip->tot_seeks / 2,
&rval);
return rval;
@@ -224,7 +224,7 @@ void __mode(struct rb_node *n, struct mode *mp)
else if (sbp->nseeks > mp->most_seeks)
mp->nmds = 0;
else if (sbp->nseeks == mp->most_seeks)
- mp->modes = realloc(mp->modes, (mp->nmds + 1) *
+ mp->modes = realloc(mp->modes, (mp->nmds + 1) *
sizeof(long long));
else
return;
@@ -239,7 +239,7 @@ int seeki_mode(void *handle, struct mode *mp)
struct rb_root *root = &sip->root;
memset(mp, 0, sizeof(struct mode));
- if (root->rb_node)
+ if (root->rb_node)
__mode(root->rb_node, mp);
return mp->nmds;