* [ltt-dev] LTT Userspace problems
2010-01-27 21:55 ` Naren
@ 2010-01-27 21:55 ` Naren
2010-01-27 21:55 ` Naren
` (2 subsequent siblings)
3 siblings, 0 replies; 17+ messages in thread
From: Naren @ 2010-01-27 21:55 UTC (permalink / raw)
Hi,
Yes, it worked after the creation of "socks" directory under "tmp".
1. I presume that tmp/socks will be automatically created by UST unlike the
manual creation done by me to make it work.
2. Every time, the system restarts, the user created folders are deleted
hence the need to create the socks directory after every restart.
Can you clarify on the above mentioned points and whether it is by purpose
that tmp/socks directory needs to be created manually or is there something
wrong with the UST installation.
Regards,
Naren
On Wed, Jan 27, 2010 at 6:43 PM, Pierre-Marc Fournier <
pierre-marc.fournier at polymtl.ca> wrote:
> As the message says:
> Error initializing named socket (/tmp/socks/12293). Check that directory
> exists and that it is writable.
>
> Are you sure /tmp/socks exists and that it is writable?
>
> pmf
>
> Mathieu Desnoyers wrote:
> > I'm forwarding this to Pierre-Marc.
> >
> > Thanks for the report,
> >
> > Mathieu
> >
> > * Naren (tracemein at gmail.com) wrote:
> >> Hi,
> >>
> >> I've been facing problems with userspace tracing. During the execution
> of
> >> the sample file, i am getting the error as specified in the link.
> >>
> >> http://pastebin.ca/1765208
> >>
> >> Linux: Ubuntu 9.1
> >>
> >> Kernel Version: 2.6.30
> >>
> >> Lttng Version: 0.159
> >>
> >> UST version: 0.1
> >>
> >> Lttv version : 0.12.20
> >>
> >> For the sample test c code , click this link http://pastebin.ca/1765210
> >>
> >> Regards
> >> Naren
> >
> >> _______________________________________________
> >> ltt-dev mailing list
> >> ltt-dev at lists.casi.polymtl.ca
> >> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100127/732a4b9d/attachment-0003.htm>
^ permalink raw reply [flat|nested] 17+ messages in thread* [ltt-dev] LTT Userspace problems
2010-01-27 21:55 ` Naren
2010-01-27 21:55 ` Naren
@ 2010-01-27 21:55 ` Naren
2010-01-27 22:16 ` Douglas Santos
2010-01-28 17:35 ` Pierre-Marc Fournier
3 siblings, 0 replies; 17+ messages in thread
From: Naren @ 2010-01-27 21:55 UTC (permalink / raw)
Hi,
Yes, it worked after the creation of "socks" directory under "tmp".
1. I presume that tmp/socks will be automatically created by UST unlike the
manual creation done by me to make it work.
2. Every time, the system restarts, the user created folders are deleted
hence the need to create the socks directory after every restart.
Can you clarify on the above mentioned points and whether it is by purpose
that tmp/socks directory needs to be created manually or is there something
wrong with the UST installation.
Regards,
Naren
On Wed, Jan 27, 2010 at 6:43 PM, Pierre-Marc Fournier <
pierre-marc.fournier at polymtl.ca> wrote:
> As the message says:
> Error initializing named socket (/tmp/socks/12293). Check that directory
> exists and that it is writable.
>
> Are you sure /tmp/socks exists and that it is writable?
>
> pmf
>
> Mathieu Desnoyers wrote:
> > I'm forwarding this to Pierre-Marc.
> >
> > Thanks for the report,
> >
> > Mathieu
> >
> > * Naren (tracemein at gmail.com) wrote:
> >> Hi,
> >>
> >> I've been facing problems with userspace tracing. During the execution
> of
> >> the sample file, i am getting the error as specified in the link.
> >>
> >> http://pastebin.ca/1765208
> >>
> >> Linux: Ubuntu 9.1
> >>
> >> Kernel Version: 2.6.30
> >>
> >> Lttng Version: 0.159
> >>
> >> UST version: 0.1
> >>
> >> Lttv version : 0.12.20
> >>
> >> For the sample test c code , click this link http://pastebin.ca/1765210
> >>
> >> Regards
> >> Naren
> >
> >> _______________________________________________
> >> ltt-dev mailing list
> >> ltt-dev at lists.casi.polymtl.ca
> >> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100127/732a4b9d/attachment-0002.htm>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-27 21:55 ` Naren
2010-01-27 21:55 ` Naren
2010-01-27 21:55 ` Naren
@ 2010-01-27 22:16 ` Douglas Santos
2010-01-27 22:43 ` Naren
2010-01-28 17:35 ` Pierre-Marc Fournier
3 siblings, 1 reply; 17+ messages in thread
From: Douglas Santos @ 2010-01-27 22:16 UTC (permalink / raw)
Quoting Naren <tracemein at gmail.com>:
> 2. Every time, the system restarts, the user created folders are deleted
> hence the need to create the socks directory after every restart.
this is because your system cleans /tmp after each reboot.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-27 22:16 ` Douglas Santos
@ 2010-01-27 22:43 ` Naren
2010-01-27 22:43 ` Naren
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: Naren @ 2010-01-27 22:43 UTC (permalink / raw)
Yes.. precisely..
my question is, whether we have to create that folder manually after restart
or will it be created automatically by UST?
On Wed, Jan 27, 2010 at 11:16 PM, Douglas Santos
<douglas.santos at polymtl.ca>wrote:
> Quoting Naren <tracemein at gmail.com>:
> > 2. Every time, the system restarts, the user created folders are deleted
> > hence the need to create the socks directory after every restart.
>
> this is because your system cleans /tmp after each reboot.
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100127/c579ca51/attachment-0002.htm>
^ permalink raw reply [flat|nested] 17+ messages in thread* [ltt-dev] LTT Userspace problems
2010-01-27 22:43 ` Naren
@ 2010-01-27 22:43 ` Naren
2010-01-27 22:43 ` Naren
2010-01-28 13:59 ` Mathieu Desnoyers
2 siblings, 0 replies; 17+ messages in thread
From: Naren @ 2010-01-27 22:43 UTC (permalink / raw)
Yes.. precisely..
my question is, whether we have to create that folder manually after restart
or will it be created automatically by UST?
On Wed, Jan 27, 2010 at 11:16 PM, Douglas Santos
<douglas.santos at polymtl.ca>wrote:
> Quoting Naren <tracemein at gmail.com>:
> > 2. Every time, the system restarts, the user created folders are deleted
> > hence the need to create the socks directory after every restart.
>
> this is because your system cleans /tmp after each reboot.
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20100127/c579ca51/attachment.htm>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-27 22:43 ` Naren
2010-01-27 22:43 ` Naren
@ 2010-01-27 22:43 ` Naren
2010-01-28 13:59 ` Mathieu Desnoyers
2 siblings, 0 replies; 17+ messages in thread
From: Naren @ 2010-01-27 22:43 UTC (permalink / raw)
Yes.. precisely..
my question is, whether we have to create that folder manually after restart
or will it be created automatically by UST?
On Wed, Jan 27, 2010 at 11:16 PM, Douglas Santos
<douglas.santos at polymtl.ca>wrote:
> Quoting Naren <tracemein at gmail.com>:
> > 2. Every time, the system restarts, the user created folders are deleted
> > hence the need to create the socks directory after every restart.
>
> this is because your system cleans /tmp after each reboot.
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100127/c579ca51/attachment-0003.htm>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-27 22:43 ` Naren
2010-01-27 22:43 ` Naren
2010-01-27 22:43 ` Naren
@ 2010-01-28 13:59 ` Mathieu Desnoyers
2010-01-28 15:32 ` Douglas Santos
2 siblings, 1 reply; 17+ messages in thread
From: Mathieu Desnoyers @ 2010-01-28 13:59 UTC (permalink / raw)
It should clearly be created automatically by UST.
Pierre-Marc, can you add this to your todo list ?
If other people find time to prepare a patch, I am sure it would be very
welcome.
Thanks,
Mathieu
* Naren (tracemein at gmail.com) wrote:
> Yes.. precisely..
> my question is, whether we have to create that folder manually after restart
> or will it be created automatically by UST?
>
> On Wed, Jan 27, 2010 at 11:16 PM, Douglas Santos
> <douglas.santos at polymtl.ca>wrote:
>
> > Quoting Naren <tracemein at gmail.com>:
> > > 2. Every time, the system restarts, the user created folders are deleted
> > > hence the need to create the socks directory after every restart.
> >
> > this is because your system cleans /tmp after each reboot.
> >
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-28 13:59 ` Mathieu Desnoyers
@ 2010-01-28 15:32 ` Douglas Santos
2010-01-28 17:37 ` Mathieu Desnoyers
2010-01-28 17:39 ` Pierre-Marc Fournier
0 siblings, 2 replies; 17+ messages in thread
From: Douglas Santos @ 2010-01-28 15:32 UTC (permalink / raw)
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-$$"
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-28 15:32 ` Douglas Santos
@ 2010-01-28 17:37 ` Mathieu Desnoyers
2010-01-28 17:39 ` Pierre-Marc Fournier
1 sibling, 0 replies; 17+ messages in thread
From: Mathieu Desnoyers @ 2010-01-28 17:37 UTC (permalink / raw)
* Douglas Santos (douglas.santos at polymtl.ca) wrote:
> Quoting Mathieu Desnoyers <compudj at krystal.dyndns.org>:
> > It should clearly be created automatically by UST.
>
> here you are
It looks like there was already a pending commit to fix this. Thanks for
the patch anyway, it's very appreciated.
Mathieu
>
> --- 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-$$"
>
>
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-28 15:32 ` Douglas Santos
2010-01-28 17:37 ` Mathieu Desnoyers
@ 2010-01-28 17:39 ` Pierre-Marc Fournier
1 sibling, 0 replies; 17+ messages in thread
From: Pierre-Marc Fournier @ 2010-01-28 17:39 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* [ltt-dev] LTT Userspace problems
2010-01-27 21:55 ` Naren
` (2 preceding siblings ...)
2010-01-27 22:16 ` Douglas Santos
@ 2010-01-28 17:35 ` Pierre-Marc Fournier
3 siblings, 0 replies; 17+ messages in thread
From: Pierre-Marc Fournier @ 2010-01-28 17:35 UTC (permalink / raw)
Naren wrote:
> Hi,
>
> Yes, it worked after the creation of "socks" directory under "tmp".
>
> 1. I presume that tmp/socks will be automatically created by UST unlike
> the manual creation done by me to make it work.
> 2. Every time, the system restarts, the user created folders are deleted
> hence the need to create the socks directory after every restart.
>
> Can you clarify on the above mentioned points and whether it is by
> purpose that tmp/socks directory needs to be created manually or is
> there something wrong with the UST installation.
>
This was a problem in version 0.1. Just pushed commit dce0b474515 which
automatically creates the app socket directory.
Thanks for the feedback.
pmf
^ permalink raw reply [flat|nested] 17+ messages in thread