[lttng-dev] multiple tracing sessions using relayd

Anand Neeli anand.neeli at gmail.com
Sat Nov 8 13:31:15 EST 2014


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 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.
Please let me know the correct way to enable this.

Thanks,
Anand Neeli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20141109/c856e105/attachment.html>


More information about the lttng-dev mailing list