[lttng-dev] [PATCH lttng-modules v2 1/3] RFC: Add namespace contexts

2018-03-06 Thread Michael Jeanson
Add a context for each available kernel namespace which currently are : cgroup, ipc, mnt, net, pid, user and uts. The id chosen to identify the namespaces is the inode number of the fd representing each of them in the proc filesystem. This was instroduced in v3.8.0 in this commit : commit

[lttng-dev] [PATCH lttng-modules v2 2/3] RFC: Add uid/gid contexts

2018-03-06 Thread Michael Jeanson
Add a context for each available kernel user and group IDs * uid : real user ID * euid : effective user ID * suid : saved set-user ID These are the IDs as seen in the initial user namespace, see credentials(7) for details on each type. Also add a "virtual" version of each type with the

[lttng-dev] [PATCH lttng-modules v2 0/3] RFC: Initial modules namespace support

2018-03-06 Thread Michael Jeanson
This patch set implements namespace related contexts and statedump events which will be required to add Linux containers support in our control and analysis tools. To test this you'll need the corresponding lttng-ust and lttng-tools patchsets. V2: - Removed filesystem uid/gid Michael Jeanson

[lttng-dev] [PATCH lttng-modules v2 3/3] RFC: Add namespaces statedump

2018-03-06 Thread Michael Jeanson
Add a statedump event for each type of namespace. The pid ns was already implemented as part of the lttng_statedump_process_state event, move the "vtid" and "vpid" fields to the new lttng_statedump_process_pid_ns event. Signed-off-by: Michael Jeanson ---

[lttng-dev] [PATCH lttng-tools 0/4] Initial tools namespace support

2018-03-06 Thread Michael Jeanson
This patch set implements namespace related contexts and statedump events which will be required to add Linux containers support in our control and analysis tools. To test this you'll need the corresponding lttng-modules and lttng-ust patchset. Michael Jeanson (4): RFC: Add kernel namespace

[lttng-dev] [PATCH lttng-ust 2/2] RFC: Add userspace vuid/vgid contexts

2018-03-06 Thread Michael Jeanson
Add a context for each available namespaced user and group IDs * vuid : real user ID * veuid : effective user ID * vsuid : saved set-user ID These are the IDs as seen in the current user namespace, see user_namespaces(7) and credentials(7) for details on each type. Signed-off-by: Michael

[lttng-dev] [PATCH lttng-tools 4/4] RFC: Add userspace uid/gid contexts

2018-03-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/save.c | 18 ++ src/bin/lttng-sessiond/trace-ust.c | 18 ++ 2 files changed, 36 insertions(+) diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index

[lttng-dev] [PATCH lttng-tools 3/4] RFC: Add kernel uid/gid contexts

2018-03-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/lttng/event.h | 12 + src/bin/lttng-sessiond/context.c | 36 + src/bin/lttng-sessiond/save.c | 36 + src/bin/lttng/commands/add_context.c |

[lttng-dev] [PATCH lttng-ust 0/2] RFC: Initial ust namespace support

2018-03-06 Thread Michael Jeanson
This patch set implements namespace related contexts and statedump events which will be required to add Linux containers support in our control and analysis tools. To test this you'll need the corresponding lttng-tools patchset. Michael Jeanson (2): RFC: Add userspace namespace contexts RFC:

[lttng-dev] [PATCH lttng-ust 1/2] RFC: Add userspace namespace contexts

2018-03-06 Thread Michael Jeanson
Add a context for each available kernel namespace which currently are : cgroup, ipc, mnt, net, pid, user and uts. The id chosen to identify the namespaces is the inode number of the fd representing each of them in the proc filesystem. This was introduced in kernel v3.8.0, if any of these context

[lttng-dev] [PATCH lttng-tools 2/4] RFC: Add userspace namespace contexts

2018-03-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- src/bin/lttng-sessiond/save.c | 21 + src/bin/lttng-sessiond/trace-ust.c | 21 + 2 files changed, 42 insertions(+) diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c

[lttng-dev] [PATCH lttng-tools 1/4] RFC: Add kernel namespace contexts

2018-03-06 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- include/lttng/event.h | 7 +++ src/bin/lttng-sessiond/context.c | 21 + src/bin/lttng-sessiond/save.c | 21 + src/bin/lttng/commands/add_context.c | 14