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

Michael Jeanson mjeanson at efficios.com
Tue Mar 6 15:53:09 EST 2018


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 (3):
  RFC: Add namespace contexts
  RFC: Add uid/gid contexts
  RFC: Add namespaces statedump

 Kbuild.common                                      |   5 +
 Makefile                                           |  38 ++++++
 .../events/lttng-module/lttng-statedump.h          | 137 ++++++++++++++++++---
 instrumentation/events/lttng-module/sched.h        |  11 +-
 lttng-abi.c                                        |  38 ++++++
 lttng-abi.h                                        |  19 +++
 lttng-context-cgroup-ns.c                          | 113 +++++++++++++++++
 lttng-context-egid.c                               |  91 ++++++++++++++
 lttng-context-euid.c                               |  91 ++++++++++++++
 lttng-context-gid.c                                |  91 ++++++++++++++
 lttng-context-ipc-ns.c                             | 110 +++++++++++++++++
 lttng-context-mnt-ns.c                             | 111 +++++++++++++++++
 lttng-context-net-ns.c                             | 110 +++++++++++++++++
 lttng-context-pid-ns.c                             | 106 ++++++++++++++++
 lttng-context-sgid.c                               |  91 ++++++++++++++
 lttng-context-suid.c                               |  91 ++++++++++++++
 lttng-context-uid.c                                |  91 ++++++++++++++
 lttng-context-user-ns.c                            |  98 +++++++++++++++
 lttng-context-uts-ns.c                             | 110 +++++++++++++++++
 lttng-context-vegid.c                              |  91 ++++++++++++++
 lttng-context-veuid.c                              |  91 ++++++++++++++
 lttng-context-vgid.c                               |  91 ++++++++++++++
 lttng-context-vsgid.c                              |  91 ++++++++++++++
 lttng-context-vsuid.c                              |  91 ++++++++++++++
 lttng-context-vuid.c                               |  91 ++++++++++++++
 lttng-context.c                                    |  28 +++++
 lttng-events.h                                     |  92 ++++++++++++++
 lttng-statedump-impl.c                             |  72 ++++++++++-
 wrapper/namespace.h                                |  39 ++++++
 wrapper/user_namespace.h                           | 128 +++++++++++++++++++
 30 files changed, 2429 insertions(+), 28 deletions(-)
 create mode 100644 lttng-context-cgroup-ns.c
 create mode 100644 lttng-context-egid.c
 create mode 100644 lttng-context-euid.c
 create mode 100644 lttng-context-gid.c
 create mode 100644 lttng-context-ipc-ns.c
 create mode 100644 lttng-context-mnt-ns.c
 create mode 100644 lttng-context-net-ns.c
 create mode 100644 lttng-context-pid-ns.c
 create mode 100644 lttng-context-sgid.c
 create mode 100644 lttng-context-suid.c
 create mode 100644 lttng-context-uid.c
 create mode 100644 lttng-context-user-ns.c
 create mode 100644 lttng-context-uts-ns.c
 create mode 100644 lttng-context-vegid.c
 create mode 100644 lttng-context-veuid.c
 create mode 100644 lttng-context-vgid.c
 create mode 100644 lttng-context-vsgid.c
 create mode 100644 lttng-context-vsuid.c
 create mode 100644 lttng-context-vuid.c
 create mode 100644 wrapper/namespace.h
 create mode 100644 wrapper/user_namespace.h

-- 
2.7.4



More information about the lttng-dev mailing list