All of lore.kernel.org
 help / color / mirror / Atom feed
* Updated btt portion of the tree
@ 2008-01-31 18:23 Alan D. Brunelle
  0 siblings, 0 replies; only message in thread
From: Alan D. Brunelle @ 2008-01-31 18:23 UTC (permalink / raw)
  To: linux-btrace


[PATCH] Fixed excess bucket information for unplug histograms.

(Jens: the push worked OK...)

---
 btt/unplug_hist.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/btt/unplug_hist.c b/btt/unplug_hist.c
index 4971f31..aaa4c39 100644
--- 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));
-- 
1.5.2.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-31 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 18:23 Updated btt portion of the tree Alan D. Brunelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.