From: Mathieu Desnoyers Date: Fri, 23 Oct 2009 13:42:29 +0000 (-0400) Subject: Add network sync arm/disarm X-Git-Tag: 0.80~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=34519f39db3fb5fbb48f142ecaa3ea9118078104;p=ltt-control.git Add network sync arm/disarm Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.in b/configure.in index f568812..6ce398f 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,7 @@ AC_PREREQ(2.57) AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) #AC_WITH_LTDL # not needed ? -AM_INIT_AUTOMAKE(ltt-control,0.71-30092009) +AM_INIT_AUTOMAKE(ltt-control,0.72-23102009) AM_CONFIG_HEADER(config.h) AM_PROG_LIBTOOL diff --git a/lttctl/Makefile.am b/lttctl/Makefile.am index 12ad501..6c3d063 100644 --- a/lttctl/Makefile.am +++ b/lttctl/Makefile.am @@ -3,10 +3,13 @@ AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\" bin_PROGRAMS = lttctl -bin_SCRIPTS = ltt-armall ltt-disarmall ltt-armalluser ltt-disarmalluser \ +bin_SCRIPTS = ltt-armall ltt-disarmall \ + ltt-armnetsync ltt-disarmnetsync \ + ltt-armalluser ltt-disarmalluser \ ltt-armtap ltt-disarmtap CLEANFILES = $(bin_SCRIPTS) EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh \ + ltt-armnetsync.sh ltt-disarmnetsync.sh \ ltt-armalluser.sh ltt-disarmalluser.sh \ ltt-armtap.sh ltt-disarmtap.sh @@ -22,6 +25,18 @@ ltt-disarmall: ltt-disarmall.sh cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall chmod ugo+x ltt-disarmall +ltt-armnetsync: ltt-armnetsync.sh + rm -f ltt-armnetsync + echo "#!"$(BASH) > ltt-armnetsync + cat $(srcdir)/ltt-armnetsync.sh >> ltt-armnetsync + chmod ugo+x ltt-armnetsync + +ltt-disarmnetsync: ltt-disarmnetsync.sh + rm -f ltt-disarmnetsync + echo "#!"$(BASH) > ltt-disarmnetsync + cat $(srcdir)/ltt-disarmnetsync.sh >> ltt-disarmnetsync + chmod ugo+x ltt-disarmnetsync + ltt-armtap: ltt-armtap.sh rm -f ltt-armtap echo "#!"$(BASH) > ltt-armtap diff --git a/lttctl/ltt-armnetsync.sh b/lttctl/ltt-armnetsync.sh new file mode 100755 index 0000000..a07b751 --- /dev/null +++ b/lttctl/ltt-armnetsync.sh @@ -0,0 +1,9 @@ +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}') +MARKERSROOT=${DEBUGFSROOT}/ltt/markers + +echo Connecting network synchronization markers + +for m in ${MARKERSROOT}/net/*_extended; do + echo Connecting ${m} + echo 1 > ${m}/enable +done diff --git a/lttctl/ltt-disarmnetsync.sh b/lttctl/ltt-disarmnetsync.sh new file mode 100755 index 0000000..fead515 --- /dev/null +++ b/lttctl/ltt-disarmnetsync.sh @@ -0,0 +1,9 @@ +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}') +MARKERSROOT=${DEBUGFSROOT}/ltt/markers + +echo Disconnecting network synchronization markers + +for m in ${MARKERSROOT}/net/*_extended; do + echo Disconnecting ${m} + echo 0 > ${m}/enable +done