<div dir="ltr">Hi All,<div>i'm writing a wrapper code to start and stop tracing sessions. And i am using lttng-ctl library for this.</div><div>I have setup session using lttng commands and using the wrapper to start/stop session.</div><div>in the wrapper i'm calling lttng_start_tracing(char* session_name), i see that that the program gets stuck and doesnt return from lttng_start_tracing.<br></div><div>Does anyone know what is the issue i'm seeing. (before i can start debugger). I see that lttng-ctl connects checks for sessiond and send some data to it, suspect something here.</div><div><br></div><div>Thanks,</div><div>Anand Neeli</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 12:54 AM, Simon Marchi <span dir="ltr"><<a href="mailto:simon.marchi@polymtl.ca" target="_blank">simon.marchi@polymtl.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 14 January 2015 at 14:02, Anand Neeli <<a href="mailto:anand.neeli@gmail.com">anand.neeli@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> Is there any code (or did anyone implement) c/c++ wrappers API's to<br>
> create,delete, add event to lttng session.<br>
> The conventional way to create, add event, delete lttng sessions is through<br>
> lttng shell commands, i'm looking to do this using a c/c++ API's.<br>
><br>
> Thanks,<br>
> Anand Neeli<br>
<br>
</div></div>Hi Arnand,<br>
<br>
I think you are looking for the liblttng-ctl library.<br>
<br>
<a href="http://git.lttng.org/?p=lttng-tools.git;a=tree;f=src/lib/lttng-ctl;hb=HEAD" target="_blank">http://git.lttng.org/?p=lttng-tools.git;a=tree;f=src/lib/lttng-ctl;hb=HEAD</a><br>
<br>
It is the library that the lttng command is based on, but you can also<br>
use it in your program. I don't know if there is an official<br>
documentation, but if you want to know how to do something using the<br>
API, you can always look up the lttng command code and see what it<br>
does.<br>
<br>
It is in C, however. If you want to make an wrapper that is more C++<br>
oriented, I am sure it would be a very appreciated contribution :).<br>
<span class="HOEnZb"><font color="#888888"><br>
Simon<br>
</font></span></blockquote></div><br></div>