From: Mathieu Desnoyers Date: Thu, 25 Mar 2010 20:40:08 +0000 (-0400) Subject: ltt-armall script: disable input subsystem by default X-Git-Tag: 0.80~1 X-Git-Url: http://git.lttng.org/?p=ltt-control.git;a=commitdiff_plain;h=a4dc603fbbc706fbad0b6dcf4b2b56239494e45b ltt-armall script: disable input subsystem by default Add -i option to enable input subsystem. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttctl/ltt-armall.sh b/lttctl/ltt-armall.sh index 0314323..d73cdba 100755 --- a/lttctl/ltt-armall.sh +++ b/lttctl/ltt-armall.sh @@ -24,6 +24,7 @@ usage () { echo "Options:" > /dev/stderr printf "\t-l Also activate locking markers (high traffic)\n" > /dev/stderr printf "\t-n Also activate detailed network markers (large size)\n" > /dev/stderr + printf "\t-i Also activate input subsystem events (security implication: records keyboard inputs)\n" > /dev/stderr echo "" > /dev/stderr printf "\t-q Quiet mode, suppress output\n" > /dev/stderr printf "\t-h Print this help\n" > /dev/stderr @@ -45,6 +46,7 @@ while getopts "lnqh" options; do l) LOCKING="0";; n) NETWORK="0";; q) QUIET="0";; + i) INPUT="0";; h) usage; exit 0;; \?) usage; @@ -62,6 +64,10 @@ if [ ! ${NETWORK} ]; then TESTS="${TESTS} -path '*/net/*_extended' -prune -o" fi +if [ ! ${INPUT} ]; then + TESTS="${TESTS} -name input -prune -o" +fi + (eval "find '${MARKERSROOT}' ${TESTS} -name metadata -prune -o -name enable -print") | while read -r marker; do if [ ! ${QUIET} ]; then echo "Connecting ${marker%/enable}"