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

Michael Jeanson mjeanson at efficios.com
Thu Mar 1 17:39:07 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 UST[1] and tools[2] patch
sets which are still being cleaned-up for submission.

[1] https://github.com/mjeanson/lttng-ust/tree/ns
[2] https://github.com/mjeanson/lttng-tools/tree/ns

Michael Jeanson (3):
  RFC: Add namespace contexts
  RFC: Add uid/gid contexts
  RFC: Add namespaces statedump

 Kbuild.common                                      |   5 +
 Makefile                                           |  42 +++++++
 .../events/lttng-module/lttng-statedump.h          | 137 ++++++++++++++++++---
 instrumentation/events/lttng-module/sched.h        |  11 +-
 lttng-abi.c                                        |  46 +++++++
 lttng-abi.h                                        |  23 ++++
 lttng-context-cgroup-ns.c                          | 113 +++++++++++++++++
 lttng-context-egid.c                               |  91 ++++++++++++++
 lttng-context-euid.c                               |  91 ++++++++++++++
 lttng-context-fsgid.c                              |  91 ++++++++++++++
 lttng-context-fsuid.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-vfsgid.c                             |  91 ++++++++++++++
 lttng-context-vfsuid.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                                     |  96 +++++++++++++++
 lttng-statedump-impl.c                             |  72 ++++++++++-
 wrapper/namespace.h                                |  39 ++++++
 wrapper/user_namespace.h                           | 128 +++++++++++++++++++
 34 files changed, 2813 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-fsgid.c
 create mode 100644 lttng-context-fsuid.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-vfsgid.c
 create mode 100644 lttng-context-vfsuid.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