Add userspace namespace contexts
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 12 Feb 2019 15:38:25 +0000 (10:38 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 10 Apr 2019 21:53:46 +0000 (17:53 -0400)
commit0a5755a3dc6533557037a06800839733b6ee5378
tree596c195d8d557d1f4e2deb9677a2bb79c9c4a40d
parent82df14e46c733a9e0906cf7a11299d83d160e1a0
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.027928 seconds and 5 git commands to generate.