[ltt-dev] LTT Userspace problems

Pierre-Marc Fournier pierre-marc.fournier at polymtl.ca
Thu Jan 28 12:39:09 EST 2010


Douglas Santos wrote:
> Quoting Mathieu Desnoyers <compudj at krystal.dyndns.org>:
>> It should clearly be created automatically by UST.
> 
> here you are
> 
> --- usttrace.orig	2009-11-13 14:35:47.000000000 -0500
> +++ usttrace	2010-01-28 10:24:20.000000000 -0500
> @@ -78,6 +78,18 @@
>  OUTDIR="$BASE_TRACE_DIR/$DATESTRING"
>  mkdir -p "$OUTDIR"
> 
> +# create socks directory
> +SOCKSDIR=/tmp/socks
> +if [ ! -d $SOCKSDIR ]
> +then
> +	echo "Creating $SOCKSDIR"
> +	mkdir -p "$SOCKSDIR"
> + 	if [ $? -ne 0 ]
> +	then
> +		exit 1
> +	fi
> +fi
> +
>  # Choose socket path
>  SOCKPATH="/tmp/ust-sock-$$"
> 
> 

Thanks. Not a bad idea, however it doesn't cover all the cases. When ust
is used in manual mode (no usttrace), the directory still need to be
created. The patch I applied changes the behavior in libustcomm directly.

pmf




More information about the lttng-dev mailing list