lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] LTTng Support for Network Namespace
@ 2021-02-08 18:04 Mohammad Kavousi via lttng-dev
  2021-02-08 19:38 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammad Kavousi via lttng-dev @ 2021-02-08 18:04 UTC (permalink / raw)
  To: lttng-dev; +Cc: Yan Chen, Xutong Chen


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

Dear LTTng developers,

I was wondering if LTTng currently (or in the future) supports network
namespaces. For instance, an ambiguity in the logs would make problems for
future system analysis.

Taking the "bind" system call, that would help us distinguish between
different local IP addresses when two or more container instances are
running on the host, given that the "umyaddr" field is an address inside
the memory, how would we recover the local addresses after the trace has
been collected?

syscall_entry_bind: { cpu_id = 1 }, { mnt_ns = 4026532553, pid = 532, tid =
532, vtid = 532, vpid = 532 }, { fd = 14, umyaddr = 93827759199256, addrlen
= 12 }


Thanks, we appreciate the help beforehand!


Mohammad

[-- Attachment #1.2: Type: text/html, Size: 1154 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

* Re: [lttng-dev] LTTng Support for Network Namespace
  2021-02-08 18:04 [lttng-dev] LTTng Support for Network Namespace Mohammad Kavousi via lttng-dev
@ 2021-02-08 19:38 ` Mathieu Desnoyers via lttng-dev
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers via lttng-dev @ 2021-02-08 19:38 UTC (permalink / raw)
  To: Mohammad Kavousi; +Cc: lttng-dev, Yan Chen, Xutong Chen

----- On Feb 8, 2021, at 1:04 PM, lttng-dev lttng-dev@lists.lttng.org wrote:

> Dear LTTng developers,
> I was wondering if LTTng currently (or in the future) supports network
> namespaces. For instance, an ambiguity in the logs would make problems for
> future system analysis.

Did you try the "net_ns" context ? 

> Taking the "bind" system call, that would help us distinguish between different
> local IP addresses when two or more container instances are running on the
> host, given that the "umyaddr" field is an address inside the memory, how would
> we recover the local addresses after the trace has been collected?

> syscall_entry_bind: { cpu_id = 1 }, { mnt_ns = 4026532553, pid = 532, tid = 532,
> vtid = 532, vpid = 532 }, { fd = 14, umyaddr = 93827759199256, addrlen = 12 }

In lttng-modules, we'd need to implement a system call override for the bind system
call which fetches the umyaddr content from user-space. You can see the x86-64 override
code for the "connect" system call which fetches the uservaddr from user-space as an
inspiration.

Thanks,

Mathieu


> Thanks, we appreciate the help beforehand!

> Mohammad

> _______________________________________________
> 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
_______________________________________________
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:[~2021-02-08 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 18:04 [lttng-dev] LTTng Support for Network Namespace Mohammad Kavousi via lttng-dev
2021-02-08 19:38 ` Mathieu Desnoyers via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).