From: compudj Date: Fri, 10 Oct 2008 20:50:29 +0000 (+0000) Subject: update armall X-Git-Tag: v0.12.20~400 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a2b8f218e13a46e3bdb3a684337e1911f31e116;p=lttv.git update armall git-svn-id: http://ltt.polymtl.ca/svn@3089 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index 08cc32eb..d71828bd 100755 --- a/trunk/ltt-control/lttctl/ltt-armall.sh +++ b/trunk/ltt-control/lttctl/ltt-armall.sh @@ -33,10 +33,10 @@ done # Connect the interesting high-speed markers to the marker tap. # Markers starting with "tap_" are considered high-speed. echo Connecting high-rate markers to tap -MARKERS=`cat /proc/ltt | grep ^tap_` +MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_` #Uncomment the following to also record lockdep events. -#MARKERS=`cat /proc/ltt | grep -e ^tap_ -e ^lockdep` +#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep` for a in $MARKERS; do echo Connecting $a diff --git a/trunk/ltt-control/lttctl/ltt-disarmall.sh b/trunk/ltt-control/lttctl/ltt-disarmall.sh index 4a3f92e4..027fb2e3 100755 --- a/trunk/ltt-control/lttctl/ltt-disarmall.sh +++ b/trunk/ltt-control/lttctl/ltt-disarmall.sh @@ -4,13 +4,12 @@ echo Disconnecting all markers MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep_|grep -v ^lockdep|grep -v ^tap_` for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done - # Markers starting with "tap_" are considered high-speed. -echo Disconnecting high-rate markers from tap -MARKERS=`cat /proc/ltt | grep ^tap_` +echo Disconnecting high-rate markers to tap +MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_` #Uncomment the following to also stop recording lockdep events. -#MARKERS=`cat /proc/ltt | grep -e ^tap_ -e ^lockdep` +#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep` for a in $MARKERS; do echo Disconnecting $a