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
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
#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
--- /dev/null
+#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
--- /dev/null
+#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