[lttng-dev] C APIs tracing control

Jonathan Rajotte-Julien jonathan.rajotte-julien at efficios.com
Mon May 29 15:40:39 UTC 2017


Hi,

On Mon, May 29, 2017 at 06:32:35AM +0000, kirankumarp at uurmi.com wrote:
> Hi,
> we are developing an application and want to have LTTng control within it. We would like to know the C APIs for it.
> we require following APIs following command line commands-
> lttng create 
> lttng list 
> lttng enable-event 
> lttng start
> lttng stop
> lttng destroy
> We could find some documentation at but not sure if we are right. Also it will be great help, if you can provide an makefile for this (to link the libraries and Paths to be included).

See http://lttng.org/docs/v2.9/#doc-liblttng-ctl-lttng.

As for the examples, you can look at all the code used to create the command line
utility [1].

[1] https://github.com/lttng/lttng-tools/tree/master/src/bin/lttng

Cheers,


> We tried "lttng_create_handle", "lttng_create_session" API (as mentioned in the documentation) but its not getting compiled.
> Please help on this regard.
> Thanks in advance.
> Regards
> Kiran Kumar

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Jonathan Rajotte-Julien
EfficiOS


More information about the lttng-dev mailing list