Add userspace namespace contexts
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 12 Feb 2019 15:38:25 +0000 (10:38 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 1 May 2019 21:13:07 +0000 (17:13 -0400)
commit4b5f26af4d267f5e5a1eb9dbfd8ca4fd5f5896fb
tree76d5e9622ce11785aba4bd7e2fe73b4b8d813dec
parent6c737d0594cac0d969e1948ea1ed55c15be9cec8
Add userspace namespace contexts

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 file representing each one of them
in the proc filesystem.

This was introduced in kernel v3.8.0, if any of these context are
enabled on a system running an older kernel, zero will be returned.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
18 files changed:
doc/man/lttng-ust.3.txt
include/lttng/ust-abi.h
include/lttng/ust-events.h
include/lttng/ust.h
liblttng-ust-fork/ustfork.c
liblttng-ust/Makefile.am
liblttng-ust/lttng-context-cgroup-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-ipc-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-mnt-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-net-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-pid-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-user-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context-uts-ns.c [new file with mode: 0644]
liblttng-ust/lttng-context.c
liblttng-ust/lttng-events.c
liblttng-ust/lttng-tracer-core.h
liblttng-ust/lttng-ust-comm.c
liblttng-ust/ns.h [new file with mode: 0644]
This page took 0.027097 seconds and 5 git commands to generate.