+ TP_FIELDS(
+ ctf_array_text(char, parent_comm, parent->comm, TASK_COMM_LEN)
+ ctf_integer(pid_t, parent_tid, parent->pid)
+ ctf_integer(pid_t, parent_pid, parent->tgid)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+ ctf_integer(unsigned int, parent_ns_inum,
+ ({
+ unsigned int parent_ns_inum = 0;
+
+ if (parent) {
+ struct pid_namespace *pid_ns;
+
+ pid_ns = task_active_pid_ns(parent);
+ if (pid_ns)
+ parent_ns_inum =
+ pid_ns->lttng_proc_inum;
+ }
+ parent_ns_inum;
+ }))
+#endif
+ ctf_array_text(char, child_comm, child->comm, TASK_COMM_LEN)
+ ctf_integer(pid_t, child_tid, child->pid)
+ ctf_sequence(pid_t, vtids, tp_locvar->vtids, u8, tp_locvar->ns_level)
+ ctf_integer(pid_t, child_pid, child->tgid)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+ ctf_integer(unsigned int, child_ns_inum,
+ ({
+ unsigned int child_ns_inum = 0;
+
+ if (child) {
+ struct pid_namespace *pid_ns;
+
+ pid_ns = task_active_pid_ns(child);
+ if (pid_ns)
+ child_ns_inum =
+ pid_ns->lttng_proc_inum;
+ }
+ child_ns_inum;
+ }))
+#endif
+ ),
+
+ TP_code_post()
+)
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33))
+/*
+ * Tracepoint for sending a signal:
+ */
+LTTNG_TRACEPOINT_EVENT(sched_signal_send,
+
+ TP_PROTO(int sig, struct task_struct *p),
+
+ TP_ARGS(sig, p),
+
+ TP_FIELDS(
+ ctf_integer(int, sig, sig)
+ ctf_array_text(char, comm, p->comm, TASK_COMM_LEN)
+ ctf_integer(pid_t, tid, p->pid)
+ )