X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttctl%2Fltt-disarmall.sh;h=56dc3a0b1e48644caae856da3849b4a9061ed7c1;hb=825cbbaee78eb17f1381a6be2f36b8023ac433da;hp=5fdcf1ec2b6f3fdf0acbaf80a6f15e5b52993ca5;hpb=6e8902bf55007831c1cbc3092f4f44b4106c9cff;p=ltt-control.git 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 () {