<div dir="ltr">Hi Sebastian,<div><br></div><div>In our company one of the main lttng applications is to measure latency between two probes which get same ID as argument. For this purpose we've implemented in C a special utility which is based on libraries to read CTF (IIRC). Also some developers often use own simple perl scripts to analyze babeltrace output.</div><div>I wish there is a better way to implement custom CTF analyzers, probably some basic DSL.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 18, 2014 at 2:23 AM, Boisvert, Sebastien <span dir="ltr"><<a href="mailto:boisvert@anl.gov" target="_blank">boisvert@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Bonjour,<br>
<br>
First, thank you for LTTng-UST. This is very useful and convenient.<br>
<br>
I just got started today using LTTng (LTTng-UST) for tracing a HPC application<br>
that I am working on (I am a postdoc). I am impressed by how easy LTTng is to use it.<br>
<br>
In my system, an actor message is represented by a pair<br>
<message_actor_source, message_number>.<br>
<br>
I want to list all messages that have a high delivery time (message:actor_receive - message:actor_send).<br>
<br>
I am doing this to get the messages of one actor (actor 1000019):<br>
<br>
[boisvert@bigmem biosal]$ babeltrace ~/lttng-traces/auto-20141017-181240|grep "message_source_actor = 1000019"  > actor_1000019<br>
<br>
Then, I can look at one message with (message <1000019, 14>):<br>
<br>
[boisvert@bigmem biosal]$ grep "message_number = 14," actor_1000019<br>
[18:12:43.647017211] (+0.000005110) <a href="http://bigmem.knoxville.kbase.us" target="_blank">bigmem.knoxville.kbase.us</a> message:actor_send: { cpu_id = 30 }, { message_number = 14, message_action = 31592, message_count = 8, message_source_actor = 1000019, message_destination_actor = 1000059, message_source_node = -1, message_destination_node = -1 }<br>
[18:12:43.647025249] (+0.000002860) <a href="http://bigmem.knoxville.kbase.us" target="_blank">bigmem.knoxville.kbase.us</a> message:actor_receive: { cpu_id = 49 }, { message_number = 14, message_action = 31592, message_count = 8, message_source_actor = 1000019, message_destination_actor = 1000059, message_source_node = 3, message_destination_node = 3 }<br>
<br>
If I substract the times:<br>
<br>
irb(main):003:0> (43.647025249-43.647017211)*10**9<br>
=> 8038.00000426236<br>
<br>
This message (<1000019, 14>) required 8038 ns for the delivery. This one is fine.<br>
<br>
<br>
So basically my question is:<br>
<br>
Is there an easy way to analyze these tracepoint files ?<br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">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 dir="ltr">Eugene</div>
</div>