From: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
To: linux-btrace@vger.kernel.org
Subject: Updated btt portion of the tree
Date: Thu, 31 Jan 2008 18:23:12 +0000 [thread overview]
Message-ID: <47A21210.3070007@hp.com> (raw)
[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
reply other threads:[~2008-01-31 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47A21210.3070007@hp.com \
--to=alan.brunelle@hp.com \
--cc=linux-btrace@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).