All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Tracing network events in the kernel using lttng
       [not found] <CAFMzwX6csrXt6aQwy0b7oW7CzfEKRr28uXYZcE4NhPrOWyCr4g@mail.gmail.com>
@ 2016-08-12 20:41 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2016-08-12 20:41 UTC (permalink / raw)
  To: Adel Belkhiri; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2120 bytes --]

----- On Aug 12, 2016, at 12:50 AM, Adel Belkhiri <adel.belkhiri@ensi-uma.tn> wrote: 

> Hello,

> 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) TCP socket operations (bind, accept, create, ...). Running out of time
> in my project, I wonder if there are any patch for the kernel that place those
> probes in the right source files.

> My linux Kernel version is 3.2.0-4-486 and I'm using Lttng 2.7.

You'll be interested in recent commits that made their way into lttng 
master branch: 

At the networking level: 

commit e5990fd415d46da69523dfe7943bc3168664fde8 
Author: Geneviève Bastien <gbastien+lttng@versatic.net> 
Date: Mon Jul 11 09:34:02 2016 -0400 

net: Add IPv4/IPv6 header data to net_* tracepoints 

commit 9cf9736a1715a1fec4857fac2784a12596675ce2 
Author: Geneviève Bastien <gbastien+lttng@versatic.net> 
Date: Tue Jul 12 13:26:14 2016 -0400 

net: Add TCP header data to net_* tracepoints 

and for the accept and connect syscalls (in stable-2.8 and 
master): 

commit 7ca580f8aca4f8c2b9e0066ad52ebfc226b3d645 
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> 
Date: Thu Jul 24 12:47:46 2014 -0400 

Extract input/output arguments from accept and connect syscalls 

This is all you should need to extract the kind of information you 
want. Perhaps we should add other specialized system call 
tracepoint probe functions to get more information about the 
arguments, but it should not require any kernel modification nor 
dynamic probing. 

Hoping this helps! 

Mathieu 

> Thank very much you for your help.

> Adel Belkhiri

> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 

[-- Attachment #1.2: Type: text/html, Size: 5194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Tracing network events in the kernel using lttng
@ 2016-08-12  4:50 Adel Belkhiri
  0 siblings, 0 replies; 2+ messages in thread
From: Adel Belkhiri @ 2016-08-12  4:50 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 628 bytes --]

Hello,


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) *TCP socket operations* (bind, accept, create, ...).
Running out of time in my project, I wonder if there are *any patch for the
kernel* that place those probes in the right source files.

My linux Kernel version is 3.2.0-4-486 and I'm using Lttng 2.7.


Thank very much you for your help.



Adel Belkhiri

[-- Attachment #1.2: Type: text/html, Size: 1273 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-12 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAFMzwX6csrXt6aQwy0b7oW7CzfEKRr28uXYZcE4NhPrOWyCr4g@mail.gmail.com>
2016-08-12 20:41 ` Tracing network events in the kernel using lttng Mathieu Desnoyers
2016-08-12  4:50 Adel Belkhiri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.