summaryrefslogtreecommitdiff
path: root/btrace
diff options
context:
space:
mode:
Diffstat (limited to 'btrace')
-rw-r--r--btrace7
1 files changed, 5 insertions, 2 deletions
diff --git a/btrace b/btrace
index d74d9c2..f698f9c 100644
--- a/btrace
+++ b/btrace
@@ -8,20 +8,23 @@
TRACEOPTS=""
PARSEOPTS=""
-USAGE="Usage: btrace [-s] [-t] [-a <trace>...] <dev>..."
+SUMMARIZE="-q" # quiet (no dev/cpu summary by default)
+USAGE="Usage: btrace [-s] [-t] [-S] [-a <trace>...] <dev>..."
DIRNAME=`dirname $0`
-while getopts "a:st" c
+while getopts "a:stS" c
do
case $c in
a) TRACEOPTS=$TRACEOPTS" -a "$OPTARG" ";;
s) PARSEOPTS=$PARSEOPTS" -s";;
t) PARSEOPTS=$PARSEOPTS" -t";;
+ S) SUMMARIZE="";;
\?) echo $USAGE 1>&2
exit 2
;;
esac
done
+PARSEOPTS=${PARSEOPTS}${SUMMARIZE}
shift `expr $OPTIND - 1`
if [ $# -eq 0 ]; then