Implement PID tracking for kernel tracing
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index 9464a84f088ebd285cde162819e620741e5a2e92..4bb418949d3ea330b60397ed2352f5541c7fcbdc 100644 (file)
@@ -367,6 +367,20 @@ int kernel_disable_syscall(const char *syscall_name,
        return kernctl_disable_syscall(channel->fd, syscall_name);
 }
 
+int kernel_track_pid(struct ltt_kernel_session *session, int pid)
+{
+       DBG("Kernel track PID %d for session id %" PRIu64 ".",
+                       pid, session->id);
+       return kernctl_track_pid(session->fd, pid);
+}
+
+int kernel_untrack_pid(struct ltt_kernel_session *session, int pid)
+{
+       DBG("Kernel untrack PID %d for session id %" PRIu64 ".",
+                       pid, session->id);
+       return kernctl_untrack_pid(session->fd, pid);
+}
+
 /*
  * Create kernel metadata, open from the kernel tracer and add it to the
  * kernel session.
This page took 0.024773 seconds and 5 git commands to generate.