From: Mathieu Desnoyers Date: Wed, 7 Apr 2010 19:07:19 +0000 (-0400) Subject: Fix ltt-armall/disarmall /debugfs auto-find X-Git-Tag: 0.84~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=36cf2b17ba3877215b92a8c85638058d2d370d4e;p=ltt-control.git Fix ltt-armall/disarmall /debugfs auto-find Signed-off-by: Mathieu Desnoyers --- diff --git a/lttctl/ltt-armall.sh b/lttctl/ltt-armall.sh index d73cdba..1b1c3f9 100755 --- a/lttctl/ltt-armall.sh +++ b/lttctl/ltt-armall.sh @@ -1,4 +1,5 @@ # Copyright (C) 2009 Benjamin Poirier +# Copyright (C) 2010 Mathieu Desnoyers # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,7 +15,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}') +DEBUGFSROOT=$(awk '{if ($3 == "debugfs") print $2}' /proc/mounts | head -n 1) MARKERSROOT=${DEBUGFSROOT}/ltt/markers usage () { diff --git a/lttctl/ltt-disarmall.sh b/lttctl/ltt-disarmall.sh index 5fdcf1e..56dc3a0 100755 --- a/lttctl/ltt-disarmall.sh +++ b/lttctl/ltt-disarmall.sh @@ -1,4 +1,5 @@ # Copyright (C) 2009 Benjamin Poirier +# Copyright (C) 2010 Mathieu Desnoyers # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,7 +15,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}') +DEBUGFSROOT=$(awk '{if ($3 == "debugfs") print $2}' /proc/mounts | head -n 1) MARKERSROOT=${DEBUGFSROOT}/ltt/markers usage () {