X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=libkernelctl%2Flibkernelctl.c;h=1f30c77c0bb42e9502d6899557dae183362ddf36;hp=f51618d1e2e638d7d3ad5591a726378d1f05a20e;hb=6e2d116c6138874c0357b1afb1db5aa7cd80ceb6;hpb=f3ed775ef4842019b396f06095b053c3a70bc3c8 diff --git a/libkernelctl/libkernelctl.c b/libkernelctl/libkernelctl.c index f51618d1e..1f30c77c0 100644 --- a/libkernelctl/libkernelctl.c +++ b/libkernelctl/libkernelctl.c @@ -4,8 +4,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -22,6 +22,11 @@ #include "kernel-ioctl.h" #include "libkernelctl.h" +int kernctl_add_context(int fd, struct lttng_kernel_context *ctx) +{ + return ioctl(fd, LTTNG_KERNEL_CONTEXT, ctx); +} + int kernctl_buffer_flush(int fd) { return ioctl(fd, RING_BUFFER_FLUSH);