[lttng-dev] Current Trace File Location

David Goulet dgoulet at efficios.com
Tue Oct 29 12:02:31 EDT 2013


On 29 Oct (11:59:04), Michael Steppe wrote:
> Hello,
> 
> I am not sure if this is where I ask my questions to the developers but I
> thought I'd give it a go.
> 
> I am able to create a kernel trace, enable all events for the trace, start,
> stop and destroy the trace. But let's say I have two traces running on the
> same machine:
> 
> [user at localhost ~]$ lttng create trace1
> [user at localhost ~]$ lttng create trace2
> [user at localhost ~]$ lttng create trace3
> 
> As I am sure you know, the .lttngrc file is populated with ONLY the latest
> created trace name (trace3).
> 
> Now let's say I change my mind after creating these traces and wish to
> destroy them all. If I use the destroy command...
> 
> [user at localhost ~]$ lttng destroy
> 
> ...with no argument, it defaults to the .lttngrc file and destroys trace3 as
> well as the .lttngrc file. This means that the next time I run lttng
> destroy I get the error that it cannot find the .lttngrc file and asks if I
> created a session. Well we still have trace1 and trace2 in the background
> somewhere because if I try to:
> 
> [user at localhost ~]$ lttng create trace1
> 
> I get told that there is already a trace with that name.
> 
> My question to you is, where are all the traces stored until they are
> destroyed? LTT obviously knows that trace1 and trace2 are still "running"
> because it won't let me create another with the same name until I destroy
> it. I know that I could say:
> 
> [user at localhost ~]$ lttng destroy trace1
> [user at localhost ~]$ lttng destroy trace2
> 
> but I am writing an Eclipse plugin to do this tracing without the terminal
> so the trace name will be based off of the time of day the user runs it and
> therefore I cannot hardcode the name in.
> 
> Is there a "destroy all" command that I am missing?

lttng destroy -a :)

David

> 
> Thanks!!
> Michael

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131029/09d9b8a8/attachment.pgp>


More information about the lttng-dev mailing list