From 3b79b22702659877d9ced51d77b175f2cbdbf940 Mon Sep 17 00:00:00 2001 From: "Alan D. Brunelle" Date: Fri, 11 May 2007 15:43:06 +0200 Subject: btrace: Add in -r support for btrace Using Ubuntu, debugfs is mounted on /debug instead of /sys/kernel/debug. [Perhaps, we should put in blktrace a search through "common" areas where debug could be mounted, and or do a simple parsing of the output from a 'mount' command to /find/ the directory.] Signed-off-by: Jens Axboe --- btrace | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 btrace (limited to 'btrace') diff --git a/btrace b/btrace old mode 100755 new mode 100644 index 86493c5..f902707 --- a/btrace +++ b/btrace @@ -9,16 +9,17 @@ TRACEOPTS="" PARSEOPTS="-b100000" SUMMARIZE="" -USAGE="Usage: btrace [-s] [-t] [-S] [-w N] [-a ...] ..." +USAGE="Usage: btrace [-s] [-t] [-S] [-w N] [-a ...] [-r ..." DIRNAME=`dirname $0` -while getopts "a:stSw:hv" c +while getopts "a:r:stSw:hv" c do case $c in a) TRACEOPTS=$TRACEOPTS" -a "$OPTARG" ";; w) TRACEOPTS=$TRACEOPTS" -w "$OPTARG" ";; n) TRACEOPTS=$TRACEOPTS" -n "$OPTARG" ";; b) TRACEOPTS=$TRACEOPTS" -b "$OPTARG" ";; + r) TRACEOPTS=$TRACEOPTS" -r "$OPTARG" ";; s) PARSEOPTS=$PARSEOPTS" -s";; t) PARSEOPTS=$PARSEOPTS" -t";; h) PARSEOPTS=$PARSEOPTS" -h";; -- cgit v1.2.3