Skip to contentSkip to conversation

btrace: fix usage by adding -h (blkparse --hash-by-name)

PATCH In review Steffen Maier 1 participant 1 message Apr 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 3/31 btrace: fix usage by adding -h (blkparse --hash-by-name)

Fixes d915dee697e3 ("[PATCH] Switch hash option -h, update btrace for all new options")
Fixes bc93336f08a3 ("fix up btrace options & manpage")
---
 btrace       | 2 +-
 doc/btrace.8 | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
btrace +1 -1
index 45c10cffdd4d..f1f731b2a18f 100644
@@ -8,7 +8,7 @@
 
 TRACEOPTS=""
 PARSEOPTS="-b100000"
-USAGE="Usage: btrace [-s] [-t] [-w N] [-n N] [-b N] [-a <trace>...] [-r <dbg mnt>] <dev>..."
+USAGE="Usage: btrace [-s] [-t] [-h] [-w N] [-n N] [-b N] [-a <trace>...] [-r <dbg mnt>] <dev>..."
 DIRNAME=`dirname $0`
 
 while getopts "a:w:n:b:r:sthv" c
doc/btrace.8 +5 -1
index a1f34c2cfbe1..60462140ccc6 100644
@@ -6,7 +6,7 @@ btrace \- perform live tracing for block devices
 
 
 .SH SYNOPSIS
-.B btrace [\-s] [\-t] [\-w \fIN\fN] [\-n \fIN\fR] [\-b \fIN\fR] [\-r \fI<dbg mnt>\fR] [\-a <\fItrace\fR>...] <\fIdev\fR>...
+.B btrace [\-s] [\-t] [\-h] [\-w \fIN\fN] [\-n \fIN\fR] [\-b \fIN\fR] [\-r \fI<dbg mnt>\fR] [\-a <\fItrace\fR>...] <\fIdev\fR>...
 .br
 
 
@@ -27,6 +27,10 @@ Displays data sorted by program (see \fIblkparse\fR (1)).
 .B \-t 
 Displays time deltas per IO (see \fIblkparse\fR (1)).
 
+.HP 4
+.B \-h
+Hash processes by name, not PID (see \fIblkparse\fR (1)).
+
 .HP 4
 .B \-w \fIN\fR
 Sets run time to the number of seconds specified (see \fIblktrace\fR (8)).
Signature · 1 line
2.14.2