X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel.c;h=4bb418949d3ea330b60397ed2352f5541c7fcbdc;hp=9464a84f088ebd285cde162819e620741e5a2e92;hb=ccf10263bcd2ca4667b9e1fc4dab64a3c8d8c4d8;hpb=309fc9bf0c244ed47c4d7c3a47119e596a40eb73 diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 9464a84f0..4bb418949 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -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.