* [PATCH btrace] Add in -r support for btrace
@ 2007-05-11 13:21 Alan D. Brunelle
2007-05-11 13:43 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Alan D. Brunelle @ 2007-05-11 13:21 UTC (permalink / raw)
To: linux-btrace
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
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.]
[-- Attachment #2: btrace --]
[-- Type: text/plain, Size: 947 bytes --]
#!/bin/sh
# Copyright (c) 2005 Silicon Graphics, Inc.
# All rights reserved.
#
# Nathan Scott <nathans@sgi.com>
# 14 Sep 2005 Initial version
#
TRACEOPTS=""
PARSEOPTS="-b100000"
SUMMARIZE=""
USAGE="Usage: btrace [-s] [-t] [-S] [-w N] [-a <trace>...] [-r <dbg mnt]<dev>..."
DIRNAME=`dirname $0`
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";;
v) PARSEOPTS=$PARSEOPTS" -v";;
S) SUMMARIZE="";;
\?) echo $USAGE 1>&2
exit 2
;;
esac
done
PARSEOPTS="${PARSEOPTS} ${SUMMARIZE}"
shift `expr $OPTIND - 1`
if [ $# -eq 0 ]; then
echo $USAGE 1>&2
exit 2
fi
${DIRNAME}/blktrace ${TRACEOPTS} -o- $@ | ${DIRNAME}/blkparse ${PARSEOPTS} -i-
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH btrace] Add in -r support for btrace
2007-05-11 13:21 [PATCH btrace] Add in -r support for btrace Alan D. Brunelle
@ 2007-05-11 13:43 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-05-11 13:43 UTC (permalink / raw)
To: linux-btrace
On Fri, May 11 2007, Alan D. Brunelle wrote:
> 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.]
A search would be nice, probably /debug and /sys/kernel/debug are the
only ones we are likely to see (unless the user is on an older system
and decided to put it elsewhere manually).
For now I committed the updated btrace.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-11 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 13:21 [PATCH btrace] Add in -r support for btrace Alan D. Brunelle
2007-05-11 13:43 ` Jens Axboe
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).