Hi All, i'm writing a wrapper code to start and stop tracing sessions. And i am using lttng-ctl library for this. I have setup session using lttng commands and using the wrapper to start/stop session. 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. 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.
Thanks, Anand Neeli On Thu, Jan 15, 2015 at 12:54 AM, Simon Marchi <[email protected]> wrote: > On 14 January 2015 at 14:02, Anand Neeli <[email protected]> wrote: > > Hi All, > > > > Is there any code (or did anyone implement) c/c++ wrappers API's to > > create,delete, add event to lttng session. > > The conventional way to create, add event, delete lttng sessions is > through > > lttng shell commands, i'm looking to do this using a c/c++ API's. > > > > Thanks, > > Anand Neeli > > Hi Arnand, > > I think you are looking for the liblttng-ctl library. > > http://git.lttng.org/?p=lttng-tools.git;a=tree;f=src/lib/lttng-ctl;hb=HEAD > > It is the library that the lttng command is based on, but you can also > use it in your program. I don't know if there is an official > documentation, but if you want to know how to do something using the > API, you can always look up the lttng command code and see what it > does. > > It is in C, however. If you want to make an wrapper that is more C++ > oriented, I am sure it would be a very appreciated contribution :). > > Simon >
_______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
