Add userspace namespace contexts
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 12 Feb 2019 15:38:25 +0000 (10:38 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 18 Oct 2019 15:25:33 +0000 (11:25 -0400)
commit735bef4705cc42f25d26f25be09ba98f1efb8511
treef179b10121d153b9194f3804230744478eb7dfba
parent20142124a2e34c287a277bbd7ef5b28697735d10
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>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@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.026491 seconds and 4 git commands to generate.