linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 4/6] blktrace: blktrace documentation update
@ 2010-07-30 14:04 Edward Shishkin
  2010-07-30 14:38 ` Alan D. Brunelle
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Edward Shishkin @ 2010-07-30 14:04 UTC (permalink / raw)
  To: linux-btrace

[-- Attachment #1: Type: text/plain, Size: 67 bytes --]


-- 
Edward O. Shishkin
Principal Software Engineer
Red Hat Czech


[-- Attachment #2: 11-blktrace-fix-595620.patch --]
[-- Type: text/plain, Size: 3302 bytes --]

Fixup for 595620.

Document undocumented blktrace options.
Update the man pages.

Signed-off-by: Edward Shishkin <edward@redhat.com>
---
--- blktrace-1.0.1.orig/blktrace.c
+++ blktrace-1.0.1/blktrace.c
@@ -435,9 +435,24 @@
 	}
 };
 
-static char usage_str[] = \
-	"-d <dev> [ -r debugfs path ] [ -o <output> ] [-k ] [ -w time ]\n" \
-	"[ -a action ] [ -A action mask ] [ -I  <devs file> ] [ -v ]\n\n" \
+static char usage_str[] = "\n\n" \
+	"-d <dev>             | --dev=<dev>\n" \
+        "[ -r <debugfs path>  | --relay=<debugfs path> ]\n" \
+        "[ -o <file>          | --output=<file>]\n" \
+        "[ -D <dir>           | --output-dir=<dir>\n" \
+        "[ -w <time>          | --stopwatch=<time>]\n" \
+        "[ -a <action field>  | --act-mask=<action field>]\n" \
+        "[ -A <action mask>   | --set-mask=<action mask>]\n" \
+        "[ -b <size>          | --buffer-size]\n" \
+        "[ -n <number>        | --num-sub-buffers=<number>]\n" \
+        "[ -l                 | --listen]\n" \
+        "[ -h <hostname>      | --host=<hostname>]\n" \
+        "[ -p <port number>   | --port=<port number>]\n" \
+        "[ -s                 | --no-sendfile]\n" \
+        "[ -I <devs file>     | --input-devs=<devs file>]\n" \
+        "[ -v <version>       | --version]\n" \
+        "[ -V <version>       | --version]\n" \
+
 	"\t-d Use specified device. May also be given last after options\n" \
 	"\t-r Path to mounted debugfs, defaults to /sys/kernel/debug\n" \
 	"\t-o File(s) to send output to\n" \
@@ -452,6 +467,7 @@
 	"\t-p Network port to use (default 8462)\n" \
 	"\t-s Make the network client NOT use sendfile() to transfer data\n" \
 	"\t-I Add devices found in <devs file>\n" \
+	"\t-v Print program version info\n" \
 	"\t-V Print program version info\n\n";
 
 static void clear_events(struct pollfd *pfd)
--- blktrace-1.0.1.orig/doc/blktrace.8
+++ blktrace-1.0.1/doc/blktrace.8
@@ -105,23 +105,59 @@
 
 \-I \fIfile\fR
 .br
-\-\-input-devs=\fIfile\fR 
+\-\-input\-devs=\fIfile\fR
 .RS
 Adds the devices found in \fIfile\fR as devices to trace
 .RE
 
 \-n \fInum\-sub\fR 
 .br
-\-\-num\-sub=\fInum-sub\fR    
+\-\-num\-sub\-buffers=\fInum-sub\fR
 .RS
 Specifies number of buffers to use. blktrace defaults to 4 sub buffers.
 .RE
 
-\-o \fIfile\fR 
+\-l
 .br
-\-\-output=\fIfile\fR        
+\-\-listen
 .RS
-Prepend \fIfile\fR to output file name(s)  
+Run in network listen mode (blktrace server)
+.RE
+
+\-h \fIhostname\fR
+.br
+\-\-host=\fIhostname\fR
+.RS
+Run in network client mode, connecting to the given host
+.RE
+
+\-p \fInumber\fR
+.br
+\-\-port=\fInumber\fR
+.RS
+Network port to use (default 8462)
+.RE
+
+\-s
+.br
+\-\-no\-sendfile
+.RS
+Make the network client NOT use sendfile() to transfer data
+.RE
+
+\-o \fIbasename\fR
+.br
+\-\-output=\fIbasename\fR
+.RS
+Specifies base name for input files. Default is device.blktrace.cpu.
+Specifying -o - runs in live mode with blkparse (writing data to standard out).
+.RE
+
+\-D \fIdir\fR
+.br
+\-\-output\-dir=\fIdir\fR
+.RS
+Prepend \fIfile\fR to output file name(s)
 .RE
 
 \-r \fIrel-path\fR
@@ -131,9 +167,17 @@
 Specifies debugfs mount point  
 .RE
 
+\-v
+.br
+\-\-version
+.RS
+Outputs version
+.RE
+
 \-V               
 .br
-\-\-version                  
+\-\-version
+.RS
 Outputs version  
 .RE
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch 4/6] blktrace: blktrace documentation update
  2010-07-30 14:04 [patch 4/6] blktrace: blktrace documentation update Edward Shishkin
@ 2010-07-30 14:38 ` Alan D. Brunelle
  2010-07-30 14:45 ` Alan D. Brunelle
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Alan D. Brunelle @ 2010-07-30 14:38 UTC (permalink / raw)
  To: linux-btrace

On 07/30/2010 10:04 AM, Edward Shishkin wrote:
>

I do believe you are missing:

'k' / 'kill'
'w' / 'stopwatch'

for this patch, could you add those and resend?

Thanks,
Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch 4/6] blktrace: blktrace documentation update
  2010-07-30 14:04 [patch 4/6] blktrace: blktrace documentation update Edward Shishkin
  2010-07-30 14:38 ` Alan D. Brunelle
@ 2010-07-30 14:45 ` Alan D. Brunelle
  2010-07-30 14:47 ` Alan D. Brunelle
  2010-07-30 14:49 ` Edward Shishkin
  3 siblings, 0 replies; 5+ messages in thread
From: Alan D. Brunelle @ 2010-07-30 14:45 UTC (permalink / raw)
  To: linux-btrace

On 07/30/2010 10:38 AM, Alan D. Brunelle wrote:
> On 07/30/2010 10:04 AM, Edward Shishkin wrote:
>>
>
> I do believe you are missing:
>
> 'k' / 'kill'
> 'w' / 'stopwatch'
>
> for this patch, could you add those and resend?

Actually, just add in the 'w' / 'stopwatch' one - I see that you had 
previously removed the documentation for 'k' in commit

fb7f86674a516ddff0d60bfab3bd284a4812075f

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch 4/6] blktrace: blktrace documentation update
  2010-07-30 14:04 [patch 4/6] blktrace: blktrace documentation update Edward Shishkin
  2010-07-30 14:38 ` Alan D. Brunelle
  2010-07-30 14:45 ` Alan D. Brunelle
@ 2010-07-30 14:47 ` Alan D. Brunelle
  2010-07-30 14:49 ` Edward Shishkin
  3 siblings, 0 replies; 5+ messages in thread
From: Alan D. Brunelle @ 2010-07-30 14:47 UTC (permalink / raw)
  To: linux-btrace

On 07/30/2010 10:38 AM, Alan D. Brunelle wrote:
> On 07/30/2010 10:04 AM, Edward Shishkin wrote:
>>
>
> I do believe you are missing:
>
> 'k' / 'kill'
> 'w' / 'stopwatch'
>
> for this patch, could you add those and resend?
>
> Thanks,
> Alan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Oh, and your patch does have the 'w' 'stopwatch' in it (missed it during 
review). <sigh>

Acked-by: Alan D. Brunelle <alan.brunelle@hp.com>

(Although that "approval" doesn't mean much after I messed up so bad 
with the review... ;-) )

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch 4/6] blktrace: blktrace documentation update
  2010-07-30 14:04 [patch 4/6] blktrace: blktrace documentation update Edward Shishkin
                   ` (2 preceding siblings ...)
  2010-07-30 14:47 ` Alan D. Brunelle
@ 2010-07-30 14:49 ` Edward Shishkin
  3 siblings, 0 replies; 5+ messages in thread
From: Edward Shishkin @ 2010-07-30 14:49 UTC (permalink / raw)
  To: linux-btrace

Alan D. Brunelle wrote:
> On 07/30/2010 10:38 AM, Alan D. Brunelle wrote:
>> On 07/30/2010 10:04 AM, Edward Shishkin wrote:
>>>
>>
>> I do believe you are missing:
>>
>> 'k' / 'kill'
>> 'w' / 'stopwatch'
>>
>> for this patch, could you add those and resend?
>>
>> Thanks,
>> Alan
>> -- 
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-btrace" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> Oh, and your patch does have the 'w' 'stopwatch' in it (missed it 
> during review). <sigh>
>
> Acked-by: Alan D. Brunelle <alan.brunelle@hp.com>
>
> (Although that "approval" doesn't mean much after I messed up so bad 
> with the review... ;-) )

Hello Alan.

Thanks for review.

Edward.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-30 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 14:04 [patch 4/6] blktrace: blktrace documentation update Edward Shishkin
2010-07-30 14:38 ` Alan D. Brunelle
2010-07-30 14:45 ` Alan D. Brunelle
2010-07-30 14:47 ` Alan D. Brunelle
2010-07-30 14:49 ` Edward Shishkin

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).