projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461afe8
)
Fixed excess bucket information for unplug histograms.
author
Alan D. Brunelle
<adb@bannor.(none)>
Thu, 31 Jan 2008 18:02:24 +0000
(13:02 -0500)
committer
Alan D. Brunelle
<adb@bannor.(none)>
Thu, 31 Jan 2008 18:02:24 +0000
(13:02 -0500)
btt/unplug_hist.c
patch
|
blob
|
blame
|
history
diff --git
a/btt/unplug_hist.c
b/btt/unplug_hist.c
index 4971f31298fa3d9f1b85f06554fbcb4f9ee8fc24..aaa4c39116e27db6d489b069069ec2e797311e02 100644
(file)
--- a/
btt/unplug_hist.c
+++ b/
btt/unplug_hist.c
@@
-23,7
+23,7
@@
#define BKT_WIDTH 5
#define MAX_BKT 19
#define EXCESS_BKT 20
-#define NBKTS
EXCESS_BKT
+#define NBKTS
(EXCESS_BKT + 1)
struct hist_bkt {
__u32 dev;
@@
-56,7
+56,7
@@
void unplug_hist_add(struct io *u_iop)
struct hist_bkt *hbp = dip->unplug_hist_handle;
idx = (n_unplugs / BKT_WIDTH);
- if (idx >
MAX
_BKT)
+ if (idx >
EXCESS
_BKT)
idx = EXCESS_BKT;
assert((0 <= idx) && (idx <= EXCESS_BKT));