add armalluser
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 14 Jul 2008 21:09:34 +0000 (21:09 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 14 Jul 2008 21:09:34 +0000 (21:09 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2955 04897980-b3bd-0310-b5e0-8ef037075253

ltt-control/lttctl/Makefile.am
ltt-control/lttctl/ltt-armall.sh
ltt-control/lttctl/ltt-armalluser.sh [new file with mode: 0755]
ltt-control/lttctl/ltt-disarmalluser.sh [new file with mode: 0755]

index d151bf6d68632607bc313bbd4d13bf13fb3349a6..fef77e038c4f4453667df7da187bade8af6cf031 100644 (file)
@@ -3,9 +3,9 @@
 AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
 
 bin_PROGRAMS = lttctl
-bin_SCRIPTS = ltt-armall ltt-disarmall
+bin_SCRIPTS = ltt-armall ltt-disarmall ltt-armalluser ltt-disarmalluser
 CLEANFILES = $(bin_SCRIPTS)
-EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh
+EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh ltt-armalluser.sh ltt-disarmalluser.sh
 
 ltt-armall: ltt-armall.sh
        rm -f ltt-armall
@@ -19,6 +19,18 @@ ltt-disarmall: ltt-disarmall.sh
        cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall
        chmod ugo+x ltt-disarmall
 
+ltt-armalluser: ltt-armalluser.sh
+       rm -f ltt-armalluser
+       echo "#!"$(BASH) > ltt-armalluser
+       cat $(srcdir)/ltt-armalluser.sh >> ltt-armalluser
+       chmod ugo+x ltt-armalluser
+
+ltt-disarmalluser: ltt-disarmalluser.sh
+       rm -f ltt-disarmalluser
+       echo "#!"$(BASH) > ltt-disarmalluser
+       cat $(srcdir)/ltt-disarmalluser.sh >> ltt-disarmalluser
+       chmod ugo+x ltt-disarmalluser
+
 lttctl_SOURCES = \
        lttctl.c
 lttctl_DEPENDENCIES = ../liblttctl/liblttctl.la
index 3cb5f253f73906a3fb6217f592a3c922320c3c90..562ef15cb862dd0eedf70ffa9f0d8a3b5edde29e 100755 (executable)
@@ -1,15 +1,8 @@
 #excluding core markers (already connected)
 #excluding locking markers (high traffic)
 
-#scheduler probe
-echo Loading probes
-modprobe -q ltt-sched
-
 echo Connecting all markers
-MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_ |grep -v ^internal_`
-
-echo Connecting internal_kernel_sched_schedule
-echo "connect internal_kernel_sched_schedule scheduler" > /proc/ltt
+MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_`
 
 for a in $MARKERS; do
        echo Connecting $a
diff --git a/ltt-control/lttctl/ltt-armalluser.sh b/ltt-control/lttctl/ltt-armalluser.sh
new file mode 100755 (executable)
index 0000000..cd0a2eb
--- /dev/null
@@ -0,0 +1,17 @@
+#excluding core markers (already connected)
+#excluding locking markers (high traffic)
+
+echo Connecting all userspace markers
+
+for a in /proc/[0-9]*; do
+       echo Connecting markers in $a
+
+       for marker in $a/markers; do
+               case $marker in 
+               *)
+                       CHANNEL=
+                       ;;
+               esac
+               echo "connect $marker default dynamic $CHANNEL" > /proc/ltt
+       done
+done
diff --git a/ltt-control/lttctl/ltt-disarmalluser.sh b/ltt-control/lttctl/ltt-disarmalluser.sh
new file mode 100755 (executable)
index 0000000..55c3e6b
--- /dev/null
@@ -0,0 +1,17 @@
+#excluding core markers (already connected)
+#excluding locking markers (high traffic)
+
+echo Connecting all userspace markers
+
+for a in /proc/[0-9]*; do
+       echo Connecting markers in $a
+
+       for marker in $a/markers; do
+               case $marker in 
+               *)
+                       CHANNEL=
+                       ;;
+               esac
+               echo "disconnect $marker default dynamic $CHANNEL" > /proc/ltt
+       done
+done
This page took 0.027563 seconds and 4 git commands to generate.