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
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
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
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
---
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
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
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
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 |
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:
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
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
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
12 matches
Mail list logo