<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hello,<br><br>I am not sure if this is where I ask my questions to the developers but I thought I'd give it a go.<br><br></div>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:<br>
<br></div>[user@localhost ~]$ lttng create trace1<br>[user@localhost ~]$ lttng create trace2<br>[user@localhost ~]$ lttng create trace3<br><br></div>As I am sure you know, the .lttngrc file is populated with ONLY the latest created trace name (<span style="color:rgb(255,0,0)">trace3</span>). <br>
<br>Now let's say I change my mind after creating these traces and wish to destroy them all. If I use the destroy command...<br><br></div>[user@localhost ~]$ lttng destroy<br><br></div>...with no argument, it defaults to the .lttngrc file and destroys <span style="color:rgb(255,0,0)">trace3 </span>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 <span style="color:rgb(255,0,0)">trace1 </span>and <span style="color:rgb(255,0,0)">trace2 </span>in the background somewhere because if I try to:<br>
<br>[user@localhost ~]$ lttng create trace1<br><br></div>I get told that there is already a trace with that name.<br><br></div>My question to you is, where are all the traces stored until they are destroyed? LTT obviously knows that <span style="color:rgb(255,0,0)">trace1 </span>and <span style="color:rgb(255,0,0)">trace2 </span>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:<br>
<br>[user@localhost ~]$ lttng destroy trace1<br>[user@localhost ~]$ lttng destroy trace2<br><br>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.<br>
<br></div>Is there a "destroy all" command that I am missing?<br><br></div>Thanks!!<br></div>Michael<br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div>