[lttng-dev] Can trace be stopped from UST on executing a particular function?

Jérémie Galarneau jeremie.galarneau at efficios.com
Mon Mar 3 11:45:53 EST 2014


On Mon, Mar 3, 2014 at 7:21 AM, kumar s <skumar.m226 at gmail.com> wrote:
> Hello,
>
> Is it possible to stop a trace from UST. When my code reaches a particular
> function , can UST stop the trace and save both UST and kernel traces.
>
> How can i achieve this.?

You can use the tracing control library (liblttng-ctl), which is
provided by lttng-tools, to setup and stop a trace from your
application. Have a look at lttng-tools/include/lttng/lttng.h [1].

Regards,
Jérémie

[1] https://bugs.lttng.org/projects/lttng-tools/repository/revisions/master/entry/include/lttng/lttng.h

>
> Thank you
> Skumar
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list