Skip to contentSkip to conversation

Lttng user application tracing

DISCUSSION Jérémie Galarneau 1 participant 1 message May 5, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Beatriz Aguilar

Hi,

I am trying to trace a user application with Lttng.
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.

For example, I would like to see what every CPU/process is doing in an MPI
+ OpenMP application without putting tracepoints in it.

Hi Beatriz,

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.

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].

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.

Regards,
Jérémie

[1] http://lttng.org/docs/#doc-prebuilt-ust-helpers
[2] https://github.com/lttng/lttng-ust/tree/master/liblttng-ust-libc-wrapper

Quoted 27 lines

Is that possible or is there any alternative to Lttng to generate ctf traces?

Thank you very much.
Your help is very much appreciated =)

Beatriz Aguilar

WARNING / LEGAL TEXT: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev