[ltt-dev] [PATCH] fix ltt-armall due to an obsolete option passed to the head command.
Mathieu Desnoyers
compudj at krystal.dyndns.org
Fri Dec 4 11:13:39 EST 2009
I'll integrate this fix (and I am fixing ltt-disarmall.sh too) into
ltt-control 0.78.
Thanks!
Mathieu
* Giuseppe CAVALLARO (peppe.cavallaro at st.com) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Mathieu,
> I've just noticed the following issue while using ltt-armall.
>
> I'm working on the kernel 2.6.30.9 with lttng 162 (and relative latest
> tools according to the compatibility table).
>
> I don't know if this has been already fixed or discussed, sorry!
>
> Hoping this could be useful.
> Regards,
> Peppe
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAksX1WwACgkQ2Xo3j31MSSLaIwCgieIuCpuP+TZMxNC95TpHXnVp
> clQAoKnV9YWLoaiHwjYk6PoRknONswm8
> =kw1e
> -----END PGP SIGNATURE-----
> ltt-armall fails because the head command (from coreutils-5.2.1)
> fails with the error below:
> head: `-1' option is obsolete; use `-n 1'
>
> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro at st.com>
>
> --- ltt-control-0.75-15112009/./lttctl/ltt-armall.sh.orig 2009-12-03 15:38:55.000000000 +0100
> +++ ltt-control-0.75-15112009/./lttctl/ltt-armall.sh 2009-12-03 15:39:07.000000000 +0100
> @@ -1,7 +1,7 @@
> #excluding core markers (already connected)
> #excluding locking markers (high traffic)
>
> -DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
> +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -n 1 | awk '{print $2}')
> MARKERSROOT=${DEBUGFSROOT}/ltt/markers
>
> echo Connecting all markers
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
More information about the lttng-dev
mailing list