From ae4aa4972bb6b7c78d71ac55761fb03405c36bc0 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 10 Oct 2008 20:50:29 +0000 Subject: [PATCH] update armall git-svn-id: http://ltt.polymtl.ca/svn@3089 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/ltt-control/lttctl/ltt-armall.sh | 4 ++-- trunk/ltt-control/lttctl/ltt-disarmall.sh | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index 08cc32e..d71828b 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 4a3f92e..027fb2e 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 -- 2.34.1