<div dir="ltr">Well, i can create a new session for this use-case.<div>But what will be the use of channels if they can be added on the fly.</div><div>The dynamic configuration of adding/deleting events and channels wont be much useful if user has to pre-decide on what config is he going to do.</div><div>I hope you get my point on the flexibility here.</div><div><br></div><div>Thanks,</div><div>Anand Neeli</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 21, 2015 at 2:24 AM, Julien Desfossez <span dir="ltr"><<a href="mailto:jdesfossez@efficios.com" target="_blank">jdesfossez@efficios.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm just curious, is there a problem with creating new sessions when<br>
needed for this kind of use-case ?<br>
<br>
Thanks,<br>
<br>
Julien<br>
<span class=""><br>
On 15-02-20 02:25 PM, Anand Neeli wrote:<br>
> Thanks for the reply.<br>
><br>
> I think adding channels on the fly must be supported.<br>
> From debugging point of view, it will be good if we can add channels on<br>
> the fly with each channel having different set of events.<br>
> Even "stop tracing" and adding channel doesnt help now.<br>
><br>
> Thanks,<br>
> Anand Neeli<br>
><br>
> On Sat, Feb 21, 2015 at 12:35 AM, Philippe Proulx<br>
</span><span class="">> <<a href="mailto:eeppeliteloop@gmail.com">eeppeliteloop@gmail.com</a> <mailto:<a href="mailto:eeppeliteloop@gmail.com">eeppeliteloop@gmail.com</a>>> wrote:<br>
><br>
>     On Fri, Feb 20, 2015 at 2:00 PM, Anand Neeli <<a href="mailto:anand.neeli@gmail.com">anand.neeli@gmail.com</a><br>
</span><div><div class="h5">>     <mailto:<a href="mailto:anand.neeli@gmail.com">anand.neeli@gmail.com</a>>> wrote:<br>
>     > Hi All,<br>
>     > Is adding a new channel to an existing(running) session supported?<br>
><br>
>     No.<br>
>     ><br>
>     > i get following error when doing this.<br>
>     > Error: Channel myc5: Tracing already started<br>
>     ><br>
>     > Is there any way to add channels on the fly?<br>
><br>
>     No. LTTng's documentation [1] states:<br>
><br>
>         Note: Because of a current limitation, all channels must be<br>
>         created prior to beginning tracing in a given tracing session,<br>
>         i.e. before the first time you do lttng start.<br>
><br>
>         Since a channel is automatically created by enable-event<br>
>         only for the specified domain, you cannot, for example, enable<br>
>         a kernel domain event, start tracing and then enable a user<br>
>         space domain event because no user space channel exists<br>
>         yet and it's too late to create one.<br>
><br>
>         For this reason, make sure to configure your channels<br>
>         properly before starting the tracers for the first time!<br>
><br>
>     Phil<br>
><br>
>     [1] <a href="http://lttng.org/docs/#doc-enabling-disabling-channels" target="_blank">http://lttng.org/docs/#doc-enabling-disabling-channels</a><br>
><br>
>     > I'm using 2.4.1 version<br>
>     ><br>
>     > Thanks,<br>
>     > Anand Neeli<br>
>     ><br>
>     > _______________________________________________<br>
>     > lttng-dev mailing list<br>
</div></div>>     > <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a> <mailto:<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a>><br>
>     > <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<div class="HOEnZb"><div class="h5">>     ><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
</div></div></blockquote></div><br></div></div></div>