X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=c6ff5c4457bd362b25a8203567db906d6c34cc37;hb=a5dfbb9db7ba31913657ed921006b13977b7b426;hp=f3ef93d3fd5a52bf1d8970d5d068a44cb8120541;hpb=c052142c0fb4ce4cd13999218852ceb2d07ea51e;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index f3ef93d3f..c6ff5c445 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _GNU_SOURCE +#define _LGPL_SOURCE #define __USE_LINUX_IOCTL_DEFS #include #include @@ -215,6 +217,21 @@ end: return ret; } +int kernctl_track_pid(int fd, int pid) +{ + return ioctl(fd, LTTNG_KERNEL_SESSION_TRACK_PID, pid); +} + +int kernctl_untrack_pid(int fd, int pid) +{ + return ioctl(fd, LTTNG_KERNEL_SESSION_UNTRACK_PID, pid); +} + +int kernctl_list_tracker_pids(int fd) +{ + return ioctl(fd, LTTNG_KERNEL_SESSION_LIST_TRACKER_PIDS); +} + int kernctl_create_stream(int fd) { return compat_ioctl_no_arg(fd, LTTNG_KERNEL_OLD_STREAM,