<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 12:55 PM, Beatriz Aguilar <span dir="ltr"><<a href="mailto:beatriz.aguilar@bsc.es" target="_blank">beatriz.aguilar@bsc.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I am trying to trace a user application with Lttng.<br>
I would like to know if it is possible to do it without introducing tracepoints in the user code like when the kernel is traced.<br>
<br>
For example, I would like to see what every CPU/process is doing in an MPI + OpenMP application without putting  tracepoints in it.<br></blockquote><div><br></div><div>Hi Beatriz,</div><div><br></div><div>Without instrumenting your application, you will be limited to the information provided by the kernel instrumentation which includes syscalls. Those can already provide you with quite a bit of information to understand what an application is doing.</div><div><br></div><div>Moreover, you can use a couple of lttng-ust helper libraries to trace calls to some libc functions [1]. You could probably develop other helpers based around the same idea (overloading symbols) to trace MPI and OpenMP calls [2].</div><div><br></div><div>Unfortunately, if you really want to instrument your application's internals, you will have to manually add tracepoints to the code. Dynamic tracing, which we don't support yet, would let you insert probes at runtime without the need for this static instrumentation.</div><div><br></div><div>Regards,</div><div>Jérémie</div><div><br></div><div>[1] <a href="http://lttng.org/docs/#doc-prebuilt-ust-helpers">http://lttng.org/docs/#doc-prebuilt-ust-helpers</a></div><div>[2] <a href="https://github.com/lttng/lttng-ust/tree/master/liblttng-ust-libc-wrapper">https://github.com/lttng/lttng-ust/tree/master/liblttng-ust-libc-wrapper</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Is that possible or is there any alternative to Lttng to generate ctf traces?<br>
<br>
Thank you very much.<br>
Your help is very much appreciated =)<br>
<br>
<br>
Beatriz Aguilar<br>
<br>
WARNING / LEGAL TEXT: This message is intended only for the use of the<br>
individual or entity to which it is addressed and may contain<br>
information which is privileged, confidential, proprietary, or exempt<br>
from disclosure under applicable law. If you are not the intended<br>
recipient or the person responsible for delivering the message to the<br>
intended recipient, you are strictly prohibited from disclosing,<br>
distributing, copying, or in any way using this message. If you have<br>
received this communication in error, please notify the sender and<br>
destroy and delete any copies you may have received.<br>
<br>
<a href="http://www.bsc.es/disclaimer" target="_blank">http://www.bsc.es/disclaimer</a><br>
<br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</div></div>