<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><span id="zwchr" data-marker="__DIVIDER__">----- On Aug 12, 2016, at 12:50 AM, Adel Belkhiri <adel.belkhiri@ensi-uma.tn> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif">Hello,</span><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif"><br></span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif"><br></span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif">I'm, from some time, working on tracing linux kernel using lttng to get some information about the system' network activities. Tracing bare system calls (--syscall) didn't give me much information so I realized that i should first place some static probes in the kernel source files to be able to trace (mainly) <b>TCP socket operations</b> (bind, accept, create, ...). Running out of time in my project, I wonder if there are <b>any patch for the kernel</b> that place those probes in the right source files. </span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif"><br></span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif">My linux Kernel version is 3.2.0-4-486 and I'm using Lttng 2.7.</span></div></div></blockquote><div><br></div><div>You'll be interested in recent commits that made their way into lttng</div><div>master branch:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>At the networking level:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>commit e5990fd415d46da69523dfe7943bc3168664fde8<br>Author: Geneviève Bastien <gbastien+lttng@versatic.net><br>Date:   Mon Jul 11 09:34:02 2016 -0400<br><br>    net: Add IPv4/IPv6 header data to net_* tracepoints<br><br data-mce-bogus="1"></div><div>commit 9cf9736a1715a1fec4857fac2784a12596675ce2<br>Author: Geneviève Bastien <gbastien+lttng@versatic.net><br>Date:   Tue Jul 12 13:26:14 2016 -0400<br><br>    net: Add TCP header data to net_* tracepoints<br><br data-mce-bogus="1"></div><div>and for the accept and connect syscalls (in stable-2.8 and<br data-mce-bogus="1"></div><div>master):<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>commit 7ca580f8aca4f8c2b9e0066ad52ebfc226b3d645<br>Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com><br>Date:   Thu Jul 24 12:47:46 2014 -0400<br><br>    Extract input/output arguments from accept and connect syscalls<br><br data-mce-bogus="1"></div><div>This is all you should need to extract the kind of information you<br data-mce-bogus="1"></div><div>want. Perhaps we should add other specialized system call<br data-mce-bogus="1"></div><div>tracepoint probe functions to get more information about the<br data-mce-bogus="1"></div><div>arguments, but it should not require any kernel modification nor<br data-mce-bogus="1"></div><div>dynamic probing.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Hoping this helps!<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif"><br></span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif"><br></span></div><div><span style="font-family: arial,helvetica,sans-serif;" data-mce-style="font-family: arial,helvetica,sans-serif;" face="arial, helvetica, sans-serif">Thank very much you for your help.</span></div><br><br><br><div>Adel Belkhiri</div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>