Add time namespace context
[deliverable/lttng-modules.git] / include / instrumentation / events / lttng-statedump.h
index 23fdd0e8094dbe3843ffeb3f5e9c46d796bc9270..451314c9724560f46dcbd0ced776e25bfbcdb5f5 100644 (file)
@@ -17,6 +17,9 @@
 #include <linux/version.h>
 #include <wrapper/namespace.h>
 #include <wrapper/user_namespace.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
+#include <linux/time_namespace.h>
+#endif
 
 #ifndef LTTNG_MNT_NS_MISSING_HEADER
 # ifndef ONCE_LTTNG_FS_MOUNT_H
@@ -179,6 +182,19 @@ LTTNG_TRACEPOINT_EVENT(lttng_statedump_process_uts_ns,
        )
 )
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
+LTTNG_TRACEPOINT_EVENT(lttng_statedump_process_time_ns,
+       TP_PROTO(struct lttng_session *session,
+               struct task_struct *p,
+               struct time_namespace *time_ns),
+       TP_ARGS(session, p, time_ns),
+       TP_FIELDS(
+               ctf_integer(pid_t, tid, p->pid)
+               ctf_integer(unsigned int, ns_inum, time_ns ? time_ns->lttng_ns_inum : 0)
+       )
+)
+#endif
+
 LTTNG_TRACEPOINT_EVENT(lttng_statedump_file_descriptor,
        TP_PROTO(struct lttng_session *session,
                struct files_struct *files,
This page took 0.023699 seconds and 5 git commands to generate.