From: Jens Axboe <jens.axboe@oracle.com>
To: linux-btrace@vger.kernel.org
Subject: Recent changes
Date: Wed, 21 Apr 2010 04:00:04 +0000 [thread overview]
Message-ID: <20100421040004.3CB4637A0C9@kernel.dk> (raw)
In-Reply-To: <46171742.iJ5w/0J1D3Q4P+M6%jens.axboe@oracle.com>
The following changes since commit 014b0ea19762341e217d463308710c3662d50e9c:
Merge branch 'master' of ssh://router.home.kernel.dk/data/git/blktrace (2010-04-19 19:15:27 +0200)
are available in the git repository at:
git://git.kernel.dk/blktrace.git master
Edward Shishkin (5):
blktrace: avoid device duplication
blktrace: print correct usage
blktrace: add back conversion
blktrace: update blkiomon doc
blktrace: disable kill option - take 2
blkparse.c | 2 +-
blktrace.c | 12 ++++++++++--
btreplay/btreplay.c | 13 +++++++++++--
btt/args.c | 3 +--
doc/blkiomon.8 | 2 ++
doc/blktrace.8 | 24 ++++--------------------
6 files changed, 29 insertions(+), 27 deletions(-)
---
Diff of recent changes:
diff --git a/blkparse.c b/blkparse.c
index 9bd8023..ffad9b6 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -2702,7 +2702,7 @@ static char usage_str[] = "\n\n" \
static void usage(char *prog)
{
- fprintf(stderr, "Usage: %s %s %s", prog, blkparse_version, usage_str);
+ fprintf(stderr, "Usage: %s %s", prog, usage_str);
}
int main(int argc, char *argv[])
diff --git a/blktrace.c b/blktrace.c
index b4c919d..b9f9b68 100644
--- a/blktrace.c
+++ b/blktrace.c
@@ -442,7 +442,6 @@ static char usage_str[] = \
"\t-r Path to mounted debugfs, defaults to /sys/kernel/debug\n" \
"\t-o File(s) to send output to\n" \
"\t-D Directory to prepend to output file names\n" \
- "\t-k Kill a running trace\n" \
"\t-w Stop after defined time, in seconds\n" \
"\t-a Only trace specified actions. See documentation\n" \
"\t-A Give trace mask as a single value. See documentation\n" \
@@ -493,7 +492,7 @@ static inline void pdc_nev_update(struct devpath *dpp, int cpu, int nevents)
static void show_usage(char *prog)
{
- fprintf(stderr, "Usage: %s %s %s", prog, blktrace_version, usage_str);
+ fprintf(stderr, "Usage: %s %s", prog, usage_str);
}
/*
@@ -1200,8 +1199,17 @@ static int add_devpath(char *path)
{
int fd;
struct devpath *dpp;
+ struct list_head *p;
/*
+ * Verify device is not duplicated
+ */
+ __list_for_each(p, &devpaths) {
+ struct devpath *tmp = list_entry(p, struct devpath, head);
+ if (!strcmp(tmp->path, path))
+ return 0;
+ }
+ /*
* Verify device is valid before going too far
*/
fd = my_open(path, O_RDONLY | O_NONBLOCK);
diff --git a/btreplay/btreplay.c b/btreplay/btreplay.c
index 2d122ca..cba099a 100644
--- a/btreplay/btreplay.c
+++ b/btreplay/btreplay.c
@@ -1314,6 +1314,8 @@ static void reset_input_file(struct thr_info *tip)
*/
static void *replay_sub(void *arg)
{
+ int i;
+ char *mdev;
char path[MAXPATHLEN];
struct io_bunch bunch;
struct thr_info *tip = arg;
@@ -1321,8 +1323,15 @@ static void *replay_sub(void *arg)
pin_to_cpu(tip);
- sprintf(path, "/dev/%s", map_dev(tip->devnm));
-
+ mdev = map_dev(tip->devnm);
+ sprintf(path, "/dev/%s", mdev);
+ /*
+ * convert underscores to slashes to
+ * restore device names that have larger paths
+ */
+ for (i = 0; i < strlen(mdev); i++)
+ if (path[strlen("/dev/") + i] = '_')
+ path[strlen("/dev/") + i] = '/';
#ifdef O_NOATIME
oflags = O_NOATIME;
#else
diff --git a/btt/args.c b/btt/args.c
index 137c2f5..5c5078a 100644
--- a/btt/args.c
+++ b/btt/args.c
@@ -244,8 +244,7 @@ static char usage_str[] = \
static void usage(char *prog)
{
- fprintf(stderr, "Usage: %s %s %s", prog, bt_timeline_version,
- usage_str);
+ fprintf(stderr, "Usage: %s %s", prog, usage_str);
}
static FILE *setup_ofile(char *fname)
diff --git a/doc/blkiomon.8 b/doc/blkiomon.8
index dbed0df..aa5ece2 100644
--- a/doc/blkiomon.8
+++ b/doc/blkiomon.8
@@ -17,6 +17,8 @@ blkiomon is a block device I/O monitor. It periodically generates per-device
request size and request latency statistics from blktrace data. It provides
histograms as well as data that can be used to calculate min, max, average
and variance. For this purpose, it consumes D and C traces read from stdin.
+Note, that this doesn't work for logical volumes, as high-level drivers
+don't see the completion of the events (C).
There are options for binary output and human-readable output to files and
stdout. Output to a message queue is supported as well.
diff --git a/doc/blktrace.8 b/doc/blktrace.8
index 58e8f90..ab6a3f3 100644
--- a/doc/blktrace.8
+++ b/doc/blktrace.8
@@ -66,19 +66,10 @@ blktrace may also be run concurrently with blkparse to produce
.TP 2
\-
The default behaviour for blktrace is to run forever until explicitly
-killed by the user (via a control-C, or kill utility invocation).
-There are two ways to modify this:
-
-.TP 5
- 1.
-You may utilise the blktrace utility itself to kill
-a running trace -- via the \fB\-k\fR option.
-
-.TP 5
- 2.
-You can specify a run-time duration for blktrace via the
-\fB\-w\fR option -- then blktrace will run for the specified number
-of seconds, and then halt.
+killed by the user (via a control-C, or sending SIGINT signal to the
+process via invocation the kill (1) utility). Also you can specify a
+run-time duration for blktrace via the \fB\-w\fR option -- then
+blktrace will run for the specified number of seconds, and then halt.
.SH OPTIONS
@@ -119,13 +110,6 @@ Adds \fIdev\fR as a device to trace
Adds the devices found in \fIfile\fR as devices to trace
.RE
-\-k
-.br
-\-\-kill
-.RS
-Kill on-going trace
-.RE
-
\-n \fInum\-sub\fR
.br
\-\-num\-sub=\fInum-sub\fR
next prev parent reply other threads:[~2010-04-21 4:00 UTC|newest]
Thread overview: 102+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-07 3:56 Recent changes Jens Axboe
2007-04-14 4:00 ` Jens Axboe
2007-04-15 4:00 ` Jens Axboe
2007-04-17 4:00 ` Jens Axboe
2007-04-19 4:00 ` Jens Axboe
2007-05-12 4:00 ` Jens Axboe
2007-05-17 4:00 ` Jens Axboe
2007-05-22 4:00 ` Jens Axboe
2007-05-31 4:00 ` Jens Axboe
2007-06-01 4:00 ` Jens Axboe
2007-06-14 4:00 ` Jens Axboe
2007-07-19 4:00 ` Jens Axboe
2007-07-25 4:00 ` Jens Axboe
2007-07-31 4:00 ` Jens Axboe
2007-08-21 4:00 ` Jens Axboe
2007-08-27 4:00 ` Jens Axboe
2007-08-28 4:00 ` Jens Axboe
2007-08-29 4:00 ` Jens Axboe
2007-09-11 4:00 ` Jens Axboe
2007-10-02 4:00 ` Jens Axboe
2007-10-03 4:00 ` Jens Axboe
2007-10-06 4:00 ` Jens Axboe
2007-10-11 4:00 ` Jens Axboe
2007-10-30 5:00 ` Jens Axboe
2007-11-09 5:00 ` Jens Axboe
2007-11-14 5:00 ` Jens Axboe
2007-11-15 5:00 ` Jens Axboe
2007-12-07 5:00 ` Jens Axboe
2007-12-08 5:00 ` Jens Axboe
2007-12-10 5:00 ` Jens Axboe
2007-12-11 5:00 ` Jens Axboe
2008-01-04 5:00 ` Jens Axboe
2008-02-01 5:00 ` Jens Axboe
2008-02-06 5:00 ` Jens Axboe
2008-02-09 5:00 ` Jens Axboe
2008-02-13 5:00 ` Jens Axboe
2008-02-14 5:00 ` Jens Axboe
2008-02-23 5:00 ` Jens Axboe
2008-04-03 4:00 ` Jens Axboe
2008-04-03 7:04 ` Jens Axboe
2008-05-06 4:00 ` Jens Axboe
2008-05-09 4:00 ` Jens Axboe
2008-05-10 4:00 ` Jens Axboe
2008-05-13 4:00 ` Jens Axboe
2008-05-19 4:00 ` Jens Axboe
2008-05-22 4:00 ` Jens Axboe
2008-05-28 4:00 ` Jens Axboe
2008-07-02 4:00 ` Jens Axboe
2008-08-16 4:00 ` Jens Axboe
2008-09-27 4:00 ` Jens Axboe
2008-10-11 4:00 ` Jens Axboe
2008-10-17 4:00 ` Jens Axboe
2008-10-18 4:00 ` Jens Axboe
2008-10-21 4:00 ` Jens Axboe
2008-10-29 5:00 ` Jens Axboe
2008-10-31 5:00 ` Jens Axboe
2008-11-11 5:00 ` Jens Axboe
2008-11-12 5:00 ` Jens Axboe
2008-11-13 5:00 ` Jens Axboe
2009-01-13 5:00 ` Jens Axboe
2009-01-22 5:00 ` Jens Axboe
2009-01-24 5:00 ` Jens Axboe
2009-02-10 5:00 ` Jens Axboe
2009-02-12 5:00 ` Jens Axboe
2009-02-13 5:00 ` Jens Axboe
2009-02-14 5:00 ` Jens Axboe
2009-02-18 5:00 ` Jens Axboe
2009-02-19 5:00 ` Jens Axboe
2009-03-13 5:00 ` Jens Axboe
2009-03-24 5:00 ` Jens Axboe
2009-03-26 5:00 ` Jens Axboe
2009-03-27 5:00 ` Jens Axboe
2009-04-07 4:00 ` Jens Axboe
2009-04-18 4:00 ` Jens Axboe
2009-04-22 4:00 ` Jens Axboe
2009-05-13 4:00 ` Jens Axboe
2009-08-15 4:00 ` Jens Axboe
2009-09-02 4:00 ` Jens Axboe
2009-10-09 4:00 ` Jens Axboe
2009-10-10 4:00 ` Jens Axboe
2010-02-23 5:00 ` Jens Axboe
2010-03-23 5:00 ` Jens Axboe
2010-04-20 4:00 ` Jens Axboe
2010-04-21 4:00 ` Jens Axboe [this message]
2010-09-17 4:00 ` Jens Axboe
2010-10-12 15:38 ` Edward Shishkin
2010-10-12 16:52 ` Jens Axboe
2010-10-23 4:00 ` Jens Axboe
2010-12-02 5:00 ` Jens Axboe
2010-12-20 4:36 ` Duy Le (Dan)
2011-01-12 5:00 ` Jens Axboe
2011-01-15 5:00 ` Jens Axboe
2011-02-10 5:00 ` Jens Axboe
2011-03-17 5:00 ` Jens Axboe
2011-05-27 4:00 ` Jens Axboe
2011-08-04 4:00 ` Jens Axboe
2011-08-04 11:50 ` Edward Shishkin
2011-08-04 12:08 ` Jens Axboe
2011-08-12 4:00 ` Jens Axboe
2012-02-01 5:00 ` Jens Axboe
2012-02-02 5:00 ` Jens Axboe
2012-02-28 5:00 ` Jens Axboe
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=20100421040004.3CB4637A0C9@kernel.dk \
--to=jens.axboe@oracle.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).