[lttng-dev] multiple tracing sessions using relayd

Jérémie Galarneau jeremie.galarneau at efficios.com
Mon Nov 10 13:02:58 EST 2014


On Sat, Nov 8, 2014 at 1:31 PM, Anand Neeli <anand.neeli at gmail.com> wrote:
> Hi,
> i'm trying to create multiple tracing sessions which will relay to the same
> relayd.
> And i'm not able to create more than one session.
> create channel of the second session hangs and doesn't give me the console
> back.
>
> Here are the steps i followed
> $> lttng-relayd -d -g mygrp
>
>  $> /usr/bin/lttng-sessiond --consumerd32-path
> /usr/lib/lttng/libexec/lttng-consumerd --consumerd32-libdir /usr/lib/
> --consumerd64-path /usr/lib64/lttng/libexec/lttng-consumerd
> --consumerd64-libdir /usr/lib64/ -b --no-kernel -g mygrp
> Warning: No tracing group detected
>
> $> /usr/bin/lttng create mysession  --live 1000000 -U net://128.0.0.4
> Session mysession created.
> Traces will be written in net://128.0.0.4
> Live timer set to 1000000 usec
>
>  $> /usr/bin/lttng enable-channel mychannel --userspace --buffers-pid -s
> mysession --tracefile-size 8388608 --tracefile-count 8Warning: No tracing
> group detected
> Warning: No tracing group detected
> UST channel mychannel enabled for session mysession
>
>  $> /usr/bin/lttng enable-event --channel mychannel --userspace --all
> --exclude 'ust_libc:*' -s mysession
> All UST events excluding ust_libc:* are enabled in channel mychannel
>
> ==> With this first session is created. Now i'm trying to create another
> session.
>
>  $>  /usr/bin/lttng create mysession2  --live 1000000 -U net://128.0.0.4
> Session mysession2 created.
> Traces will be written in net://128.0.0.4
> Live timer set to 1000000 usec
>
>  $>  /usr/bin/lttng enable-channel mychannel2 --userspace --buffers-pid -s
> mysession2 --tracefile-size 8388608 --tracefile-count 8
>
> ==>>>> Console is stuck here and the command never returns.
>

I can't reproduce this problem on master here. Which version are you using?

>
> I tried to create same without relayd and it works. Am i missing anything
> here?
>
> Although in the above example i'm enabling same/all events in session1 and
> session2, but i think this should work and capture same events in both the
> sessions.

That's the expected behavior.

Regards,
Jérémie

> Please let me know the correct way to enable this.
>
> Thanks,
> Anand Neeli
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list